From d5129a9d3f2be1d73adbe0e4a7478e8f7e8fc9bc Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 06 十二月 2023 16:18:46 +0800 Subject: [PATCH] 菜单管理-从其它模板克隆对话框优化 --- Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue index d4e40cc..8c34f98 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue @@ -240,6 +240,7 @@ let slotColumnList = []; formItemList.forEach((formItem) => { formItem = this.resetFormConfig(formItem); + console.log(formItem) //灞炴�х爜娈佃鍒� if (formItem.secType === "codeattrsec") { this.attrList.push(formItem); @@ -247,6 +248,7 @@ //绯诲垪鍙疯鍒� if (formItem.field === "codeStandardEditType") { if (this.status === "amend") { + console.log("formItem-amend",formItem) formItem.readOnly = true; } } @@ -296,8 +298,8 @@ this.codeattrsecValue = val.value; return; } - //鏄惁绯诲垪-绯诲垪鍙� - if (val.column.field === "isSeries") { + //淇涓�-绯诲垪鍙� + if (val.column.field === "reviseSeries") { if (val.value === "false") { this.isShow = true; } else { @@ -323,7 +325,8 @@ field: formItem.field, type: this.columnType[formItem.type], dicData: this.getDataList(formItem.type, formItem.data), - disabled: this.type === "detail" ? true : formItem.readOnly || (formItem.codeValueApplyStatus && formItem.codeValueApplyStatus == 2 ? true : false), + disabled: this.type === "detail" ? true : formItem.readOnly || (formItem.codeValueApplyStatus && formItem.codeValueApplyStatus == 2 ? true : false) || + (this.status === 'amend' ? (formItem.field === "reviseSeries" ? (formItem.value == 'false' ? true : false) : false) : false), prepend: this.preOrSufFixShow("text", formItem.prefix), append: this.preOrSufFixShow("text", formItem.suffix), prefixIcon: this.preOrSufFixShow("icon", formItem.prefix), @@ -336,7 +339,7 @@ (formItem.secType == "codeattrsec" ? this.add : null) || (this.status === "apply" && formItem.field === "codeStandardEditType" ? "1" : null) || (this.status === "amend" && formItem.field === "codeStandardEditType" ? "2" : null) || //鐖剁粍浠跺鏋滄槸鍙傜収鏁版嵁浼氬皢selectRow缃┖,selectRow涓嶄负绌哄氨璇存槑涓嶆槸鍙傜収瑕佸洖濉簮鏍囧噯鍙锋暟鎹� - (this.status === "amend" && this.selectRow && (formItem.field === "oldcode" ? this.selectValue : null)), + (this.status === "amend" ? (this.selectRow && (formItem.field === "oldcode" ? this.selectValue : null)) : null), placeholder: formItem.inputTip, comboxKey: formItem.comboxKey, tip: formItem.tooltips, -- Gitblit v1.9.3