审核原因

main
jwg 4 months ago
parent 6da9b43918
commit 84ef295306

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