bug修复
parent
d466a36339
commit
41416cad21
|
@ -50,15 +50,15 @@ flowTrain/batchList<template>
|
|||
</el-table-column>
|
||||
<el-table-column prop="AUDIT_STATUS" label="申请状态" >
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.AUDIT_STATUS === 0">待审核</span>
|
||||
<span v-if="row.AUDIT_STATUS === 1">审核中</span>
|
||||
<span v-if="row.AUDIT_STATUS === 2">待培训</span>
|
||||
<span v-if="row.AUDIT_STATUS === 3">已完成</span>
|
||||
<span v-if="row.STEP_STATUS === '0'">集团单位审批中</span>
|
||||
<span v-if="row.STEP_STATUS === '1'">股份主管部门审批中</span>
|
||||
<span v-if="row.STEP_STATUS === '2'">股份安监部门审批中</span>
|
||||
<span v-if="row.STEP_STATUS === '3'">审批通过</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="200">
|
||||
<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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -139,8 +139,8 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
handleAudit(id) {
|
||||
this.$refs.users.init(id, '1')
|
||||
handleAudit(e) {
|
||||
this.$refs.users.init(e.id, '1', e.vectory)
|
||||
},
|
||||
|
||||
handleShow(e) {
|
||||
|
|
|
@ -160,6 +160,7 @@ export default {
|
|||
methods: {
|
||||
init(id, viewState, vectory) {
|
||||
this.vectory = vectory
|
||||
console.log(this.vectory)
|
||||
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
|
||||
this.form.TRAIN_USERS_ID = ''
|
||||
this.form.USER_COUNT = ''
|
||||
|
@ -236,7 +237,7 @@ export default {
|
|||
).then((data) => {
|
||||
if (data.result === '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') {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
|
|
Loading…
Reference in New Issue