审核原因

main
jwg 3 months ago
parent 6da9b43918
commit 84ef295306

@ -66,7 +66,7 @@ export default {
isAuthorised: Boolean,
accessId: [Number, String],
isWin: [Number, String],
listType: String,
listType: String
},
created() {
if (this.$route.query.type === 'add') {
@ -80,8 +80,8 @@ export default {
isShow: false,
key: null,
form: {
reason: null,
},
reason: null
}
}
},
watch: {
@ -93,9 +93,9 @@ export default {
this.$refs.form && this.$refs.form.resetValidation()
})
}
},
}
},
deep: true,
deep: true
},
components: {},
@ -111,7 +111,7 @@ export default {
this.$refs.form.validate().then(() => {
let obj = {
id: this.accessId,
reason: this.form.reason,
reason: this.form.reason
}
this.$loading(true, 'loadingSb')
if (this.key == 2) {
@ -167,9 +167,15 @@ export default {
})
},
handleSubmit(key) {
if (key == 2 || key == 3) {
if (key == 2) {
this.key = key
this.title = '同意'
this.form.reason = '已同意'
//
this.handleConfirm()
} else if (key == 3) {
this.key = key
this.title = key == 2 ? '同意' : '驳回'
this.title = '驳回'
this.isShow = true
} else {
if (key === 6) {
@ -185,14 +191,14 @@ export default {
this.btnList = [
{ title: '暂存', icon: 'star-o', color: '#909399', key: 0 },
{ title: '提交', icon: 'edit', color: '#ff9900', key: 1 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 }
]
} else {
if (this.isAuthorised) {
this.btnList = [
{ title: '同意', icon: 'certificate', color: '#19be6b', key: 2 },
{ title: '驳回', icon: 'exchange', color: '#fa3534', key: 3 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 }
]
} else {
if (
@ -202,20 +208,20 @@ export default {
) {
this.btnList = [
{ title: '发起', icon: 'edit', color: '#ff9900', key: 1 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 }
]
} else {
this.btnList = [
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 },
{ title: '返回', icon: 'revoke', color: '#909399', key: 6 }
]
}
}
}
}, 0)
},
},
}
}
}
</script>
<style lang='scss' scoped>
<style lang="scss" scoped>
@import '../FollowPeoPle/index.scss';
</style>
</style>

Loading…
Cancel
Save