From d87761a1b5a19dde7ec1718c2c19fefe091f41b1 Mon Sep 17 00:00:00 2001 From: elseif Date: Mon, 18 Mar 2024 23:51:27 +0800 Subject: [PATCH 1/4] fix: update --- src/views/task/content/Content.vue | 265 ++++++++++++------------ src/views/worksheet/content/Content.vue | 2 +- 2 files changed, 136 insertions(+), 131 deletions(-) diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index a6547d4..913f0d1 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -1,14 +1,5 @@ @@ -501,7 +504,9 @@ function getPercent(pictureid: string) {
-
填报信息
+
+ 填报信息 +
@@ -511,7 +516,7 @@ function getPercent(pictureid: string) {
- + diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index 7de6186..69e8f94 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -248,7 +248,7 @@ const layout = debounce(() => { _imagesload.on('done', (instance) => { if (!el.value) return - loading.value = false + loading.value = false }) _imagesload.on('fail', (instance) => { From 4e9ee6eaa6dac8ae78b9c4699edf96643455ca15 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Tue, 19 Mar 2024 09:33:04 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/aside/ListItem.vue | 35 ++++++++++++--------- src/views/task/content/Content.vue | 27 +++++++++------- src/views/task/modal/CustomSettingModal.vue | 8 ++--- 3 files changed, 40 insertions(+), 30 deletions(-) diff --git a/src/views/task/aside/ListItem.vue b/src/views/task/aside/ListItem.vue index 2f05272..ec51369 100644 --- a/src/views/task/aside/ListItem.vue +++ b/src/views/task/aside/ListItem.vue @@ -1,8 +1,8 @@ diff --git a/src/views/task/modal/CustomSettingModal.vue b/src/views/task/modal/CustomSettingModal.vue index fd30069..5674e08 100644 --- a/src/views/task/modal/CustomSettingModal.vue +++ b/src/views/task/modal/CustomSettingModal.vue @@ -2,7 +2,7 @@ import { getAllfieldList, getfieldList, savefield } from "@/api/home/filter"; import { ReportInfoConfig } from "@/config/workorder"; import { useUser } from "@/store/modules/user"; -import { defineProps, onMounted, ref } from "vue"; +import { defineEmits, defineProps, onMounted, ref } from "vue"; const props = defineProps({ reviewType: { @@ -95,6 +95,7 @@ function showModal() { function closeModal() { show.value = false; } +const emit = defineEmits(['onOk']) async function handleSumbit(e: MouseEvent) { const userStore = useUser(); @@ -109,9 +110,8 @@ async function handleSumbit(e: MouseEvent) { savefield(props.reviewType, userInfo.id, userField); e.preventDefault(); closeModal(); - setTimeout(()=>{ - window.location.reload(); - },3000) + emit('onOk') + } defineExpose({ From 5022d82e5659dbbf3b19564c3e64979484952f37 Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Tue, 19 Mar 2024 09:35:48 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat:=20=E5=90=88=E5=B9=B6=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/content/Content.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index a6547d4..244bfc2 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -5,6 +5,7 @@ import { getTaskDetailInfo, getTaskDetailPictureList } from '@/api/work/work' import { useTask } from '@/store/modules/task' import { useUser } from '@/store/modules/user' import { isEmpty } from '@/utils' +import { formatToDateHMS } from '@/utils/dateUtil' import { hideDownload } from '@/utils/image' import emitter from '@/utils/mitt' import _ from 'lodash' @@ -16,16 +17,7 @@ import ConfrimModal from '../modal/ConfrimModal.vue' import CustomSettingModal from '../modal/CustomSettingModal.vue' import PictureTable from './PictureTable.vue' import TaskTable from './TaskTable.vue' -import { getAllfieldList } from '@/api/home/filter' -import { audit } from '@/api/task/task' -import { getTaskDetailInfo, getTaskDetailPictureList } from '@/api/work/work' -import { useTask } from '@/store/modules/task' -import { useUser } from '@/store/modules/user' -import { isEmpty } from '@/utils' -import { hideDownload } from '@/utils/image' -import emitter from '@/utils/mitt' import type { ApprovalParam, PictureSortParam } from '/#/api' -import { formatToDateHMS } from '@/utils/dateUtil' const batch = ref(false) From 557e09ad5bbddc1fc3ed5165bbe33961ce8d80cd Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Tue, 19 Mar 2024 10:01:39 +0800 Subject: [PATCH 4/4] =?UTF-8?q?feat:=20=E5=AE=A1=E6=89=B9=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/aside/ListItem.vue | 43 +++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/src/views/task/aside/ListItem.vue b/src/views/task/aside/ListItem.vue index ec51369..cf73df8 100644 --- a/src/views/task/aside/ListItem.vue +++ b/src/views/task/aside/ListItem.vue @@ -36,9 +36,17 @@ const svgName = computed(() => {