From cd2d3c65b9af62cbafa57a835b237a9f193148f2 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 20 九月 2024 14:22:06 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- admin/src/views/platform/platform.vue | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/admin/src/views/platform/platform.vue b/admin/src/views/platform/platform.vue index e567a8f..8ae1b2c 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> @@ -56,7 +68,7 @@ </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> + <el-table-column prop="hkDate" label="鍚屾鏃堕棿" min-width="150px"></el-table-column> <el-table-column v-if="containPermissions(['business:platform:update', 'business:platform:delete'])" label="鎿嶄綔" @@ -87,20 +99,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 +129,9 @@ methods: { loadGroupList () { allList({}) - .then(res => { - this.groupList = res || [] - }) + .then(res => { + this.groupList = res || [] + }) }, changeStatus (e, row) { this.api.updateStatusById({ @@ -137,7 +149,7 @@ this.search() }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking.working = false @@ -155,7 +167,7 @@ this.search() }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking.working = false -- Gitblit v1.9.3