<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 
 | 
        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="150px"  align="center"> 
 | 
          <template scope="{row}"> 
 | 
            {{row.startTime || ' '}} - {{row.endTime || ' '}} 
 | 
          </template> 
 | 
        </el-table-column> 
 | 
        <el-table-column prop="type" label="业务类型"  align="center" min-width="150px"> 
 | 
          <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="100px"  align="center"></el-table-column> 
 | 
        <el-table-column prop="editDate" label="最近更新时间" min-width="140px"  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: { 
 | 
  } 
 | 
} 
 | 
</script> 
 |