From 13a3b285005e825e933f2389d313c20e78956be7 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Wed, 30 Oct 2024 15:59:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82=20fix:=20=E5=AE=8C=E5=96=84=E4=BD=90=E8=AF=81?= =?UTF-8?q?=E6=9D=90=E6=96=99=E5=88=86=E7=B1=BB=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/file/upload-group.vue | 458 ++++++------------ src/components/negative/verify.vue | 2 +- src/style/public.scss | 3 + .../sensitivePerception/ModelClueTask.vue | 16 +- src/views/work/Query.vue | 33 +- 5 files changed, 200 insertions(+), 312 deletions(-) diff --git a/src/components/file/upload-group.vue b/src/components/file/upload-group.vue index ce68e53..6ef7021 100644 --- a/src/components/file/upload-group.vue +++ b/src/components/file/upload-group.vue @@ -11,245 +11,164 @@ v-model="show" width="60vw" :close-on-click-modal="false" + top="2vh" > - - - - -
- 将文件拖拽到此处或点击上传 + + +
+
将文件拖拽到此处或点击上传
+
文件大小限制为 100MB
+
+
+

未分类文件

+
+
+
+
+ +
- - - - -
- 选中{{ activeFileIds.length }}个文件 + + {{ item.fileName }} +
+
-
- 修改文件分类 - 取消选中 -
+ 修改文件分类 + 删除文件
- -
-

- 未分类 - 可单击选择下面文件进行分类 -

-
- -
-
-
- {{ item.classTitle }} -
-
-
-
-
- + + +
确定确认佐证材料
@@ -278,12 +197,14 @@ const emit = defineEmits(["update:files"]); const show = ref(false); const fileList = ref(props.files); -const activeFileIds = ref([]); -const fileClassId = ref(""); - const fileClasss = ref([]); if (props.problemSourcesCode === ProblemSources.JWDC) { fileClasss.value = [ + { + id: 6, + classTitle: "处理反馈表", + classRemarks: "", + }, { id: 1, classTitle: "容错免责样本申请表", @@ -346,14 +267,12 @@ function handleError(e) { feedback.msgError("上传失败!"); } -function handleUpdateFileClass() { - fileList.value - .filter((item) => activeFileIds.value.includes(item.uid)) - .forEach((file) => { - file.fileClassId = fileClassId.value; - }); - activeFileIds.value = []; - fileClassId.value = ""; +function handleUpdateFileClass(item) { + item.fileClassId = item.classId; +} + +function cancelFileClass(item) { + item.fileClassId = null; } function handleSubmit() { @@ -364,85 +283,26 @@ function handleSubmit() { show.value = false; } -function remove(index) { - fileList.value.splice(index, 1); +function remove(item) { + fileList.value.splice(fileList.value.indexOf(item), 1); } \ No newline at end of file diff --git a/src/components/negative/verify.vue b/src/components/negative/verify.vue index 527764d..9231403 100644 --- a/src/components/negative/verify.vue +++ b/src/components/negative/verify.vue @@ -1342,7 +1342,7 @@ async function validate() { } } -async function getData() { +function getData() { return form.value; } diff --git a/src/style/public.scss b/src/style/public.scss index dfb9bb3..21783e1 100644 --- a/src/style/public.scss +++ b/src/style/public.scss @@ -131,6 +131,9 @@ svg+span { gap: 20px; } +.text-small { + font-size: 12px; +} .text-center { text-align: center; } diff --git a/src/views/sensitivePerception/ModelClueTask.vue b/src/views/sensitivePerception/ModelClueTask.vue index 0945beb..b34be3c 100644 --- a/src/views/sensitivePerception/ModelClueTask.vue +++ b/src/views/sensitivePerception/ModelClueTask.vue @@ -40,6 +40,12 @@
+ + - +
diff --git a/src/views/work/Query.vue b/src/views/work/Query.vue index d281cff..9715e67 100644 --- a/src/views/work/Query.vue +++ b/src/views/work/Query.vue @@ -69,7 +69,7 @@ /> - +
@@ -498,25 +498,36 @@ function reset() { }; getList(); // 重置路由 - router.push('/query') + router.push("/query"); } -const route = useRoute() -watch(() => route.query, () => { +const route = useRoute(); +watch( + () => route.query, + () => { + updateQuery() + getList(); + } +); + +function updateQuery() { if (route.query.processingStatus) { - query.value.processingStatus = [route.query.processingStatus] + query.value.processingStatus = [route.query.processingStatus]; } else { - query.value.processingStatus = [] + query.value.processingStatus = []; } - if (route.query.crtTime === 'today') { - query.value.crtTime = [moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"), moment().endOf("day").format("YYYY-MM-DD HH:mm:ss")] + if (route.query.crtTime === "today") { + query.value.crtTime = [ + moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"), + moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"), + ]; } else { - query.value.crtTime = [] + query.value.crtTime = []; } - getList() -}) +} onMounted(() => { + updateQuery() getList(); });