123
This commit is contained in:
@@ -49,3 +49,12 @@ export function delUserAlbum(id) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function batchAuditUserAlbum(data) {
|
||||
return request({
|
||||
url: '/cai/userAlbum/batch/audit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,14 @@ export function auditSuccessUserPictureAudit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function batchAuditUserPicture(data) {
|
||||
return request({
|
||||
url: '/cai/userPictureAudit/batch/audit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function auditFailUserPictureAudit(data) {
|
||||
return request({
|
||||
url: '/cai/userPictureAudit/audit/fail',
|
||||
|
||||
@@ -34,8 +34,24 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleBatchAudit"
|
||||
v-hasPermi="['cai:userAlbum:edit']"
|
||||
>批量审核通过
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="userAlbumList" @selection-change="handleSelectionChange">
|
||||
<!-- <el-table-column type="selection" width="55" align="center" />-->
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="审核状态" align="center" prop="auditStatus">
|
||||
<template v-slot="scope">
|
||||
<cai-dict-tag :options="auditStatusList" :value="scope.row.auditStatus"/>
|
||||
@@ -110,9 +126,9 @@
|
||||
import {
|
||||
auditFailUserAlbum,
|
||||
auditSuccessUserAlbum,
|
||||
batchAuditUserAlbum,
|
||||
delUserAlbum,
|
||||
listUserAlbum,
|
||||
updateUserAlbum
|
||||
listUserAlbum
|
||||
} from '@/api/cai/userAlbum'
|
||||
import {auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList} from "@/constant/statusMap";
|
||||
|
||||
@@ -205,6 +221,22 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
handleBatchAudit(){
|
||||
const ids = this.ids;
|
||||
this.$modal.confirm('是否确认批量审核通过勾选的数据项?').then(() => {
|
||||
this.loading = true;
|
||||
return batchAuditUserAlbum({
|
||||
"ids": ids
|
||||
});
|
||||
}).then(() => {
|
||||
this.loading = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -35,8 +35,8 @@ module.exports = {
|
||||
proxy: {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
// target: `http://localhost:8080`,
|
||||
target: `http://124.222.254.188:9779/prod-api`,
|
||||
target: `http://localhost:8080`,
|
||||
// target: `http://124.222.254.188:9779/prod-api`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
||||
Reference in New Issue
Block a user