| <template> | 
|   <TableLayout :permissions="['business:platformgroup:query']"> | 
|     <!-- 表格和分页 --> | 
|     <template v-slot:table-wrap> | 
|       <ul class="toolbar" v-permissions="['business:platformgroup:create','business:platformgroup:delete']"> | 
|         <li><el-button type="primary" @click="$refs.operaPlatformGroupWindow.open('新建月台分组')" icon="el-icon-plus" v-permissions="['business:platformgroup:create']">新建</el-button></li> | 
|         <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:platformgroup:delete']">删除</el-button></li> | 
|       </ul> | 
|       <el-table | 
|           :height="tableHeightNew" | 
|         v-loading="isWorking.search" | 
|         :data="tableData.list" | 
|         stripe | 
|         @selection-change="handleSelectionChange" | 
|       > | 
|         <el-table-column type="selection" width="55"></el-table-column> | 
|         <el-table-column prop="name" label="月台组名称" fixed min-width="150px" align="center"></el-table-column> | 
|         <el-table-column prop="startTime" label="工作时间" min-width="100px"  align="center"> | 
|           <template scope="{row}"> | 
|             {{row.startTime || ' '}} - {{row.endTime || ' '}} | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column prop="type" label="业务类型"  align="center" min-width="100px"> | 
|           <template scope="{row}"> | 
|             <span v-if="row.type == 0">物流卸货</span> | 
|             <span v-if="row.type == 1">物流装货</span> | 
|             <span v-if="row.type == 2">市公司卸货</span> | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column prop="waitCallTime" label="叫号等待时间(分钟)" min-width="140px"  align="center"></el-table-column> | 
|         <el-table-column prop="signInNoticeUserNames" label="签到通知人员" min-width="200px"  align="center"></el-table-column> | 
|         <el-table-column prop="unFinishNoticeUserNames" label="未完成作业通知人员" min-width="200px"  align="center"></el-table-column> | 
|         <el-table-column prop="waitCallTime" label="自动叫号时间" min-width="140px"  align="center"> | 
|           <template scope="{row}"> | 
|             {{row.autoCallStartTime || ' '}} - {{row.autoCallEndTime || ' '}} | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column prop="type" label="虚拟月台组"  align="center" min-width="100px"> | 
|           <template scope="{row}"> | 
|             <span v-if="row.isVirtual == 1" class="red">是</span> | 
|             <span v-else class="green">否</span> | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column label="是否自动叫号"  width="100px" fixed="right" align="center"> | 
|           <template slot-scope="{row}"> | 
|             <el-switch @change="changeAutoCall($event, row)" v-model="row.autoCall" active-color="#13ce66" | 
|                        inactive-color="#ff4949" :active-value="1" :inactive-value="0"  > | 
|             </el-switch> | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column prop="editDate" label="最近更新时间" min-width="150px"  align="center"></el-table-column> | 
|         <el-table-column | 
|           v-if="containPermissions(['business:platformgroup:update', 'business:platformgroup:delete'])" | 
|           label="操作" | 
|           min-width="120" | 
|           align="center" | 
|           fixed="right" | 
|         > | 
|           <template slot-scope="{row}"> | 
|             <el-button type="text" @click="$refs.operaPlatformGroupWindow.open('编辑月台分组', row)" icon="el-icon-edit" v-permissions="['business:platformgroup:update']">编辑</el-button> | 
|             <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:platformgroup:delete']">删除</el-button> | 
|           </template> | 
|         </el-table-column> | 
|       </el-table> | 
|       <pagination | 
|         @size-change="handleSizeChange" | 
|         @current-change="handlePageChange" | 
|         :pagination="tableData.pagination" | 
|       > | 
|       </pagination> | 
|     </template> | 
|     <!-- 新建/修改 --> | 
|     <OperaPlatformGroupWindow ref="operaPlatformGroupWindow" @success="handlePageChange"/> | 
|   </TableLayout> | 
| </template> | 
|   | 
| <script> | 
| import BaseTable from '@/components/base/BaseTable' | 
| import TableLayout from '@/layouts/TableLayout' | 
| import Pagination from '@/components/common/Pagination' | 
| import OperaPlatformGroupWindow from '@/components/business/OperaPlatformGroupWindow' | 
| export default { | 
|   name: 'Platform', | 
|   extends: BaseTable, | 
|   components: { TableLayout, Pagination, OperaPlatformGroupWindow }, | 
|   data () { | 
|     return { | 
|       // 搜索 | 
|       working: false, | 
|       working1: false, | 
|       searchForm: { | 
|         name: '' | 
|       } | 
|     } | 
|   }, | 
|   created () { | 
|     this.config({ | 
|       module: '月台信息表', | 
|       api: '/platform/platformGroup', | 
|       'field.id': 'id', | 
|       'field.main': 'id' | 
|     }) | 
|     this.search() | 
|   }, | 
|   methods: { | 
|     changeAutoCall(e, row) { | 
|       this.api.updateAutoCallById({ | 
|         id: row.id, | 
|         autoCall: e | 
|       }) | 
|     } | 
|   } | 
| } | 
| </script> |