From 0e7c6e0c72f35081eb1ada4f30145002d57be184 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 20 Dec 2023 14:49:01 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flowApply/components/apply.vue | 7 +- src/views/xgf/flow_audit/index.vue | 20 +- src/views/xgf/flow_audit/users.vue | 309 ++++--------------- 3 files changed, 77 insertions(+), 259 deletions(-) diff --git a/src/views/xgf/flowApply/components/apply.vue b/src/views/xgf/flowApply/components/apply.vue index 6775299..b9835f9 100644 --- a/src/views/xgf/flowApply/components/apply.vue +++ b/src/views/xgf/flowApply/components/apply.vue @@ -247,7 +247,6 @@ export default { }).catch((e) => { }) }, - save() { this.$refs.form.validate(valid => { if (valid) { @@ -255,11 +254,14 @@ export default { this.form.USER_COUNT = this.users.length this.form.AUDIT_STATUS = 0 this.form.TYPE = 2 + const userIds = this.users.map((item) => { return item.XGF_USER_ID }) requestFN( '/trainingbatch/add', { ...this.form, - users: this.users.join(',') + users: userIds.join(','), + BELONG_TO_CORP: this.users[0].BELONG_TO_CORP, + BELONG_TO_CORP_NAME: this.users[0].BELONG_TO_CORP_NAME } ).then((data) => { this.loading = false @@ -278,6 +280,7 @@ export default { }, handleClose() { this.visible = false + this.$emit('refresh', '') }, closeWindow() { this.visible = false diff --git a/src/views/xgf/flow_audit/index.vue b/src/views/xgf/flow_audit/index.vue index 2cc1e97..bf75d0d 100644 --- a/src/views/xgf/flow_audit/index.vue +++ b/src/views/xgf/flow_audit/index.vue @@ -1,4 +1,4 @@ -