From ff182ac475ea169057956ab182d38236d7ee87a1 Mon Sep 17 00:00:00 2001 From: fujunling <2984387807@qq.com> Date: 星期二, 20 六月 2023 11:09:18 +0800 Subject: [PATCH] 批量导入 --- Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue index 2166a83..a9f8e52 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue @@ -29,6 +29,8 @@ :referConfig="item.referConfig || {}" :value="form[item.referConfig.field] || item.value" :text="form[item.referConfig.showField]" + :disabled="item.disabled" + :display="item.display" @setReferValue="setReferValue" ></vciWebRefer> </template> @@ -515,6 +517,7 @@ collapse: true, column: [], }); + return } if ( formItem.type === "combox" && @@ -558,7 +561,7 @@ maxlength: formItem.maxlength, filterable: true, referConfig:formItem.type=='refer'?{ - title:formItem.text, + title:formItem.text , showField:formItem.showField || formItem.field, field: formItem.field, placeholder: formItem.inputTip, @@ -594,7 +597,9 @@ this.$set(this.option, "column", column); this.$set(this.option, "group", group); this.formIndex++; - this.loading = false; + if (this.type === 'add' || this.type === 'preview') { + this.loading = false; + } this.geDictData(dictKeys); this.getFormDetail(); }, @@ -643,21 +648,16 @@ return val; } }, - changeFun(displayExtension, prop) { - // executeCode({displayExtension, data: this.form}).then(res => { - // this.form[prop] = res.data.data - // }) - }, // 鑾峰彇swich鍜屽凡鎷垮埌鐨勪笅鎷夋暟鎹� getDataList(type, dicData) { if (type === "truefalse") { return [ { - key: false, + key: 'false', value: "鍚�", }, { - key: true, + key: 'true', value: "鏄�", }, ]; @@ -701,11 +701,11 @@ }, // 鑾峰彇琛ㄥ崟璇︽儏鏁版嵁 getFormDetail() { - if (this.type === 'add') return + if (this.type === 'add' || this.type === 'preview') return getFormDetail({ templateOid: this.templateOid, oid: this.rowOid }).then( (res) => { - this.form = Object.assign(this.form, res.obj) - console.log(res, "res"); + this.form = Object.assign(this.form, res.data.data[0]) + this.loading = false; } ); }, @@ -713,7 +713,7 @@ if(data.field){ this.form[data.field]=data.value || ''; this.form[data.showField]=data.text || ''; - this.$emit("getFormData", this.form); + this.$emit("referConfigDataUpdate", data); } } }, -- Gitblit v1.9.3