fix: BUG修改

This commit is contained in:
kun 2024-03-12 14:48:00 +08:00
parent 1eba771ad9
commit b33b27d255

View File

@ -13,7 +13,7 @@
:isShowSearch="false" :isShowSearch="false"
> >
<template #state="{ row }"> <template #state="{ row }">
{{ row.state === 1 ? "已审核" : "待审核" }} {{ row.state === 3 ? "已逾期" : "待处理" }}
</template> </template>
<!-- 表格操作 --> <!-- 表格操作 -->
<template #operation="scope"> <template #operation="scope">
@ -60,9 +60,10 @@ const handleDealItem = (obj: any) => {
// //
const columns: ColumnProps[] = [ const columns: ColumnProps[] = [
{ type: "index", label: "序号", width: 80 }, { type: "index", label: "序号", width: 100 },
{ prop: "type", label: "待处理事项" }, { prop: "type", label: "待办事项", width: 220 },
{ prop: "projectName", label: "项目名称" }, { prop: "projectName", label: "项目名称" },
{ prop: "state", label: "状态", width: 120 },
{ prop: "operation", label: "操作", width: 120 } { prop: "operation", label: "操作", width: 120 }
]; ];
@ -89,9 +90,9 @@ const getTableList = async (params: any) => {
let newParams = JSON.parse(JSON.stringify(params)); let newParams = JSON.parse(JSON.stringify(params));
const res: any = await noFinishApi({}); const res: any = await noFinishApi({});
if (res && res.data && res.data.length > 0) { if (res && res.data && res.data.length > 0) {
return { result: { records: res.data, current: "1", pages: "1", size: "10", total: res.data.length + "" } }; return { result: { records: res.data, current: "1", pages: "1", size: "100", total: res.data.length + "" } };
} else { } else {
return { result: { records: [], current: "1", pages: "1", size: "10", total: "0" } }; return { result: { records: [], current: "1", pages: "1", size: "100", total: "0" } };
} }
}; };
onMounted(async () => { onMounted(async () => {
@ -109,4 +110,10 @@ onMounted(async () => {
height: 700px; height: 700px;
overflow: auto; overflow: auto;
} }
:deep() {
.theme-transform,
.el-pagination {
display: none;
}
}
</style> </style>