From d6fb18b49cd61427a343fbe7a2a4f94e4b597bdc Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 29 十二月 2022 14:00:41 +0800
Subject: [PATCH] fix:店铺状态

---
 src/views/operate/baseSetting/illegalBuild/index.vue |   29 +++++++++--------------------
 1 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue
index 2e47ab5..993e979 100644
--- a/src/views/operate/baseSetting/illegalBuild/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/index.vue
@@ -25,7 +25,7 @@
             <div class="mainContent">
                 <!-- 鏁版嵁灞曠ず -->
                 <el-table ref="multipleTable"
-                    :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}"
+                    :header-cell-style="{background:'#fff','font-weight':'650','line-height':'45px'}"
                     :data="tableData" style="width: 100%" :row-class-name="tableRowClassName"
                     @selection-change="tableChange">
                     <el-table-column type="selection" min-width="5">
@@ -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) {
@@ -280,8 +271,7 @@
     }
 
     header {
-        background-color: #09152f;
-        border: 1pox solid #fff;
+        background-color: #fff;
 
         .headerContent {
             padding: 0 40px;
@@ -328,10 +318,9 @@
     }
 
     main {
-        background-color: #09152f;
+        background-color: #fff;
         margin-top: 20px;
         padding-bottom: 50px;
-        border: 1pox solid #fff;
 
         .mainTitle {
             line-height: 60px;
@@ -386,7 +375,7 @@
                     &::v-deep li,
                     &::v-deep .btn-prev,
                     &::v-deep .btn-next {
-                        background-color: #071f39;
+                        // background-color: #071f39;
                         color: #4b9bb7;
                     }
 
@@ -399,8 +388,8 @@
         }
 
         .el-table {
-            color: #4b9bb7;
-            font-size: 10px;
+            // color: #4b9bb7;
+            // font-size: 10px;
 
             &::v-deep .cell {
                 text-overflow: ellipsis;

--
Gitblit v1.8.0