bug修复
parent
0e7c6e0c72
commit
d466a36339
|
@ -59,7 +59,7 @@ flowTrain/batchList<template>
|
|||
<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-else type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row.TRAININGBATCH_ID)">查看</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>
|
||||
</el-table>
|
||||
|
@ -143,8 +143,8 @@ export default {
|
|||
this.$refs.users.init(id, '1')
|
||||
},
|
||||
|
||||
handleShow(id) {
|
||||
this.$refs.users.init(id, '0')
|
||||
handleShow(e) {
|
||||
this.$refs.users.init(e.id, '0', e.vectory)
|
||||
},
|
||||
judge(row) {
|
||||
if (row.STEP_STATUS === '0') {
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="closeWindow">关 闭</el-button>
|
||||
<el-button type="primary" @click="comfirm">确定提交审批</el-button>
|
||||
<el-button v-if="vectory" type="primary" @click="comfirm">确定提交审批</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :visible.sync="dialogVisible" title="审核">
|
||||
|
@ -153,12 +153,13 @@ export default {
|
|||
heirloom: {},
|
||||
specialUsersList: {},
|
||||
message: '',
|
||||
operator: ''
|
||||
operator: '',
|
||||
vectory: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(id, viewState) {
|
||||
console.log(id, viewState)
|
||||
init(id, viewState, vectory) {
|
||||
this.vectory = vectory
|
||||
this.form.TRAINING_BATCH_ID = this.TRAINING_BATCH_ID
|
||||
this.form.TRAIN_USERS_ID = ''
|
||||
this.form.USER_COUNT = ''
|
||||
|
@ -255,23 +256,18 @@ export default {
|
|||
{
|
||||
USER_ID: id,
|
||||
CER_TYPE: '7498057c4c1f4a11b9a960e66ea04a7a'
|
||||
// CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
||||
}
|
||||
).then((data) => {
|
||||
this.userDetailForm = Object.assign(this.userDetailForm, data.userDetail)
|
||||
this.listLoading = false
|
||||
// this.userDetailForm = Object.assign(this.userDetailForm, data.pd)
|
||||
this.userPhotoFile = data.userPhotoFile
|
||||
if (this.userPhotoFile.length > 0) {
|
||||
this.imgUrl = config.fileUrl + this.userPhotoFile[0].FILEPATH
|
||||
}
|
||||
// this.insuranceFileList = data.insuranceFile
|
||||
// this.contractFileList = data.contractFile
|
||||
this.photosOfLevel = data.photosOfLevel
|
||||
this.userCardIDPhotoFile = data.userCardIDPhotoFile
|
||||
this.socialPhotoFile = data.socialPhotoFile
|
||||
this.specialUsersList = data.specialUsers
|
||||
// this.gongshangbaoxianFile = data.gongshangbaoxianFile
|
||||
resolve()
|
||||
}).catch((e) => {
|
||||
reject()
|
||||
|
@ -300,13 +296,14 @@ export default {
|
|||
this.handleClose()
|
||||
},
|
||||
getType(row) {
|
||||
if (row.RESULT_STATUS === 1) {
|
||||
console.log(row)
|
||||
if (row.RESULT_STATUS === '1') {
|
||||
return '审批中'
|
||||
}
|
||||
if (row.RESULT_STATUS === 2) {
|
||||
if (row.RESULT_STATUS === '2') {
|
||||
return '审批通过'
|
||||
}
|
||||
if (row.RESULT_STATUS === 3) {
|
||||
if (row.RESULT_STATUS === '3') {
|
||||
return '审批不通过'
|
||||
}
|
||||
},
|
||||
|
@ -322,16 +319,10 @@ export default {
|
|||
TRAINING_BATCH_ID: this.TRAINING_BATCH_ID
|
||||
}
|
||||
).then((data) => {
|
||||
if (data.result == 'success') {
|
||||
this.$message.success('提交成功')
|
||||
this.init(this.TRAINING_BATCH_ID, this.viewState)
|
||||
} else if (data.result == 'exception') {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: 'success'
|
||||
})
|
||||
}
|
||||
this.visible = false
|
||||
this.handleClose()
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue