From 2bea732496b4f5051233ed94e206160992351596 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期三, 15 一月 2025 11:02:06 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue index dc51274..d09d91f 100644 --- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue +++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue @@ -1,6 +1,6 @@ <template> <!--鍔ㄦ�佹ā鏉�--> - <avue-form ref="form" :option="option" v-model="form" v-loading="loading"> + <avue-form ref="basicform" :option="option" v-model="form" v-loading="loading"> <template v-for="item in allColumn" :slot="item.prop+ ''"> <vciWebRefer v-if="item.type === 'refer'" @@ -199,6 +199,7 @@ : this.span, value: item.value || item.defaultValue, display: item.display || !item.hidden, + suffixIcon: item.suffixIcon || item.prefix, labelSuffix: item.labelSuffix || item.suffix, tip: item.tip || item.tooltips, dictCode: item.dictCode || item.comboxKey, @@ -325,7 +326,7 @@ // 琛ㄥ崟鏍¢獙 validate(done) { return new Promise((resolve) => { - this.$refs.form.validate((valid,fields) => { + this.$refs.basicform.validate((valid,fields) => { done(valid,fields); if (valid) { resolve(true); @@ -338,13 +339,19 @@ }); }, resetFields(){ - this.$refs.form.resetFields() + this.$refs.basicform.resetFields() }, clearValidate(props){ - this.$refs.form.clearValidate(props) + this.$refs.basicform.clearValidate(props) }, updateDic(prop,data){ - this.$refs.form.updateDic(prop,data) + this.$refs.basicform.updateDic(prop,data) + }, + dicInit(){ + this.$refs.basicform.dicInit() + }, + getPropRef(){ + this.$refs.basicform.getPropRef() } }, }; -- Gitblit v1.9.3