From 997835429a1d66643364091e8437ebbbeb8ff97a Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期四, 28 九月 2023 14:09:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into develop --- src/views/mdc/base/modules/deviceCalendar/DeviceCalendarList.vue | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarList.vue b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarList.vue index 9667f8b..47997ea 100644 --- a/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarList.vue +++ b/src/views/mdc/base/modules/deviceCalendar/DeviceCalendarList.vue @@ -31,6 +31,15 @@ <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> @@ -127,12 +136,21 @@ 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' } } }, @@ -178,7 +196,6 @@ this.queryParam = {} this.loadData() }, - loadData(arg) { this.dataSource = []; if(!this.url.list){ -- Gitblit v1.9.3