123
This commit is contained in:
@@ -45,6 +45,16 @@
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['cai:userPictureAudit:remove']"
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleBatchAudit"
|
||||
v-hasPermi="['cai:userPictureAudit:edit']"
|
||||
>批量审核通过
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
@@ -124,11 +134,12 @@
|
||||
<script>
|
||||
import {
|
||||
auditFailUserPictureAudit,
|
||||
auditSuccessUserPictureAudit,
|
||||
auditSuccessUserPictureAudit, batchAuditUserPicture,
|
||||
delUserPictureAudit,
|
||||
listUserPictureAudit
|
||||
} from '@/api/cai/userPictureAudit'
|
||||
import { auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList } from '@/constant/statusMap'
|
||||
import {batchAuditDynamic} from "@/api/cai/dynamic";
|
||||
|
||||
export default {
|
||||
name: "UserPictureAudit",
|
||||
@@ -189,6 +200,22 @@ export default {
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
handleBatchAudit(){
|
||||
const ids = this.ids;
|
||||
this.$modal.confirm('是否确认批量审核通过勾选的数据项?').then(() => {
|
||||
this.loading = true;
|
||||
return batchAuditUserPicture({
|
||||
"ids": ids
|
||||
});
|
||||
}).then(() => {
|
||||
this.loading = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
handleAuditSuccess(row){
|
||||
this.$modal.confirm('是否确认通过用户为"' + row.nickname + '"的头像审核?').then(() => {
|
||||
this.loading = true;
|
||||
|
||||
Reference in New Issue
Block a user