mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
测评
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user