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 | 116 +++++---------------------------------------------------- 1 files changed, 11 insertions(+), 105 deletions(-) diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue index 25a0963..993e979 100644 --- a/src/views/operate/baseSetting/illegalBuild/index.vue +++ b/src/views/operate/baseSetting/illegalBuild/index.vue @@ -25,16 +25,16 @@ <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"> </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) { @@ -280,8 +271,7 @@ } header { - background-color: #09152f; - border: 1pox solid #fff; + background-color: #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; - } } } @@ -333,10 +318,9 @@ } main { - background-color: #09152f; + background-color: #fff; margin-top: 20px; padding-bottom: 50px; - border: 1pox solid #fff; .mainTitle { line-height: 60px; @@ -369,11 +353,6 @@ width: 120px; } - &::v-deep .el-input__inner { - border: none; - background-color: #09152f; - } - &:hover { border: 1px solid #4b9bb7; } @@ -396,7 +375,7 @@ &::v-deep li, &::v-deep .btn-prev, &::v-deep .btn-next { - background-color: #071f39; + // background-color: #071f39; color: #4b9bb7; } @@ -409,23 +388,14 @@ } .el-table { - color: #4b9bb7; - font-size: 10px; + // color: #4b9bb7; + // font-size: 10px; &::v-deep .cell { text-overflow: ellipsis; 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