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 '审批不通过' + } } } }