From a1e663eeb588f419b1622ca07b23fb9d44292ee9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 26 八月 2024 18:14:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin/src/views/platform/platform.vue |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/admin/src/views/platform/platform.vue b/admin/src/views/platform/platform.vue
index e567a8f..a21ad90 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>
@@ -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