This commit is contained in:
zhangsir
2024-04-07 10:36:29 +08:00
parent c61d4e2ccf
commit 141b3770c4
2 changed files with 18 additions and 11 deletions

View File

@@ -205,7 +205,7 @@ import {boeRequest} from "@/api/request";
dialog({
content: '请您确认是否要删除该报告?',
ok: () => {
deleteById({id:record.id,kid:route.query.kid}).then((res)=>{
deleteById({id:record.id,kid:record.kid}).then((res)=>{
message.success('删除成功')
listData()
})

View File

@@ -692,6 +692,7 @@ import {timeoutUpload} from "@/api/configPublic";
const userInfo = computed(() => store.state.userInfo);
const router = useRouter();
const state = reactive({
isRegularAdministrator: '',
loadNewDown:false,
totalNumber: {},
stateType:'',
@@ -795,9 +796,22 @@ import {timeoutUpload} from "@/api/configPublic";
workNum:userInfo.value.userNo
}).then((res) => {
console.log(res,'resdata')
state.isRegularAdministrator = res.data.isRegularAdministrator
state.tableData = res.data.pageList.records
state.tableDataTotal = res.data.pageList.total
state.tableLoading = false
const operationColumn = {
title: "操作",
width: "20%",
dataIndex: "id",
key: "id",
align: "right",
slots: { customRender: "operation" },
};
if (!addedOperationColumn && state.isRegularAdministrator == '0') {
columns.value.push(operationColumn);
addedOperationColumn = true;
}
});
}
//分配权限
@@ -837,6 +851,7 @@ import {timeoutUpload} from "@/api/configPublic";
state.paramsAdd.pageSize = pageSize
searchSave()
}
let addedOperationColumn = false;
const columns = ref([
{
title: "ID",
@@ -877,15 +892,7 @@ import {timeoutUpload} from "@/api/configPublic";
className: "h",
ellipsis: true,
width: 100,
},
{
title: "操作",
width: "20%",
dataIndex: "id",
key: "id",
align: "right",
slots: { customRender: "operation" },
},
}
])
const columns2 = ref([
{