From d0d08513589dfc15deb589d29fb1d57655a19c34 Mon Sep 17 00:00:00 2001 From: THK3121 Date: Tue, 1 Aug 2023 09:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/examined/editFlow.vue | 55 +- src/views/examined/examinedCate.vue | 23 +- src/views/examined/examinedFlow.vue | 24 +- src/views/fileManagement/detil.vue | 2408 +++++++++++++++++++++++++ src/views/fileManagement/editCate.vue | 126 ++ src/views/fileManagement/index.vue | 171 ++ 6 files changed, 2771 insertions(+), 36 deletions(-) create mode 100644 src/views/fileManagement/detil.vue create mode 100644 src/views/fileManagement/editCate.vue create mode 100644 src/views/fileManagement/index.vue diff --git a/src/views/examined/editFlow.vue b/src/views/examined/editFlow.vue index 500357a..347c962 100644 --- a/src/views/examined/editFlow.vue +++ b/src/views/examined/editFlow.vue @@ -27,14 +27,14 @@ clearable :style="{ width: '100%' }" > - - - - - - - - + + + + + + + + @@ -67,15 +67,10 @@ - @@ -148,7 +143,7 @@ { @@ -318,34 +313,32 @@ function customEvent(data: any) { formData.copy_to[0].id = data.id; formData.copy_to[0].name = data.name; } else { - formData.flow_detail.step[i].user.id = data.id; - formData.flow_detail.step[i].user.name = data.name; + formData.flow_detail.step[i].user[0].id = data.id; + formData.flow_detail.step[i].user[0].name = data.name; } i = -1; } // 获取详情 const setFormData = async (data: Record) => { let res = await apiFlowDetil(data.id); - for (const key in formData) { if (data[key] != null && data[key] != undefined) { //@ts-ignore formData[key] = res[key]; } } - console.log(formData); + formData.flow_detail.type = Number(formData.flow_detail.type); }; const getDetail = async (row: Record) => { - const data = await apiFlowDetail({ - id: row.id, - }); - setFormData(data); + // const data = await apiFlowDetail({ + // id: row.id, + // }); + // setFormData(data); }; const a = {}; // 提交按钮 const handleSubmit = async () => { - console.log(formData); await formRef.value?.validate(); mode.value == "edit" ? await apiFlowCreat(formData) diff --git a/src/views/examined/examinedCate.vue b/src/views/examined/examinedCate.vue index 8412b59..0a29fbc 100644 --- a/src/views/examined/examinedCate.vue +++ b/src/views/examined/examinedCate.vue @@ -36,11 +36,25 @@ prop="type_name" show-overflow-tooltip /> - + + + import { usePaging } from "@/hooks/usePaging"; import { useDictData } from "@/hooks/useDictOptions"; -import { apiCateLists } from "@/api/examined"; +import { apiCateLists, apiCateStatus } from "@/api/examined"; import { timeFormat } from "@/utils/util"; import feedback from "@/utils/feedback"; // import { getRoutePath } from "router"; @@ -144,6 +158,9 @@ const handleDelete = async (id: number | any[]) => { await apiFlowTypeDelete({ id }); getLists(); }; - +// 状态 +const changeStatus = (row: any) => { + apiCateStatus({ id: row.id, status: row.status }); +}; getLists(); diff --git a/src/views/examined/examinedFlow.vue b/src/views/examined/examinedFlow.vue index 38e51dd..4809e16 100644 --- a/src/views/examined/examinedFlow.vue +++ b/src/views/examined/examinedFlow.vue @@ -111,11 +111,26 @@ prop="admin_id" show-overflow-tooltip /> - + + + import { usePaging } from "@/hooks/usePaging"; import { useDictData } from "@/hooks/useDictOptions"; -import { apiFlowLists, apiFlowDetil } from "@/api/examined"; +import { apiFlowLists, apiFlowDetil, apiFlowStatus } from "@/api/examined"; import { timeFormat } from "@/utils/util"; import feedback from "@/utils/feedback"; import EditPopup from "./editFlow.vue"; @@ -216,6 +231,11 @@ const handleEdit = async (data: any) => { editRef.value?.open("edit"); editRef.value?.setFormData(data); }; +// 状态 +const changeStatus = (row: any) => { + console.log(row.status); + apiFlowStatus({ id: row.id, status: row.status }); +}; // 删除 // const handleDelete = async (id: number | any[]) => { diff --git a/src/views/fileManagement/detil.vue b/src/views/fileManagement/detil.vue new file mode 100644 index 0000000..b0ec69b --- /dev/null +++ b/src/views/fileManagement/detil.vue @@ -0,0 +1,2408 @@ + + + diff --git a/src/views/fileManagement/editCate.vue b/src/views/fileManagement/editCate.vue new file mode 100644 index 0000000..1d7e990 --- /dev/null +++ b/src/views/fileManagement/editCate.vue @@ -0,0 +1,126 @@ + + + diff --git a/src/views/fileManagement/index.vue b/src/views/fileManagement/index.vue new file mode 100644 index 0000000..29c4daf --- /dev/null +++ b/src/views/fileManagement/index.vue @@ -0,0 +1,171 @@ + + +