From 4f2ce48bb7ff48c5332d7d330f541ed6239b9053 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 21 Dec 2023 16:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/train/flow/components/list.vue | 6 +- src/views/train/synInfo/components/list.vue | 27 ++----- .../train/synInfo/components/sendUtil.vue | 79 +++++++------------ 3 files changed, 38 insertions(+), 74 deletions(-) diff --git a/src/views/train/flow/components/list.vue b/src/views/train/flow/components/list.vue index 4efc06b..f6de9bf 100644 --- a/src/views/train/flow/components/list.vue +++ b/src/views/train/flow/components/list.vue @@ -7,7 +7,7 @@ - + @@ -34,7 +34,7 @@ border fit highlight-current-row> - + @@ -51,7 +51,7 @@
- 批量推送 + 批量推送
diff --git a/src/views/train/synInfo/components/list.vue b/src/views/train/synInfo/components/list.vue index f351f8e..01a8f19 100644 --- a/src/views/train/synInfo/components/list.vue +++ b/src/views/train/synInfo/components/list.vue @@ -7,7 +7,7 @@
- + @@ -34,7 +34,7 @@ border fit highlight-current-row> - + @@ -50,7 +50,7 @@
- 批量推送 + 批量推送
@@ -164,29 +164,14 @@ export default { }, handleAdd() { const _selectData = this.$refs.multipleTable.selection - if (_selectData == null || _selectData.length == 0) { + if (_selectData == null || _selectData.length === 0) { this.$message({ - message: '未勾选培训人员...', + message: '未勾选人员...', type: 'error' }) return false } - - var users = [] - _selectData.map(item => { - if (item.STATUS === 0) { - users.push(item.USER_ID) - } - }) - - if (users == null || users.length == 0) { - this.$message({ - message: '勾选人员暂无法提交申请...', - type: 'error' - }) - return false - } - this.$refs.apply.init(users) + this.$refs.sendUtil.init(_selectData) }, hasButton() { var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel' diff --git a/src/views/train/synInfo/components/sendUtil.vue b/src/views/train/synInfo/components/sendUtil.vue index 3b46ac8..de8d4c5 100644 --- a/src/views/train/synInfo/components/sendUtil.vue +++ b/src/views/train/synInfo/components/sendUtil.vue @@ -1,18 +1,21 @@