|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | loadGroupList () { | 
|---|
|  |  |  | allList({}) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | this.groupList = res || [] | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | this.groupList = res || [] | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | changeStatus (e, row) { | 
|---|
|  |  |  | this.api.updateStatusById({ | 
|---|
|  |  |  | 
|---|
|  |  |  | this.search() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch(e => { | 
|---|
|  |  |  | this.$tip.apiFailed(e) | 
|---|
|  |  |  | // this.$tip.apiFailed(e) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .finally(() => { | 
|---|
|  |  |  | this.isWorking.working = false | 
|---|
|  |  |  | 
|---|
|  |  |  | this.search() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch(e => { | 
|---|
|  |  |  | this.$tip.apiFailed(e) | 
|---|
|  |  |  | // this.$tip.apiFailed(e) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .finally(() => { | 
|---|
|  |  |  | this.isWorking.working = false | 
|---|