Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
c0b18d3b
Commit
c0b18d3b
authored
Mar 31, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码修改
parent
6200ab06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/views/poster/PosterList.vue
+3
-3
src/views/poster/newPoster.vue
+0
-1
No files found.
src/views/poster/PosterList.vue
View file @
c0b18d3b
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</
template
>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text, record"
>
<
template
slot=
"operation"
slot-scope=
"text, record"
>
<span>
<span>
<a
@
click=
"addPoster(record.picture
,record.userId
)"
>
新建海报
</a>
<a
@
click=
"addPoster(record.picture)"
>
新建海报
</a>
<a-divider
type=
"vertical"
/>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.id)"
>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.id)"
>
<a>
删除
</a>
<a>
删除
</a>
...
@@ -201,8 +201,8 @@
...
@@ -201,8 +201,8 @@
};
};
});
});
},
},
addPoster
(
picture
,
id
){
addPoster
(
picture
){
let
url
=
this
.
jumpPath
+
id
let
url
=
this
.
jumpPath
+
this
.
$store
.
state
.
user
.
info
.
id
picture
=
this
.
apis
+
picture
picture
=
this
.
apis
+
picture
this
.
$refs
.
model1
.
showModal
(
picture
,
url
);
this
.
$refs
.
model1
.
showModal
(
picture
,
url
);
},
},
...
...
src/views/poster/newPoster.vue
View file @
c0b18d3b
...
@@ -73,7 +73,6 @@ export default {
...
@@ -73,7 +73,6 @@ export default {
methods
:
{
methods
:
{
showModal
(
picture
,
url
)
{
showModal
(
picture
,
url
)
{
this
.
codeText
=
url
this
.
codeText
=
url
console
.
log
(
this
.
codeText
)
this
.
getBase64
(
picture
,
'jpeg'
,
(
base64
)
=>
{
this
.
getBase64
(
picture
,
'jpeg'
,
(
base64
)
=>
{
// 给原生img对象的src属性赋值
// 给原生img对象的src属性赋值
this
.
images
=
base64
;
this
.
images
=
base64
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment