From 54837b203b8d23c01e0e6cf716cb6a3829ae60f6 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期四, 22 十二月 2022 19:48:07 +0800
Subject: [PATCH] 数据检索,关键字查询,空间查询,专题图添加mpt,

---
 src/views/datamanage/versionManage.vue |   46 ++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 40 insertions(+), 6 deletions(-)

diff --git a/src/views/datamanage/versionManage.vue b/src/views/datamanage/versionManage.vue
index 36a10b5..ea43b78 100644
--- a/src/views/datamanage/versionManage.vue
+++ b/src/views/datamanage/versionManage.vue
@@ -8,12 +8,27 @@
     ></My-bread>
     <el-divider />
     <div class="verSionContent">
-      <div class="verSion_leftTree">
+      <!-- <div class="verSion_leftTree">
         <ver-dir-tree></ver-dir-tree>
-      </div>
+      </div> -->
       <div class="verSion_rightContent">
         <el-form ref="ruleForm" :model="ruleForm" :inline="true">
-          <el-form-item :label="$t('dataManage.vmobj.keyword')" prop="name">
+           <el-form-item>
+            <el-cascader
+              v-model="ruleForm.dirid"
+              :show-all-levels="false"
+              :options="companyOption"
+              @change="handleChange"
+              :props="{
+              label: 'name',
+              value: 'id',
+              children: 'children',
+              checkStrictly: true,
+              emitPath: false,
+            }"
+            ></el-cascader>
+          </el-form-item>
+          <el-form-item  >
             <el-input
               v-model="ruleForm.name"
               :placeholder="$t('common.pleaseInput')"
@@ -71,7 +86,7 @@
             />
             <el-table-column
               align="center"
-              prop="createUser"
+              prop="createName"
               :label="$t('dataManage.vmobj.createonuser')"
             />
             <el-table-column
@@ -334,6 +349,7 @@
       ruleForm: {},
       insertform: {},
       tableData: [],
+      companyOption:[],
       count: 0,
       rowFlag: null,
       listData: {
@@ -360,6 +376,7 @@
     };
   },
   created() {
+    this.getQueryDirTree();
     this.getRoleTabelData();
     this.showPermsBtn();
   },
@@ -376,6 +393,22 @@
     },
     upCatalogChange(val) {
       this.upform.dirid == val;
+    },
+     //鐩綍鍒楄〃鑾峰彇
+    async getQueryDirTree() {
+      const res = await selectdirTab();
+      if (res.code != 200) {
+        this.$message.error('鐩綍鍒楄〃鑾峰彇澶辫触');
+        return;
+      }
+      this.companyOption = this.treeData(res.result);
+      this.ruleForm.dirid= this.companyOption[0].id
+      
+    },
+    handleChange(val){
+ 
+  this.ruleForm.dirid=val;
+  this.onSubmit();
     },
     //鐩綍鍒楄〃鑾峰彇
     async getSelectdirTab() {
@@ -421,6 +454,7 @@
     },
     resetForm() {
       this.ruleForm = {};
+         this.ruleForm.dirid= this.companyOption[0].id
       this.$store.state.verCateNode = {};
       this.$bus.$emit('clearTressLabel', true);
       this.getRoleTabelData();
@@ -436,7 +470,7 @@
       }
 
       this.listData.name = this.ruleForm.name;
-      this.listData.depName = this.$store.state.verCateNode.name;
+      this.listData.dirid = this.ruleForm.dirid;
 
       const data = await select_Ver_ByPageAndCount(this.listData);
 
@@ -582,7 +616,7 @@
       overflow-y: auto;
     }
     .verSion_rightContent {
-      width: 80%;
+      width: 98%;
       height: 95%;
       border: 1px solid white;
       border-radius: 5px;

--
Gitblit v1.9.3