From 419c30bc45b2adf168defe705f526f48d6525275 Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 13 Apr 2024 12:33:30 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oneCompany/reflection/components/list.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/oneCompany/reflection/components/list.vue b/src/views/oneCompany/reflection/components/list.vue index 2859cff..dfee90d 100644 --- a/src/views/oneCompany/reflection/components/list.vue +++ b/src/views/oneCompany/reflection/components/list.vue @@ -85,7 +85,7 @@ export default { }, created() { this.getDict() - this.getList() + // this.getList() this.hasButton() }, methods: { @@ -116,7 +116,7 @@ export default { getList() { this.listLoading = true requestFN( - '/dw/getMapList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, + '/dingWei/getMapList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, { KEYWORDS: this.KEYWORDS, STATUS: '1', @@ -182,7 +182,7 @@ export default { }) }, getDict: function() { - requestFN('dw/getDictionary').then((data) => { + requestFN('dingWei/getDictionary').then((data) => { this.wenhuachengduList = data.list }).catch((e) => { this.listLoading = false From 03a1881fa64770ecbebf69d4e189508bcceef10c Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 13 Apr 2024 12:40:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oneCompany/reflection/components/list.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/views/oneCompany/reflection/components/list.vue b/src/views/oneCompany/reflection/components/list.vue index dfee90d..a70c8cc 100644 --- a/src/views/oneCompany/reflection/components/list.vue +++ b/src/views/oneCompany/reflection/components/list.vue @@ -78,6 +78,9 @@ export default { limit: 10, total: 0 }, + listLoading: false, + KEYWORDS: '', + varList: [], add: false, // 新增按钮 del: false, // 删除按钮 edit: false // 修改按钮 @@ -109,28 +112,20 @@ export default { this.getList() }, goKeyReset() { - this.KEYWORDS = '' this.STATUS = '' this.getQuery() }, getList() { this.listLoading = true requestFN( - '/dingWei/getMapList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, - { - KEYWORDS: this.KEYWORDS, - STATUS: '1', - EMPLOY_FLAG: '1', - CHECK_STATUS: '1' - } + '/dingWei/getMapList?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page, {} ).then((data) => { this.listLoading = false this.varList = data.list - this.total = data.page.totalResult + this.total = data.page.total + }).catch((e) => { + this.listLoading = false }) - .catch((e) => { - this.listLoading = false - }) }, handleAdd() { const _selectData = this.$refs.multipleTable.selection From 5b145195c834823154c22e72e06668dae8e94449 Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 13 Apr 2024 14:44:16 +0800 Subject: [PATCH 3/3] =?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'