From 5b145195c834823154c22e72e06668dae8e94449 Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 13 Apr 2024 14:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=88=86=E9=A1=B5bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oneCompany/reflection/components/info.vue | 316 ++++++++++++++++++ .../oneCompany/reflection/components/list.vue | 37 +- 2 files changed, 321 insertions(+), 32 deletions(-) create mode 100644 src/views/oneCompany/reflection/components/info.vue diff --git a/src/views/oneCompany/reflection/components/info.vue b/src/views/oneCompany/reflection/components/info.vue new file mode 100644 index 0000000..3426505 --- /dev/null +++ b/src/views/oneCompany/reflection/components/info.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/src/views/oneCompany/reflection/components/list.vue b/src/views/oneCompany/reflection/components/list.vue index a70c8cc..8d173f7 100644 --- a/src/views/oneCompany/reflection/components/list.vue +++ b/src/views/oneCompany/reflection/components/list.vue @@ -58,6 +58,7 @@ + @@ -65,10 +66,11 @@ import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包 import { requestFN } from '@/utils/request' import waves from '@/directive/waves' // waves directive +import info from './info.vue' import vueQr from 'vue-qr' export default { - components: { Pagination, vueQr }, + components: { Pagination, vueQr, info }, directives: { waves }, data() { return { @@ -93,13 +95,7 @@ export default { }, methods: { handleSelectWithDifferentStatus(row, rowIndex) { - if (row.STATUS === 0) { - // 不禁用 - return true - } else { - // 禁用 - return false - } + return true }, getQuery() { if (this.$refs.multipleTable) { @@ -128,30 +124,7 @@ export default { }) }, handleAdd() { - const _selectData = this.$refs.multipleTable.selection - if (_selectData == null || _selectData.length == 0) { - this.$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.info.init() }, hasButton() { var keys = 'trainingbatch:add,trainingbatch:del,trainingbatch:edit,fhSms,email,fromExcel,toExcel'