From e91ea94c5e06bd183c65999b49c7852205e1ac64 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期三, 20 九月 2023 17:42:55 +0800
Subject: [PATCH] 1、工作日历管理页面增加表格单条数据删除功能 2、报警号管理页面与对比分析页面中的驱动类型数据不再使用数据字典,而采用调用接口获取数据方式 3、报警号管理页面的新增与编辑弹窗中的是否过滤选项切换器优化

---
 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