优化一下

This commit is contained in:
熊成强 2020-11-13 09:56:30 +08:00
parent ebddabdc5a
commit d5859111ed

View File

@ -226,7 +226,7 @@ export default {
},
//
handleJump () {
if (!this.info) return
if (!this.info && !this.$attrs.flowRecordId) return
console.log('item: ', this.info)
this.$confirm('确认跳过该人员?', '提示', {
confirmButtonText: '确定',
@ -235,6 +235,7 @@ export default {
}).then(async () => {
const obj = {status: 4, menuName: '跳过了'}
if (this.info) obj.flowRecordId = this.info.flowRecordId
if (this.$attrs.flowRecordId) obj.flowRecordId = this.$attrs.flowRecordId
const params = Object.assign({}, this.form, {resultRecordId: this.$route.query.id || ''}, obj)
this.$loadingStart()
let res = await apiSaveapproval(params)