From f341f082483cb27a6652eb9927aae6b6384a7e2f Mon Sep 17 00:00:00 2001 From: Teo <2642673902@qq.com> Date: Mon, 8 Sep 2025 10:21:17 +0800 Subject: [PATCH 1/5] 1 --- .../overallPlanMaterialSupply/index.vue | 1243 ++++++++++------- 1 file changed, 725 insertions(+), 518 deletions(-) diff --git a/src/views/materials/overallPlanMaterialSupply/index.vue b/src/views/materials/overallPlanMaterialSupply/index.vue index e41743c..e94b3ab 100644 --- a/src/views/materials/overallPlanMaterialSupply/index.vue +++ b/src/views/materials/overallPlanMaterialSupply/index.vue @@ -1,608 +1,815 @@ - - + @@ -196,35 +197,15 @@ const handleSelectionChange = (selection: QuestionUserAnswerVO[]) => { multiple.value = !selection.length; }; -/** 修改按钮操作 */ -// const handleUpdate = async (row?: QuestionUserAnswerVO) => { -// reset(); -// const _id = row?.id || ids.value[0]; -// const res = await getQuestionUserAnswer(_id); -// Object.assign(form.value, res.data); -// dialog.visible = true; -// dialog.title = '修改用户试卷存储'; -// }; - /** 批量下载按钮操作 */ const handleDownload = async () => { const _ids = ids.value; - await downLoadOss({ idList: _ids }, '/safety/questionUserAnswer/exportFile', '安全考试.zip'); + await downLoadOss({ idList: _ids }, '/safety/wgzQuestionSave/exportFile', '安全考试.zip'); }; /** 下载单个按钮操作 */ const downloadOssOne = async (row?: QuestionUserAnswerVO) => { await download.oss(row?.file); }; - -// const fileWatch = watch( -// () => filePath.value, -// (nid, oid) => { -// uploadQuestionUserAnswer({ file: filePath.value, projectId: currentProject.value?.id }).then((res) => { -// console.log(res); -// }); -// } -// ); - //监听项目id刷新数据 const listeningProject = watch( () => currentProject.value?.id, diff --git a/src/views/safety/questionsCategory/index.vue b/src/views/safety/questionsCategory/index.vue index e46f30c..d96e8eb 100644 --- a/src/views/safety/questionsCategory/index.vue +++ b/src/views/safety/questionsCategory/index.vue @@ -22,38 +22,21 @@ 新增 - - 修改 - - - 删除 - - - + diff --git a/src/views/safety/questionsConfig/index.vue b/src/views/safety/questionsConfig/index.vue index 669ca3a..282c309 100644 --- a/src/views/safety/questionsConfig/index.vue +++ b/src/views/safety/questionsConfig/index.vue @@ -1,309 +1,220 @@ + + diff --git a/src/views/system/user/comm/editInfo.vue b/src/views/system/user/comm/editInfo.vue index 1e8b39d..7168cee 100644 --- a/src/views/system/user/comm/editInfo.vue +++ b/src/views/system/user/comm/editInfo.vue @@ -192,12 +192,12 @@ async function handleDeptChange(value: number | string) { ]; } -const submitForm = () => { +const submitForm = (cb) => { userFormRef.value?.validate(async (valid: boolean) => { if (valid) { - form.value.userId ? await api.updateUser(form.value) : await api.addUser(form.value); - proxy?.$modal.msgSuccess('操作成功'); - proxy?.$emit('submit', false); + // form.value.userId ? await api.updateUser(form.value) : await api.addUser(form.value); + // proxy?.$modal.msgSuccess('操作成功'); + cb(); } }); }; @@ -243,7 +243,7 @@ const getInfoForm = () => { onMounted(() => { getDeptTree(); }); -defineExpose({ open, getInfoForm }); +defineExpose({ open, getInfoForm, submitForm });