bug修复

main
liujun 2023-12-20 15:57:27 +08:00
parent d466a36339
commit 41416cad21
2 changed files with 9 additions and 8 deletions

View File

@ -50,15 +50,15 @@ flowTrain/batchList<template>
</el-table-column> </el-table-column>
<el-table-column prop="AUDIT_STATUS" label="申请状态" > <el-table-column prop="AUDIT_STATUS" label="申请状态" >
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.AUDIT_STATUS === 0"></span> <span v-if="row.STEP_STATUS === '0'"></span>
<span v-if="row.AUDIT_STATUS === 1"></span> <span v-if="row.STEP_STATUS === '1'"></span>
<span v-if="row.AUDIT_STATUS === 2"></span> <span v-if="row.STEP_STATUS === '2'"></span>
<span v-if="row.AUDIT_STATUS === 3"></span> <span v-if="row.STEP_STATUS === '3'"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="200"> <el-table-column label="操作" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-if="judge(row)" type="success" icon="el-icon-edit" size="mini" @click="handleAudit(row.TRAINING_BATCH_ID)"></el-button> <el-button v-if="judge(row)" type="success" icon="el-icon-edit" size="mini" @click="handleAudit({id:row.TRAINING_BATCH_ID,vectory:judge(row)})"></el-button>
<el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow({id:row.TRAINING_BATCH_ID,vectory:judge(row)})"></el-button> <el-button v-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow({id:row.TRAINING_BATCH_ID,vectory:judge(row)})"></el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -139,8 +139,8 @@ export default {
}) })
}, },
handleAudit(id) { handleAudit(e) {
this.$refs.users.init(id, '1') this.$refs.users.init(e.id, '1', e.vectory)
}, },
handleShow(e) { handleShow(e) {

View File

@ -160,6 +160,7 @@ export default {
methods: { methods: {
init(id, viewState, vectory) { init(id, viewState, vectory) {
this.vectory = vectory this.vectory = vectory
console.log(this.vectory)
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
this.form.TRAIN_USERS_ID = '' this.form.TRAIN_USERS_ID = ''
this.form.USER_COUNT = '' this.form.USER_COUNT = ''
@ -236,7 +237,7 @@ export default {
).then((data) => { ).then((data) => {
if (data.result === 'success') { if (data.result === 'success') {
this.$message.success('审批成功') this.$message.success('审批成功')
this.init(this.TRAINING_BATCH_ID, this.viewState) this.init(this.TRAINING_BATCH_ID, this.viewState, this.vectory)
} else if (data.result === 'exception') { } else if (data.result === 'exception') {
this.$message({ this.$message({
message: data.msg, message: data.msg,