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 | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue index acb2ed6..a9f8e52 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTempalte.vue @@ -517,6 +517,7 @@ collapse: true, column: [], }); + return } if ( formItem.type === "combox" && @@ -596,7 +597,7 @@ this.$set(this.option, "column", column); this.$set(this.option, "group", group); this.formIndex++; - if (this.type === 'add') { + if (this.type === 'add' || this.type === 'preview') { this.loading = false; } this.geDictData(dictKeys); @@ -652,11 +653,11 @@ if (type === "truefalse") { return [ { - key: false, + key: 'false', value: "鍚�", }, { - key: true, + key: 'true', value: "鏄�", }, ]; @@ -700,7 +701,7 @@ }, // 鑾峰彇琛ㄥ崟璇︽儏鏁版嵁 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.data.data[0]) @@ -712,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