From b1b17880c688e1d7f19fc5963ebe87ad5a4b99a4 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 14 十一月 2023 10:07:57 +0800 Subject: [PATCH] 前端代码打包 --- Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue index f16ba65..2f60c90 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue @@ -160,6 +160,7 @@ immediate: true, handler(newV) { this.$emit("getFormData", newV); + // console.log("getFormData", newV) }, }, TreeValue:{ @@ -189,7 +190,11 @@ let dictKeys = []; let slotColumnList = []; formItemList.forEach((formItem) => { + console.log('formItem',formItem) formItem = this.resetFormConfig(formItem); + if(formItem.type === "datetime"){ + return; + } if (formItem.type === "line") { group.push({ label: formItem.text, @@ -252,7 +257,7 @@ append: this.preOrSufFixShow("text", formItem.suffix), prefixIcon: this.preOrSufFixShow("icon", formItem.prefix), suffixIcon: this.preOrSufFixShow("icon", formItem.suffix), - valueFormat:formItem.dateFormate, + valueFormat:formItem.dateFormate || "yyyy-MM-dd", format: formItem.dateFormate, keyAttr: formItem.keyAttr, value: (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || @@ -328,6 +333,7 @@ let that=this; items.forEach((item) => { let formItem = this.resetFormConfig(item); + if (formItem.field == "lcstatus") { formItem.field = formItem.field + "_text"; formItem.readOnly = true; @@ -363,7 +369,7 @@ append: this.preOrSufFixShow("text", formItem.suffix), prefixIcon: this.preOrSufFixShow("icon", formItem.prefix), suffixIcon: this.preOrSufFixShow("icon", formItem.suffix), - valueFormat: formItem.dateFormate, + valueFormat: formItem.dateFormate || "yyyy-MM-dd", format: formItem.dateFormate, keyAttr: formItem.keyAttr, value: (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || -- Gitblit v1.9.3