| | |
| | | <template> |
| | | <div class="deviceCalendar_list"> |
| | | <a-card :bordered="false"> |
| | | <div :bordered="false"> |
| | | <!-- 查询区域 --> |
| | | |
| | | <div> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="2" :sm="2" :xs="2"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button v-has="'user.disposition'" type="primary" @click="handleAdd" icon="plus">配置</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | <a-col :md="2" :sm="2"> |
| | | <!--//沈飞--> |
| | | <a-button v-has="'user.disposition'" type="primary" @click="handleAdd" icon="plus">配置</a-button> |
| | | <!--<a-col :md="2" :sm="2" :xs="2">--> |
| | | <!--<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>--> |
| | | <!--</a-col>--> |
| | | <!--<a-col :md="2" :sm="2">--> |
| | | <!--<!–//沈飞–>--> |
| | | <!--<a-button v-has="'user.disposition'" type="primary" @click="handleAdd" icon="plus">配置</a-button>--> |
| | | |
| | | <!--<a-button type="primary" @click="handleAdd" icon="plus">配置</a-button>--> |
| | | </a-col> |
| | | <!--<!–<a-button type="primary" @click="handleAdd" icon="plus">配置</a-button>–>--> |
| | | <!--</a-col>--> |
| | | |
| | | |
| | | </a-row> |
| | |
| | | <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> |
| | |
| | | </a-table> |
| | | </div> |
| | | <device-calendar-model ref="modalForm" @ok="modalFormOk"></device-calendar-model> |
| | | </a-card> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | 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){ |
| | | this.$message.error("请设置url.list属性!") |
| | | return |