|
|
|
|
@ -17,8 +17,9 @@ |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="primary" @click="handleAudit">批量审核</el-button> |
|
|
|
|
<el-button type="primary" @click="handleMaintain">批量维护</el-button> |
|
|
|
|
<el-button type="primary" @click="handleAudit">批量审核</el-button> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #menu="scope"> |
|
|
|
|
@ -458,15 +459,15 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 批量审核 |
|
|
|
|
handleAudit() { |
|
|
|
|
// if (this.selectionList.length == 0) { |
|
|
|
|
// this.$message.error('请先选择数据'); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// let tmp = this.selectionList.find(item => item.auditStatus != 0); |
|
|
|
|
// if (tmp) { |
|
|
|
|
// this.$message.error('请选择状态为待审核的数据'); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
|
this.$message.error('请先选择数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let tmp = this.selectionList.find(item => item.auditStatus != 0); |
|
|
|
|
if (tmp) { |
|
|
|
|
this.$message.error('请选择状态为待审核的数据'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.auditData = this.selectionList; |
|
|
|
|
this.showAudit = true; |
|
|
|
|
}, |
|
|
|
|
|