From 69701c7e784a818e268a64f55a43f7169597caf9 Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 21 Dec 2023 14:31:20 +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/training_record/index.vue | 8 +- src/views/train/training_record/users.vue | 199 +++------------------- 2 files changed, 25 insertions(+), 182 deletions(-) diff --git a/src/views/train/training_record/index.vue b/src/views/train/training_record/index.vue index 3ba567b..029f402 100644 --- a/src/views/train/training_record/index.vue +++ b/src/views/train/training_record/index.vue @@ -21,11 +21,11 @@ - + - + @@ -34,7 +34,7 @@ {{ new Date(row.CREATTIME).getFullYear() }} - + @@ -265,8 +95,10 @@ import { requestFN } from '@/utils/request' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import card from './card' import User from './user' +import UserInfo from '../../xgf/flow_audit/userInfo.vue' export default { components: { + UserInfo, User, Pagination, card @@ -317,9 +149,8 @@ export default { }) }, // 查看 - async handleShow(USER_ID) { - await this.getUserInfoById(USER_ID) - this.userInfoDialog = true + handleShow(USER_ID) { + this.$refs.userInfos.init({ XGF_USER_ID: USER_ID }) }, getUserInfoById(id) { return new Promise((resolve, reject) => { @@ -376,6 +207,18 @@ export default { handleCardShow(TRAINUSERS_ID) { // this.$refs.card.init(USER_ID, this.pd.TRAIN_AREA_NAME) this.$refs.user.init({ TRAINUSERS_ID: TRAINUSERS_ID }) + }, + getType(row) { + console.log(row) + if (row.RESULT_STATUS === '1') { + return '审批中' + } + if (row.RESULT_STATUS === '2') { + return '审批通过' + } + if (row.RESULT_STATUS === '3') { + return '审批不通过' + } } } }