封禁
This commit is contained in:
parent
858c27502c
commit
a02c8656c6
@ -293,7 +293,7 @@ const handleUpdate = async (row?: BannedVO) => {
|
|||||||
reset();
|
reset();
|
||||||
const _id = row?.id || ids.value[0];
|
const _id = row?.id || ids.value[0];
|
||||||
// const res = await getBanned(_id);
|
// const res = await getBanned(_id);
|
||||||
// Object.assign(form.value, res.data);
|
Object.assign(form.value,row);
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
dialog.title = `封禁【${row.nickName}】`;
|
dialog.title = `封禁【${row.nickName}】`;
|
||||||
};
|
};
|
||||||
@ -303,12 +303,13 @@ const submitForm = () => {
|
|||||||
bannedFormRef.value?.validate(async (valid: boolean) => {
|
bannedFormRef.value?.validate(async (valid: boolean) => {
|
||||||
const arr = {
|
const arr = {
|
||||||
...form.value,
|
...form.value,
|
||||||
|
id: form.value.reportUserId,
|
||||||
type: queryParams.value.type,
|
type: queryParams.value.type,
|
||||||
message: 0
|
deleteType: 0
|
||||||
}
|
};
|
||||||
if (valid) {
|
if (valid) {
|
||||||
buttonLoading.value = true;
|
buttonLoading.value = true;
|
||||||
await updatemanage(form.value).finally(() => (buttonLoading.value = false));
|
await updatemanage(arr).finally(() => (buttonLoading.value = false));
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
dialog.visible = false;
|
dialog.visible = false;
|
||||||
await getList();
|
await getList();
|
||||||
@ -321,10 +322,11 @@ const handleDelete = async (row?: BannedVO) => {
|
|||||||
const _ids = row?.contentId;
|
const _ids = row?.contentId;
|
||||||
const _idsname = row?.contentName;
|
const _idsname = row?.contentName;
|
||||||
const arr = {
|
const arr = {
|
||||||
id: row?.contentId,
|
id: row?.id,
|
||||||
|
contentId: row?.contentId,
|
||||||
type: queryParams.value.type,
|
type: queryParams.value.type,
|
||||||
handlingStatus: 1,
|
handlingStatus: 1,
|
||||||
message: 1
|
deleteType: 1
|
||||||
};
|
};
|
||||||
const text = queryParams.value.type == 1 ? '笔记名称为“' : queryParams.value.type == 2 ? '活动名称为“' : '评论内容为“';
|
const text = queryParams.value.type == 1 ? '笔记名称为“' : queryParams.value.type == 2 ? '活动名称为“' : '评论内容为“';
|
||||||
await proxy?.$modal.confirm('是否确认删除' + text + _idsname + '"的数据项?').finally(() => (loading.value = false));
|
await proxy?.$modal.confirm('是否确认删除' + text + _idsname + '"的数据项?').finally(() => (loading.value = false));
|
||||||
|
Loading…
Reference in New Issue
Block a user