From db252fda6a2d5c806ada7f7a95a11e09d1a9f657 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 06 九月 2024 17:06:23 +0800
Subject: [PATCH] 查询模板

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/index.vue |   37 ++++++++++++++++++++++++-------------
 1 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/index.vue
index 7f0d303..a5d706a 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/index.vue
@@ -35,7 +35,7 @@
         <form-dialog ref="formRef" @refresh="getTemp"></form-dialog>
         <!--瀵煎叆    -->
         <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="瀵煎叆"
-                     @updata="getTemp"></upload-file>
+                     @updata="uploadCallBack"></upload-file>
       </basic-container>
     </el-main>
   </el-container>
@@ -43,7 +43,8 @@
 
 <script>
 import {gridLink} from "@/api/modeling/linkType/api";
-import {getObjTypeQTs,deleteLinkTemplate,expLinkTemplate,impLinkTemplate} from "@/api/queryTemplate/linkTypeQuery";
+import {deleteLinkTemplate,expLinkTemplate,impLinkTemplate} from "@/api/queryTemplate/linkTypeQuery";
+import {getObjTypeQTs} from "@/api/queryTemplate/queryDefine";
 import basicOption from "@/util/basic-option";
 import FormDialog from "./formDialog.vue"
 import func from "@/util/func";
@@ -70,16 +71,6 @@
         oid: 'topNode',
         children: []
       }],
-      templateForm: '',
-      templateData: [],
-      form: {
-        name: ''
-      },
-      rules: {
-        name: [
-          {required: true, message: '璇疯緭鍏ユ煡璇㈡ā鏉垮悕绉�', trigger: 'blur'}
-        ]
-      },
       title: '',
       visible: false,
       tableLoading: false,
@@ -260,13 +251,33 @@
       }
 
       let qtNames = this.selectionRow.map(item => item.qtName).join(',');
-      expLinkTemplate({qtNames: qtNames}).then(res => {
+      expLinkTemplate(qtNames).then(res => {
         func.downloadFileByBlobHandler(res);
         this.$message.success('瀵煎嚭鎴愬姛');
       })
     },
     upLoadClickHandler(){
       this.$refs.upload.visible = true;
+    },
+    uploadCallBack(res){
+      function getText(child){
+        let text=''
+        if(child[0].children && child[0].children.length>0){
+          text=getText(child[0].children)
+        }else{
+          text=child[0].text ||child[0];
+        }
+        return text
+      }
+      if(res.obj) {
+        if (res.obj.children) {
+          this.$message.info(getText(res.obj.children));
+        }
+      }
+      if(res.data){
+        this.crudData = res.data;
+      }
+      //this.getTemp();
     }
   }
 }

--
Gitblit v1.9.3