From 7d1597ba302b147962939269f76ca0ea400e7eb1 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 14 七月 2025 10:37:20 +0800 Subject: [PATCH] 活动批量删除 --- manager/src/views/activity/index.vue | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/manager/src/views/activity/index.vue b/manager/src/views/activity/index.vue index ad53333..8a74704 100644 --- a/manager/src/views/activity/index.vue +++ b/manager/src/views/activity/index.vue @@ -582,6 +582,7 @@ addActivity, editActivity, delActivityById, + delActivityBatch, activityChangeStatus, activityChangeRecommend, activityMembersPage, @@ -879,6 +880,17 @@ } }, { + title: '娲诲姩鎶ュ悕鏃堕棿娈�', + key: 'activityReportTimeRange', + width: 300, + render: (h, params) => { + return h('div', [ + h('div', `寮�濮�: ${this.formatDate(params.row.reportStartTime)}`), + h('div', `缁撴潫: ${this.formatDate(params.row.reportEndTime)}`) + ]) + } + }, + { title: '娲诲姩鏃堕棿娈�', key: 'activityTimeRange', width: 300, @@ -982,9 +994,9 @@ render: (h, params) => { return h('Tag', { props: { - color: params.row.disabled ? 'red' : 'green' + color: params.row.disabled ? 'green' : 'red' //true 姝e父 false琚鐢� } - }, params.row.disabled ? '绂佺敤' : '姝e父') + }, params.row.disabled ? '姝e父' : '绂佺敤') } } ], @@ -1396,6 +1408,8 @@ title: '纭鍒犻櫎', content: `纭畾瑕佸垹闄ゆ椿鍔� "${row.activityName}" 鍚�?`, onOk: () => { + //TODO 鍏堝垽鏂椿鍔ㄦ槸鍚﹀彂甯冿紝鍙戝竷鍒欓渶瑕佸厛涓嬫灦 + delActivityById(row.id).then(res => { if (res.code === 200) { this.$Message.success(res.msg) @@ -1408,6 +1422,7 @@ // 鎵归噺鍒犻櫎 delBatch() { + //TODO 鍏堝垽鏂椿鍔ㄦ槸鍚﹀彂甯冿紝鍙戝竷鍒欓渶瑕佸厛涓嬫灦 if (this.selectCount === 0) { this.$Message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹�') return @@ -1417,7 +1432,7 @@ title: '纭鍒犻櫎', content: `纭畾瑕佸垹闄ら�変腑鐨� ${this.selectCount} 鏉℃暟鎹悧?`, onOk: () => { - delActivityBatch({ids: this.selectList}).then(res => { + delActivityBatch(this.selectList).then(res => { if (res.code === 200) { this.$Message.success(res.msg) this.selectList = [] -- Gitblit v1.8.0