| | |
| | | <div style="overflow: auto;width: 100%;margin-top: 20px;height: 569px;"> |
| | | <a-table ref="table" bordered size="middle" rowKey="id" :columns="columns" @change="handleTableChange" class="ant-table-striped" |
| | | :dataSource="dataSource" :pagination="ipagination" :loading="loading" :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped' : null)"> |
| | | <span slot="action" |
| | | slot-scope="text, record"> |
| | | <a-popconfirm |
| | | title="确定删除吗?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>删除</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span slot="isDaySpan" slot-scope="text, record"> |
| | | <span v-if="text == 'true'">是</span> |
| | | <span v-if="text == 'false'">否</span> |
| | |
| | | title: '结束休息时间', |
| | | align: 'center', |
| | | dataIndex: 'sleepEndDate' |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | checkedList: ['lyl'], |
| | | dataList: [], |
| | | url: { |
| | | list: '/mdc/mdcDeviceCalendar/list' |
| | | list: '/mdc/mdcDeviceCalendar/list', |
| | | delete:'/mdc/mdcDeviceCalendar/delete' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.queryParam = {} |
| | | this.loadData() |
| | | }, |
| | | |
| | | loadData(arg) { |
| | | this.dataSource = []; |
| | | if(!this.url.list){ |