From 8318a0e79e3b5a2d55d342b6e37df69dbb5c2077 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 10 Jul 2021 17:43:33 +0800
Subject: [PATCH] 细节修改

---
 src/views/dispatchChild/index.vue |   59 +++++++++++++++++++++--------------------------------------
 1 files changed, 21 insertions(+), 38 deletions(-)

diff --git a/src/views/dispatchChild/index.vue b/src/views/dispatchChild/index.vue
index 8c36729..ce20d84 100644
--- a/src/views/dispatchChild/index.vue
+++ b/src/views/dispatchChild/index.vue
@@ -49,7 +49,7 @@
         @selection-change="selectionChange1"
         @refresh-change="refreshChange1"
       >
-        <template slot="menuLeft">
+        <!-- <template slot="menuLeft">
           <el-button
             type="danger"
             size="small"
@@ -58,7 +58,7 @@
             @click="handleDelete1"
             >删 除
           </el-button>
-        </template>
+        </template> -->
       </avue-crud>
     </span>
     <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
@@ -106,7 +106,7 @@
       //基本信息
       //保安单位信息表单
       obj0: {
-        title: "我是头部标题",
+        // title: "我是头部标题",
       },
       option0: {
         emptyBtn: false,
@@ -144,14 +144,19 @@
       query1: {},
       data1: [],
       option1: {
-        card: true,
+        // card: true,
+        tip: false,
+        index: true,
+        menu: false,
         searchSize: "mini",
-        searchMenuSpan: 6,
-        height: 547,
-        menuWidth: 160,
+        searchMenuSpan: 8,
+        height: 563,
+        // menuWidth: 160,
         align: "center",
-        selection: true,
+        // selection: true,
         column: column1,
+        cellBtn: false,
+        addBtn: false,
       },
     };
   },
@@ -179,6 +184,7 @@
         // this.onLoad(this.page);
       } else if (column.prop == "tab2") {
         // this.loading = false;
+        console.log(document.getElementsByClassName("el-card__body")[0]);
         this.onLoad1(this.page1); //第二个表格不会自动执行
       }
       // this.$message.success(JSON.stringify(column));
@@ -456,33 +462,15 @@
     },
   },
   mounted() {
-    // this.typeTABS = this.optionTABS.column[0];
-    // // console.log(typeof this.$route.query.row, 15315);
-    // if (typeof this.$route.query.row == "object") {
-    //   var row = this.$route.query.row;
-    //   for (var k in row) {
-    //     this.obj0[k] = row[k];
-    //   }
-    //   this.obj0.title = row.name + "基本信息";
-    //   // console.log(row);
-    //   this.id = row.id;
-    //   this.saveLock("paqiandata", JSON.stringify(row));
-    // } else {
-    //   var row = JSON.parse(this.readLock("paqiandata"));
-    //   // console.log(row);
-    //   this.obj0.title = row.name + "基本信息";
-    //   for (var k in row) {
-    //     this.obj0[k] = row[k];
-    //   }
-    // }
     this.typeTABS = this.optionTABS.column[0];
     var row = {};
     if (this.readLock("paqiandata") != null) {
       row = JSON.parse(this.readLock("paqiandata"));
-      this.obj0.title = row.name + " 基本信息";
+      this.obj0.name = row.name;
       for (var k in row) {
         this.obj0[k] = row[k];
       }
+      console.log(this.obj0, 11111111);
       this.id = row.id;
       if (this.readLock("paqiandataS") != null) {
         var b = JSON.parse(this.readLock("paqiandataS"));
@@ -498,32 +486,27 @@
           // console.log("已删除");
 
           this.obj0 = {};
-          this.obj0.title = row.name + " 该派遣单位已删除";
+          this.obj0.name = row.name + " 该派遣单位已删除";
           window.localStorage.removeItem("paqiandata");
           this.id = 1244241;
         }
       }
     } else {
       // console.log("no");
-      this.obj0.title = " 未选择派遣单位";
+      this.obj0.name = " 未选择派遣单位";
     }
   },
 };
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 .dispatch {
   width: 100%;
   height: 100%;
   //   border: 1px solid #000;
   box-sizing: border-box;
 }
-.el-card__body {
-  padding-bottom: 5px !important;
-}
-.avue-crud__tip,
-.el-tag,
-.el-tag--light {
-  padding: 0 !important;
+.el-collapse-item{
+  padding-top: 15px !important;
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3