Commit c0b18d3b by 黄森林

二维码修改

parent 6200ab06
...@@ -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);
}, },
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment