From cc2df46ba6192b1541b976cb992e2ea3f76b8fc7 Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期五, 09 十二月 2022 17:32:54 +0800
Subject: [PATCH] 点位管理视频加载
---
src/views/systemSetting/device/grid/components/main/index.vue | 34 ++++++++++++----------------------
1 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/src/views/systemSetting/device/grid/components/main/index.vue b/src/views/systemSetting/device/grid/components/main/index.vue
index 48545d9..0ee4496 100644
--- a/src/views/systemSetting/device/grid/components/main/index.vue
+++ b/src/views/systemSetting/device/grid/components/main/index.vue
@@ -1,8 +1,8 @@
<template>
<div class="mainContent">
- <div class="aside">
+ <!-- <div class="aside">
<department-aside />
- </div>
+ </div> -->
<div class="grid-content">
<!-- 鏁版嵁灞曠ず -->
<el-table ref="multipleTable"
@@ -25,8 +25,6 @@
<span>{{filterRole(scope.row.roles)}}</span>
</template>
</el-table-column>
- <!-- <el-table-column prop="departName" label="鎵�灞為儴闂�" min-width="8">
- </el-table-column> -->
<el-table-column prop="jobTitle" label="鎵�灞炶亴鍔�" min-width="8">
</el-table-column>
<el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="10">
@@ -130,7 +128,6 @@
},
methods: {
async selectChange(list) {
- console.log(this.tempList);
if (this.tempList.length !== 0) {
this.preMyIdx = list;
if (list === 3) {
@@ -154,15 +151,10 @@
list.forEach(item => {
this.tempList.push(item.id);
})
- if (list.length === this.tableData.length) {
- this.all = true;
- } else {
- this.all = false
- }
+ this.all = list.length === this.tableData.length;
},
// 鎵归噺鍒犻櫎鐢ㄦ埛淇℃伅
mulDelte(idArr) {
- console.log(idArr);
this.$confirm("鎮ㄧ‘瀹氳杩涜鎵归噺鍒犻櫎鐢ㄦ埛鍚�?")
.then(_ => {
this.$axios({
@@ -184,11 +176,10 @@
}
})
})
- .catch(err => { console.log(err) })
+ .catch(err => { })
},
// 鎵归噺淇敼璐﹀彿
mulUpdateStatus(idArr, flag) {
- console.log(flag);
this.$confirm(flag === 1 ? "鎮ㄧ‘瀹氳杩涜鎵归噺鍚敤鐢ㄦ埛鍚�?" : '鎮ㄧ‘瀹氳杩涜鎵归噺绂佺敤鐢ㄦ埛鍚�?')
.then(_ => {
this.$axios({
@@ -210,7 +201,7 @@
}
})
})
- .catch(err => { console.log(err) })
+ .catch(err => { })
},
changeTime({ createTime }) {
return helper(createTime);
@@ -275,7 +266,7 @@
this.dialogUpdate = true;
this.updateFlag = true;
for (let key in this.flag) {
- if (key == mykey) {
+ if (key === mykey) {
this.flag[key] = true;
} else {
this.flag[key] = false;
@@ -286,7 +277,7 @@
// 淇敼鐢ㄦ埛鐘舵��
handleChangeStatus(obj) {
let { id, status } = obj;
- status == true ? status = 1 : status = 0;
+ status === true ? status = 1 : status = 0;
this.$axios.post(`sccg/admin/updateStatus/` + id + '?status=' + status).then(res => {
})
},
@@ -298,7 +289,7 @@
this.$axios.get(`sccg/admin/list?keyword=${search}¤t=${currentPage}&pageSize=${pageSize}`).then(res => {
if (res.code === 200) {
res.data.records.forEach(item => {
- item.status == 1 ? item.status = true : item.status = false;
+ item.status === 1 ? item.status = true : item.status = false;
})
that.totalNum = res.data.total;
that.tableData = res.data.records;
@@ -313,12 +304,11 @@
},
// 璁剧疆琛ㄦ牸鏂戦┈绾�
tableRowClassName({ row, rowIndex }) {
- if ((rowIndex + 1) % 2 == 0) {
+ if ((rowIndex + 1) % 2 === 0) {
return 'warning-row';
} else {
return 'success-row';
}
- return '';
},
// 澶勭悊鐢ㄦ埛鎵�灞炶鑹�
filterRole(arr){
@@ -342,9 +332,9 @@
watch: {
refresh: {
handler(newValue, oldValue) {
- if (newValue == true) {
+ if (newValue) {
this.search = '';
- if (this.keyword != '') {
+ if (this.keyword !== '') {
this.search = this.keyword;
}
this.currentPage = 1;
@@ -360,7 +350,7 @@
<style lang="scss" scoped>
.mainContent {
display: flex;
- justify-content: start;
+ justify-content: flex-start;
flex-wrap: nowrap;
.grid-content {
--
Gitblit v1.8.0