Commit aeb91e46 by 陈浩建

中大DIY页面二维码生成

parent 24b9ca44
...@@ -295,6 +295,9 @@ ...@@ -295,6 +295,9 @@
<a-radio :value="data.id" v-for="data in autoCompleteResult">{{data.userName}}</a-radio> <a-radio :value="data.id" v-for="data in autoCompleteResult">{{data.userName}}</a-radio>
</a-radio-group> </a-radio-group>
</a-form-item> </a-form-item>
<a-form-item v-show="zhongdaDiy" :labelCol="{span: 6}" :wrapperCol="{span: 12, offset: 1}" label="中大定制二维码">
<div :id="qrcodeDiy" ref="qrcodeDiy"></div>
</a-form-item>
</a-form> </a-form>
</a-modal> </a-modal>
...@@ -346,6 +349,7 @@ ...@@ -346,6 +349,7 @@
Formtable: this.$form.createForm(this, {name: 'Formtable'}), Formtable: this.$form.createForm(this, {name: 'Formtable'}),
addFormtable: this.$form.createForm(this, {name: 'addFormtable'}), addFormtable: this.$form.createForm(this, {name: 'addFormtable'}),
titleName : "新增", titleName : "新增",
zhongdaDiy:false,
treeModelValue: [], treeModelValue: [],
treeData: [], treeData: [],
SHOW_PARENT, SHOW_PARENT,
...@@ -408,6 +412,8 @@ ...@@ -408,6 +412,8 @@
fxyList:[], fxyList:[],
qrcode:"qrcode", qrcode:"qrcode",
qrcodeLink:"https://dx.dianyuanjiangli.com/mobile/#/hhr/home?id=", qrcodeLink:"https://dx.dianyuanjiangli.com/mobile/#/hhr/home?id=",
qrcodeDiy:"qrcodeDiy",
qrcodeLinkDiy:"https://dx.dianyuanjiangli.com/mobile/#/homeDiy",
autoCompleteResult:[], autoCompleteResult:[],
subNameList: [], subNameList: [],
substList: [], substList: [],
...@@ -529,6 +535,17 @@ ...@@ -529,6 +535,17 @@
this.autoCompleteResult = res.data this.autoCompleteResult = res.data
} }
}) })
if(this.modifyForm.id=='9449'){
this.$refs.qrcodeDiy.innerHTML = "";
this.zhongdaDiy = true;
let link = this.qrcodeLinkDiy;
let that = this;
that.$nextTick(function() {
setTimeout(() => {
that.qrcodeImg(124, 124, link,'qrcodeDiy');
});
});
}
}, },
//提交表单 //提交表单
createfunctionOk(){ createfunctionOk(){
...@@ -598,7 +615,9 @@ ...@@ -598,7 +615,9 @@
}) })
}, },
createfunctionCancel(){ createfunctionCancel(){
this.modifyvisible=false this.modifyvisible=false,
this.zhongdaDiy = false;
this.$refs.qrcodeDiy.innerHTML = "";
this.autoCompleteResult=[] this.autoCompleteResult=[]
this.Formtable.setFieldsValue({ this.Formtable.setFieldsValue({
account: '', account: '',
......
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