Commit aeb91e46 by 陈浩建

中大DIY页面二维码生成

parent 24b9ca44
......@@ -295,6 +295,9 @@
<a-radio :value="data.id" v-for="data in autoCompleteResult">{{data.userName}}</a-radio>
</a-radio-group>
</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-modal>
......@@ -346,6 +349,7 @@
Formtable: this.$form.createForm(this, {name: 'Formtable'}),
addFormtable: this.$form.createForm(this, {name: 'addFormtable'}),
titleName : "新增",
zhongdaDiy:false,
treeModelValue: [],
treeData: [],
SHOW_PARENT,
......@@ -408,6 +412,8 @@
fxyList:[],
qrcode:"qrcode",
qrcodeLink:"https://dx.dianyuanjiangli.com/mobile/#/hhr/home?id=",
qrcodeDiy:"qrcodeDiy",
qrcodeLinkDiy:"https://dx.dianyuanjiangli.com/mobile/#/homeDiy",
autoCompleteResult:[],
subNameList: [],
substList: [],
......@@ -529,6 +535,17 @@
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(){
......@@ -598,7 +615,9 @@
})
},
createfunctionCancel(){
this.modifyvisible=false
this.modifyvisible=false,
this.zhongdaDiy = false;
this.$refs.qrcodeDiy.innerHTML = "";
this.autoCompleteResult=[]
this.Formtable.setFieldsValue({
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