代码优化
This commit is contained in:
parent
926fdb1872
commit
715811c3cc
|
|
@ -292,10 +292,38 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
onAuditing(code) {
|
onAuditing(code) {
|
||||||
|
// this.$confirm('请确认审核结果?', '提示', {
|
||||||
|
// confirmButtonText: '通过',
|
||||||
|
// cancelButtonText: '驳回',
|
||||||
|
// type: 'warning',
|
||||||
|
// })
|
||||||
|
// .then(async () => {
|
||||||
|
// const res = await auditSeconfScrapApi({
|
||||||
|
// status: 1,
|
||||||
|
// code,
|
||||||
|
// })
|
||||||
|
|
||||||
|
// if (res.code === 200) {
|
||||||
|
// this.$modal.msgSuccess('已通过')
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// .catch(async () => {
|
||||||
|
// const res = await auditSeconfScrapApi({
|
||||||
|
// status: 2,
|
||||||
|
// code,
|
||||||
|
// })
|
||||||
|
// if (res.code === 200) {
|
||||||
|
// this.$modal.msgSuccess('已驳回')
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// .finally(() => {
|
||||||
|
// this.getList()
|
||||||
|
// })
|
||||||
|
|
||||||
this.$confirm('请确认审核结果?', '提示', {
|
this.$confirm('请确认审核结果?', '提示', {
|
||||||
|
distinguishCancelAndClose: true,
|
||||||
confirmButtonText: '通过',
|
confirmButtonText: '通过',
|
||||||
cancelButtonText: '驳回',
|
cancelButtonText: '驳回',
|
||||||
type: 'warning',
|
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
const res = await auditSeconfScrapApi({
|
const res = await auditSeconfScrapApi({
|
||||||
|
|
@ -307,13 +335,15 @@ export default {
|
||||||
this.$modal.msgSuccess('已通过')
|
this.$modal.msgSuccess('已通过')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(async () => {
|
.catch(async (action) => {
|
||||||
const res = await auditSeconfScrapApi({
|
if (action === 'cancel') {
|
||||||
status: 2,
|
const res = await auditSeconfScrapApi({
|
||||||
code,
|
status: 2,
|
||||||
})
|
code,
|
||||||
if (res.code === 200) {
|
})
|
||||||
this.$modal.msgSuccess('已驳回')
|
if (res.code === 200) {
|
||||||
|
this.$modal.msgSuccess('已驳回')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue