From 1df1e9daa4d33a0e975db7ef0a73ee4dd45d216b Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期一, 26 八月 2024 09:19:58 +0800 Subject: [PATCH] lll --- admin/src/views/platform/platform.vue | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/admin/src/views/platform/platform.vue b/admin/src/views/platform/platform.vue index e567a8f..1632694 100644 --- a/admin/src/views/platform/platform.vue +++ b/admin/src/views/platform/platform.vue @@ -39,6 +39,18 @@ <el-table-column prop="code" label="鏈堝彴缂栫爜" fixed min-width="100px"></el-table-column> <el-table-column prop="groupName" label="鎵�灞炴湀鍙扮粍" fixed min-width="150px"></el-table-column> <el-table-column prop="workingNum" label="鍚屾椂鍙彿杞﹁締鏁�" min-width="120px"></el-table-column> + <el-table-column label="绂�/鍚敤" min-width="120px"> + <template slot-scope="{row}"> + <el-switch + @change="changeStatus($event, row)" + v-model="row.status" + active-color="#13ce66" + inactive-color="#ff4949" + :active-value="0" + :inactive-value="1"> + </el-switch> + </template> + </el-table-column> <el-table-column prop="stayTmeoutAlarmTime" label="鍋滅暀瓒呮椂鎶ヨ鏃堕棿(鍒嗛挓锛�" min-width="180px"> <template scope="{row}">{{row.stayTmeoutAlarmTime?(row.stayTmeoutAlarmTime):'-'}}</template> </el-table-column> @@ -54,6 +66,7 @@ <span v-if="row.platformStatus == 3">閿欒鍋滈潬</span> </template> </el-table-column> + <el-table-column prop="broadcastNames" label="鍏宠仈骞挎挱" min-width="100px"></el-table-column> <el-table-column prop="ledNames" label="鍏宠仈LED" min-width="100px"></el-table-column> <el-table-column prop="hkDate" label="鍚屾鏃堕棿" min-width="140px"></el-table-column> @@ -87,20 +100,20 @@ import SearchFormCollapse from '@/components/common/SearchFormCollapse' import Pagination from '@/components/common/Pagination' import OperaPlatformWindow from '@/components/business/OperaPlatformWindow' -import {allList} from "@/api/platform/platformGroup"; +import { allList } from '@/api/platform/platformGroup' export default { name: 'Platform', extends: BaseTable, components: { SearchFormCollapse, TableLayout, Pagination, OperaPlatformWindow }, data () { return { - groupList:[], + groupList: [], // 鎼滅储 working: false, working1: false, searchForm: { name: '', - groupId:null + groupId: null } } }, @@ -117,9 +130,9 @@ methods: { loadGroupList () { allList({}) - .then(res => { - this.groupList = res || [] - }) + .then(res => { + this.groupList = res || [] + }) }, changeStatus (e, row) { this.api.updateStatusById({ @@ -137,7 +150,7 @@ this.search() }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking.working = false @@ -155,7 +168,7 @@ this.search() }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking.working = false -- Gitblit v1.9.3