123
This commit is contained in:
@@ -49,3 +49,12 @@ export function delUserAlbum(id) {
|
|||||||
method: 'delete'
|
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) {
|
export function auditFailUserPictureAudit(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/cai/userPictureAudit/audit/fail',
|
url: '/cai/userPictureAudit/audit/fail',
|
||||||
|
|||||||
@@ -34,8 +34,24 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</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 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">
|
<el-table-column label="审核状态" align="center" prop="auditStatus">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<cai-dict-tag :options="auditStatusList" :value="scope.row.auditStatus"/>
|
<cai-dict-tag :options="auditStatusList" :value="scope.row.auditStatus"/>
|
||||||
@@ -110,9 +126,9 @@
|
|||||||
import {
|
import {
|
||||||
auditFailUserAlbum,
|
auditFailUserAlbum,
|
||||||
auditSuccessUserAlbum,
|
auditSuccessUserAlbum,
|
||||||
|
batchAuditUserAlbum,
|
||||||
delUserAlbum,
|
delUserAlbum,
|
||||||
listUserAlbum,
|
listUserAlbum
|
||||||
updateUserAlbum
|
|
||||||
} from '@/api/cai/userAlbum'
|
} from '@/api/cai/userAlbum'
|
||||||
import {auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList} from "@/constant/statusMap";
|
import {auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList} from "@/constant/statusMap";
|
||||||
|
|
||||||
@@ -205,6 +221,22 @@ export default {
|
|||||||
this.loading = false;
|
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) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
|
|||||||
@@ -45,6 +45,16 @@
|
|||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['cai:userPictureAudit:remove']"
|
v-hasPermi="['cai:userPictureAudit:remove']"
|
||||||
>删除</el-button>
|
>删除</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>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -124,11 +134,12 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
auditFailUserPictureAudit,
|
auditFailUserPictureAudit,
|
||||||
auditSuccessUserPictureAudit,
|
auditSuccessUserPictureAudit, batchAuditUserPicture,
|
||||||
delUserPictureAudit,
|
delUserPictureAudit,
|
||||||
listUserPictureAudit
|
listUserPictureAudit
|
||||||
} from '@/api/cai/userPictureAudit'
|
} from '@/api/cai/userPictureAudit'
|
||||||
import { auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList } from '@/constant/statusMap'
|
import { auditStatusList, genderList, isAnchorList, userStatusList, yesOrNoList } from '@/constant/statusMap'
|
||||||
|
import {batchAuditDynamic} from "@/api/cai/dynamic";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "UserPictureAudit",
|
name: "UserPictureAudit",
|
||||||
@@ -189,6 +200,22 @@ export default {
|
|||||||
this.single = selection.length!==1
|
this.single = selection.length!==1
|
||||||
this.multiple = !selection.length
|
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){
|
handleAuditSuccess(row){
|
||||||
this.$modal.confirm('是否确认通过用户为"' + row.nickname + '"的头像审核?').then(() => {
|
this.$modal.confirm('是否确认通过用户为"' + row.nickname + '"的头像审核?').then(() => {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||||
[process.env.VUE_APP_BASE_API]: {
|
[process.env.VUE_APP_BASE_API]: {
|
||||||
// target: `http://localhost:8080`,
|
target: `http://localhost:8080`,
|
||||||
target: `http://124.222.254.188:9779/prod-api`,
|
// target: `http://124.222.254.188:9779/prod-api`,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user