From 198b83ce825fbbf912cb26d592e3c7b0b586ca92 Mon Sep 17 00:00:00 2001
From: 王旭 <1377869194@qq.com>
Date: 星期一, 20 二月 2023 17:38:22 +0800
Subject: [PATCH] 数据管理页面格式

---
 src/views/datamanage/metadataManage.vue |   48 +++++++++++++++++++++++++++++++++---------------
 1 files changed, 33 insertions(+), 15 deletions(-)

diff --git a/src/views/datamanage/metadataManage.vue b/src/views/datamanage/metadataManage.vue
index cdb66d6..ff7d664 100644
--- a/src/views/datamanage/metadataManage.vue
+++ b/src/views/datamanage/metadataManage.vue
@@ -268,17 +268,29 @@
           </el-pagination>
         </div>
       </div>
-
-    <div class="infoBox" v-show="showinfoBox">
-      <el-card class="box-card">
-        <div slot="header" class="clearfix">
-          <span>{{ $t("common.details") }}</span>
-          <div style="float: right; cursor: pointer" @click="closeDetial">
+  
+    <div
+      class="infoBox box_div"
+      v-show="showinfoBox"
+    >
+        <div
+          slot="header"
+          class="clearfix"
+        >
+          <span>{{ $t('common.details') }}</span>
+          <div
+            style="float: right; cursor: pointer"
+            @click="closeDetial"
+          >
             <i class="el-icon-close"></i>
           </div>
         </div>
-        <div class="contentBox" style="padding: 1%">
-          <p>{{ $t("dataManage.vmobj.name") }}锛歿{ itemdetail.name }}</p>
+          <el-divider></el-divider>
+        <div
+          class="contentBox"
+          style="padding:1%"
+        >
+          <p>{{ $t('dataManage.vmobj.name') }}锛歿{ itemdetail.name }}</p>
           <el-divider></el-divider>
           <p>{{ $t("dataManage.vmobj.format") }}锛歿{ itemdetail.type }}</p>
           <el-divider></el-divider>
@@ -318,7 +330,7 @@
             }}
           </p>
         </div>
-      </el-card>
+ 
     </div>
     <el-dialog
       width="80vh"
@@ -526,6 +538,7 @@
         </el-form-item>
       </el-form>
     </div>
+  
     <iframe
       id="downFrame"
       src=""
@@ -764,7 +777,7 @@
         return;
       }
       this.companyOption1 = this.treeData(res.result);
-      this.queryForm.depid = this.companyOption1[0].id;
+      this.queryForm.depcode = this.companyOption1[0].code;
       this.queryForm.depName = this.companyOption1[0].name;
       this.getQueryDirTree();
     },
@@ -777,6 +790,7 @@
       }
       this.companyOption = this.treeData(res.result);
       this.queryForm.dirid = this.companyOption[0].id;
+      this.queryForm.dircode = this.companyOption[0].code;
       this.queryForm.dirName = this.companyOption[0].name;
       this.getQueryVerList();
     },
@@ -800,6 +814,7 @@
     handleChange(data, node, nodeData) {
       this.listData.pageSize = 10;
       this.listData.pageIndex = 1;
+      this.queryForm.dircode = data.code;
       this.queryForm.dirid = data.id;
       this.queryForm.dirName = data.name;
       this.getQueryVerList();
@@ -807,16 +822,18 @@
     handleChange1(data, node, nodeData) {
       this.listData.pageSize = 10;
       this.listData.pageIndex = 1;
-      this.queryForm.depid = data.id;
+      this.queryForm.depcode = data.code;
       this.queryForm.depName = data.name;
       this.getMetaData();
     },
     handleChange2(data, node, nodeData) {
       this.editForm.depid = data.id;
+      this.editForm.depcode = data.code;
       this.editForm.depName = data.name;
     },
     handleChange3(data, node, nodeData) {
       this.editForm.dirid = data.id;
+      this.editForm.dircode = data.code;
       this.editForm.dirName = data.name;
     },
     //鏍煎紡鍖栧垪琛�
@@ -885,7 +902,7 @@
       }
       this.optionCount = this.treeData(res.result);
       this.dirComPanyOption = this.treeData(res.result);
-      this.listData.dirid = this.optionCount[0].id;
+      this.listData.depcode = this.optionCount[0].code;
     },
     handleNodeClick(data) {
       this.listData.pageSize = 10;
@@ -938,8 +955,8 @@
     // },
     // 璇锋眰鏁版嵁鍐呭
     getMetaData() {
-      this.listData.depid = this.queryForm.depid;
-      this.listData.dirid = this.queryForm.dirid;
+      this.listData.depcode = this.queryForm.depcode;
+      this.listData.dircode = this.queryForm.dircode;
 
       this.listData.verid = this.queryForm.verid;
       // this.listData.dirid = 57
@@ -964,6 +981,8 @@
       this.listData.name = null;
       this.queryForm.dirid = this.companyOption[0].id;
       this.queryForm.depid = this.companyOption1[0].id;
+      this.queryForm.dircode = this.companyOption[0].code;
+      this.queryForm.depcode = this.companyOption1[0].code;
       this.queryForm.dirName = this.companyOption[0].name;
       this.queryForm.depName = this.companyOption1[0].name;
       this.getQueryVerList();
@@ -982,7 +1001,6 @@
     sendAdd(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
-          console.log(this.editForm);
           this.fullscreenLoading = true;
           insertMeta(this.editForm)
             .then((res) => {

--
Gitblit v1.9.3