From 80cb8edcb5e5d8455532035950ef69dcb89cbbe4 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 18 九月 2023 15:05:05 +0800
Subject: [PATCH] 元数据管理-枚举查询联调修复bug

---
 Source/UBCS-WEB/src/views/modeling/originalAdd.vue |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue
index c6b6974..e400868 100644
--- a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue
+++ b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue
@@ -300,18 +300,20 @@
     },
     methods: {
       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