From 63be6c3a6e0308812cb9f0ab26a15aff293200a0 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期四, 11 五月 2023 16:06:43 +0800
Subject: [PATCH] 模型发布预览修改,属性查询修改

---
 src/views/datamanage/dictionaryManage.vue |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/src/views/datamanage/dictionaryManage.vue b/src/views/datamanage/dictionaryManage.vue
index 3dc8e52..39afbf6 100644
--- a/src/views/datamanage/dictionaryManage.vue
+++ b/src/views/datamanage/dictionaryManage.vue
@@ -461,7 +461,7 @@
               v-model="insertform.orderNum"
               autocomplete="off"
               style="width:85%"
-               :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuenumber')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuenumber')"
             ></el-input>
           </el-form-item>
           <el-form-item
@@ -496,7 +496,7 @@
               v-model="insertform.field"
               autocomplete="off"
               style="width:85%"
-                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldName')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldName')"
             ></el-input>
           </el-form-item>
           <el-form-item
@@ -507,7 +507,7 @@
               v-model="insertform.alias"
               autocomplete="off"
               style="width:85%"
-                  :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldDisplayName')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldDisplayName')"
             ></el-input>
           </el-form-item>
           <el-form-item
@@ -518,7 +518,7 @@
               v-model="insertform.type"
               autocomplete="off"
               style="width:85%"
-               :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldType')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldType')"
             ></el-input>
           </el-form-item>
           <el-form-item
@@ -529,7 +529,7 @@
               v-model="insertform.len"
               autocomplete="off"
               style="width:85%"
-               :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldLength')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuefieldLength')"
             ></el-input>
           </el-form-item>
           <el-form-item
@@ -540,7 +540,7 @@
               v-model="insertform.precision"
               autocomplete="off"
               style="width:85%"
-                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('dataManage.dictionaryManageObj.FieldPrecision')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('dataManage.dictionaryManageObj.FieldPrecision')"
             ></el-input>
           </el-form-item>
 
@@ -552,7 +552,7 @@
               v-model="insertform.bak"
               autocomplete="off"
               style="width:85%"
-                :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('dataManage.dictionaryManageObj.remark')"
+              :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('dataManage.dictionaryManageObj.remark')"
             ></el-input>
           </el-form-item>
         </el-form>
@@ -674,18 +674,20 @@
       if (res.children) {
         return
       }
-      this.insertform.tab = res.tab;
-      this.insertform.tabDesc = res.tabDesc;
-      this.insertform.ns = res.ns;
-      this.activeName = res.tab;
-      this.listData.tab = res.tab;
-      this.listData.ns = res.ns;
+      var val = JSON.parse(JSON.stringify(res))
+      this.insertform.tab = val.tab;
+      this.insertform.tabDesc = val.tabDesc;
+      this.insertform.ns = val.ns;
+      this.activeName = val.tab;
+      this.listData.tab = val.tab;
+      this.listData.ns = val.ns;
       this.startQueryNameData();
     },
     async startQueryNameData() {
       if (this.listData.tab == "") {
         delete this.listData.tab;
       }
+      this.tableData = [];
       const data = await selectByPageAndCount(this.listData);
 
       if (data.code != 200) {
@@ -716,6 +718,7 @@
         return;
       }
       this.dialogFormVisible = false;
+      // this.startQueryNameData();
       this.startQueryNameData();
     },
     //淇敼璇︽儏寮规
@@ -865,6 +868,7 @@
       this.$confirm("鍏抽棴鍚庢棤娉曚繚瀛橈紝鏄惁鍏抽棴?")
         .then((_) => {
           this.InsertFormdialog = false
+          this.insertform = {};
         })
         .catch((_) => { });
     },

--
Gitblit v1.9.3