ll
liukangdong
2024-10-15 1477a1353e96b5620a29c78e2b08647a1a2bc5b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<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="140px"  align="center"></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: {
  }
}
</script>