mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
测评
This commit is contained in:
@@ -205,7 +205,7 @@ import {boeRequest} from "@/api/request";
|
|||||||
dialog({
|
dialog({
|
||||||
content: '请您确认是否要删除该报告?',
|
content: '请您确认是否要删除该报告?',
|
||||||
ok: () => {
|
ok: () => {
|
||||||
deleteById({id:record.id,kid:route.query.kid}).then((res)=>{
|
deleteById({id:record.id,kid:record.kid}).then((res)=>{
|
||||||
message.success('删除成功')
|
message.success('删除成功')
|
||||||
listData()
|
listData()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
:scroll="{ x: '1000' }"
|
:scroll="{ x: '1000' }"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
>
|
>
|
||||||
<template #operation="{ record, column }" >
|
<template #operation="{ record, column }">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-if="trueFalse(record.permission,1)" type="link" @click="bgcheck(record)">
|
<a-button v-if="trueFalse(record.permission,1)" type="link" @click="bgcheck(record)">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
@@ -692,6 +692,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
isRegularAdministrator: '',
|
||||||
loadNewDown:false,
|
loadNewDown:false,
|
||||||
totalNumber: {},
|
totalNumber: {},
|
||||||
stateType:'',
|
stateType:'',
|
||||||
@@ -795,9 +796,22 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
workNum:userInfo.value.userNo
|
workNum:userInfo.value.userNo
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res,'resdata')
|
console.log(res,'resdata')
|
||||||
|
state.isRegularAdministrator = res.data.isRegularAdministrator
|
||||||
state.tableData = res.data.pageList.records
|
state.tableData = res.data.pageList.records
|
||||||
state.tableDataTotal = res.data.pageList.total
|
state.tableDataTotal = res.data.pageList.total
|
||||||
state.tableLoading = false
|
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
|
state.paramsAdd.pageSize = pageSize
|
||||||
searchSave()
|
searchSave()
|
||||||
}
|
}
|
||||||
|
let addedOperationColumn = false;
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{
|
{
|
||||||
title: "ID",
|
title: "ID",
|
||||||
@@ -877,15 +892,7 @@ import {timeoutUpload} from "@/api/configPublic";
|
|||||||
className: "h",
|
className: "h",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
title: "操作",
|
|
||||||
width: "20%",
|
|
||||||
dataIndex: "id",
|
|
||||||
key: "id",
|
|
||||||
align: "right",
|
|
||||||
slots: { customRender: "operation" },
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
const columns2 = ref([
|
const columns2 = ref([
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user