From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期四, 03 四月 2025 14:35:02 +0800 Subject: [PATCH] 添加非密字段显示 --- Source/UBCS-WEB/src/views/modeling/originalAdd.vue | 29 +++++++++++++++++------------ 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue index c6b6974..ec51cc5 100644 --- a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue +++ b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue @@ -6,7 +6,7 @@ <el-form ref="form" :model="attribute" show-message="true" inline size="medium" label-suffix=":" class="attributeForm" :rules="rules" @resetFields="resetAttributeForm" status-icon="true"> <el-form-item label="灞炴�х紪鍙�" label-width="100px" prop="id"> - <el-input v-model="attribute.id" maxlength="30" show-word-limit type="text"></el-input> + <el-input v-model="attribute.id" maxlength="30" show-word-limit @input="handleIdInput"></el-input> </el-form-item> <el-form-item label="灞炴�у悕绉�" label-width="100px" prop="name"> <el-input v-model="attribute.name"></el-input> @@ -299,19 +299,24 @@ this.initAttributeReferTypeList(); }, methods: { + handleIdInput(value){ + this.attribute.id = value.toLowerCase(); + }, onSubmit() { - const conditionMap = {}; - if (this.form.name) { - conditionMap[`conditionMap['name_like']`] = this.form.name; + if (this.form.name || this.form.label) { + const params = {}; + if (this.form.name) { + params.name = this.form.name; + } + if (this.form.label) { + params.label = this.form.label; + } + getParentList(this.enumRefer.enumPage.currentPage, this.enumRefer.enumPage.pageSize, params) + .then((res) => { + this.enumRefer.enumPage.total = res.data.data.total; + this.enumRefer.data = res.data.data.records; + }); } - if (this.form.label) { - conditionMap[`conditionMap['label_like']`] = this.form.label; - } - getParentList(this.enumRefer.enumPage.currentPage, this.enumRefer.enumPage.pageSize, conditionMap) - .then((res) => { - this.enumRefer.enumPage.total = res.data.data.total; - this.enumRefer.data = res.data.data.records; - }); }, enumOnLoad(){ getParentList(this.enumRefer.enumPage.currentPage, this.enumRefer.enumPage.pageSize).then(res => { -- Gitblit v1.9.3