From 9ff66017debadfc89bc0c1b796684a4d1dbe2bc3 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期五, 16 十二月 2022 10:00:02 +0800
Subject: [PATCH] 已上报到市批量操作按钮隐藏

---
 src/views/operate/baseSetting/illegalBuild/index.vue |  104 ++-------------------------------------------------
 1 files changed, 5 insertions(+), 99 deletions(-)

diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue
index 25a0963..401bc81 100644
--- a/src/views/operate/baseSetting/illegalBuild/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/index.vue
@@ -30,11 +30,11 @@
                     @selection-change="tableChange">
                     <el-table-column type="selection" min-width="5">
                     </el-table-column>
-                    <el-table-column prop="number" label="缂栧彿" min-width="10">
+                    <el-table-column prop="number" label="缂栧彿" min-width="5">
                     </el-table-column>
                     <el-table-column prop="typeFirst" label="鎵�灞炵被鍨�" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="10">
+                    <el-table-column prop="type" label="鎵�灞炵被鍒�" min-width="20">
                     </el-table-column>
                     <el-table-column prop="operation" label="鎿嶄綔" min-width="10">
                         <template slot-scope="scope">
@@ -128,7 +128,6 @@
     methods: {
         // 鎵归噺鍒犻櫎
         mulDelete(idArr){
-            console.log(idArr);
             this.$axios({
                 method:'delete',
                 url:'sccg/illegal_building/batch_delete?ids='+idArr,
@@ -160,11 +159,7 @@
         // 鐩戝惉琛ㄦ牸閫変腑鐘舵��
         tableChange(list) {
             this.tempList = list;
-            if (list.length === this.tableData.length) {
-                this.all = true;
-            } else {
-                this.all = false
-            }
+            this.all = list.length === this.tableData.length;
         },
         // 鍏ㄩ��
         selectAll() {
@@ -178,16 +173,13 @@
         },
         // 鍒犻櫎鍗曟潯鏁版嵁
         handleDelete({ number }) {
-            console.log(number);
             this.$confirm('纭鍒犻櫎锛�')
                 .then(_ => {
-                    console.log(1);
                     this.$axios({
                         method: 'delete',
                         url: `sccg/illegal_building/delete?id=${number}`,
                     })
                         .then(res => {
-                            console.log(res);
                             this.$message({
                                 type: res.code === 200 ? 'success' : 'warning',
                                 message: res.message
@@ -196,7 +188,7 @@
                             this.getUserList();
                         })
                 })
-                .catch(_ => { console.log(2) });
+                .catch(_ => {  });
         },
         // 鑾峰彇鐢ㄦ埛鍒楄〃
         getUserList() {
@@ -213,12 +205,11 @@
         },
         // 璁剧疆琛ㄦ牸鏂戦┈绾�
         tableRowClassName({ row, rowIndex }) {
-            if ((rowIndex + 1) % 2 == 0) {
+            if ((rowIndex + 1) % 2 === 0) {
                 return 'warning-row';
             } else {
                 return 'success-row';
             }
-            return '';
         },
         // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
         handleFind(rowData) {
@@ -281,7 +272,6 @@
 
     header {
         background-color: #09152f;
-        border: 1pox solid #fff;
 
         .headerContent {
             padding: 0 40px;
@@ -301,11 +291,6 @@
                 .el-input {
                     flex: 2;
                     color: #1d3f57;
-
-                    &::v-deep .el-input__inner {
-                        background-color: #09152f;
-                        border: 1px solid #17324c;
-                    }
                 }
 
             }
@@ -336,7 +321,6 @@
         background-color: #09152f;
         margin-top: 20px;
         padding-bottom: 50px;
-        border: 1pox solid #fff;
 
         .mainTitle {
             line-height: 60px;
@@ -367,11 +351,6 @@
 
                     .el-select {
                         width: 120px;
-                    }
-
-                    &::v-deep .el-input__inner {
-                        border: none;
-                        background-color: #09152f;
                     }
 
                     &:hover {
@@ -417,15 +396,6 @@
                 white-space: nowrap;
                 overflow: hidden;
             }
-
-            &::v-deep .el-table__empty-block {
-                background-color: #09152f;
-            }
-
-            &::v-deep .el-table__empty-block {
-                color: #4b9bb7;
-            }
-
             .operation {
                 display: flex;
 
@@ -438,70 +408,6 @@
                 }
             }
         }
-
-        .el-table::v-deep .warning-row {
-            background: #06122c;
-        }
-
-        .el-table::v-deep .success-row {
-            background: #071f39;
-        }
-
-        &::v-deep .switchStyle .el-switch__label {
-            position: absolute;
-            display: none;
-            color: #fff;
-        }
-
-        &::v-deep .el-switch__core {
-            background-color: rgba(166, 166, 166, 1);
-        }
-
-        &::v-deep .switchStyle .el-switch__label--left {
-            z-index: 9;
-            left: 20px;
-        }
-
-        &::v-deep .switchStyle .el-switch__label--right {
-            z-index: 9;
-            left: 4px;
-        }
-
-        &::v-deep .switchStyle .el-switch__label.is-active {
-            display: block;
-        }
-
-        &::v-deep .switchStyle.el-switch .el-switch__core,
-        &::v-deep .el-switch .el-switch__label {
-            width: 50px !important;
-        }
-    }
-
-    &::v-deep .el-dialog__header,
-    &::v-deep .el-dialog__body {
-        background-color: #06122c;
-    }
-
-    &::v-deep .el-dialog__header {
-        display: flex;
-        align-items: center;
-        background-color: #fff;
-        padding: 20px;
-        line-height: 60px;
-    }
-
-    &::v-deep .el-dialog__title {
-        color: #4b9bb7;
-    }
-
-    &::v-deep .el-dialog__close {
-        width: 20px;
-        height: 20px;
-        // color: #fff;
-    }
-
-    &::v-deep .el-dialog__body {
-        padding: 0;
     }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0