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'