| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <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="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> |