From 990cbdbe0fd628361bfdf4f9a2bb64db5d8b6fe5 Mon Sep 17 00:00:00 2001
From: Oliver <1070107765@qq.com>
Date: 星期二, 13 十二月 2022 11:29:04 +0800
Subject: [PATCH] 预警研判添加定时器刷新数据
---
src/views/operate/baseSetting/illegalBuild/index.vue | 17 +++--------------
1 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/src/views/operate/baseSetting/illegalBuild/index.vue b/src/views/operate/baseSetting/illegalBuild/index.vue
index 2e47ab5..401bc81 100644
--- a/src/views/operate/baseSetting/illegalBuild/index.vue
+++ b/src/views/operate/baseSetting/illegalBuild/index.vue
@@ -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;
@@ -331,7 +321,6 @@
background-color: #09152f;
margin-top: 20px;
padding-bottom: 50px;
- border: 1pox solid #fff;
.mainTitle {
line-height: 60px;
--
Gitblit v1.8.0