From 5f03300404c8e4f32c17a7216ea8c99818112eba Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 04 十二月 2023 17:47:45 +0800 Subject: [PATCH] 标准-源标准号非参照回填输入框 --- Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue index e75483c..d4e40cc 100644 --- a/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue +++ b/Source/UBCS-WEB/src/components/FormTemplate/FormTemplate.vue @@ -103,9 +103,14 @@ type: String, default: "", }, + selectRow:{ + type:Array, + default:[] + } }, data() { return { + selectValue:"", //骞翠唬鍙� dataYearCode: { type: "", @@ -206,6 +211,15 @@ handler(newV) { this.$emit("dataYearCode", newV) } + }, + selectRow:{ + handler(newval){ + console.log(newval); + let ids = newval.map(item => item.id); + this.selectValue= ids.join(","); + }, + deep:true, + immediate:true } }, methods: { @@ -320,7 +334,9 @@ value:formItem.defaultValue || (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || (formItem.secType == "codedatesec" ? formItem.codeDateValue : null) || (TreeValue && formItem.secType == "codelevelsec" ? TreeValue : null) || (formItem.secType == "codeattrsec" ? this.add : null) || (this.status === "apply" && formItem.field === "codeStandardEditType" ? "1" : null) || - (this.status === "amend" && formItem.field === "codeStandardEditType" ? "2" : null), + (this.status === "amend" && formItem.field === "codeStandardEditType" ? "2" : null) || + //鐖剁粍浠跺鏋滄槸鍙傜収鏁版嵁浼氬皢selectRow缃┖,selectRow涓嶄负绌哄氨璇存槑涓嶆槸鍙傜収瑕佸洖濉簮鏍囧噯鍙锋暟鎹� + (this.status === "amend" && this.selectRow && (formItem.field === "oldcode" ? this.selectValue : null)), placeholder: formItem.inputTip, comboxKey: formItem.comboxKey, tip: formItem.tooltips, -- Gitblit v1.9.3