From 9ee495f40d0e72abd24cc7d12138a76ce11ea615 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Tue, 4 Jun 2024 18:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85=20=E8=BF=94=E5=9B=9E=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../panorama/components/details/evaluate.vue | 36 ++- .../harmonicSurvey/components/planManage.vue | 18 +- .../components/undocumented/index.vue | 22 +- src/views/pqs/supervise/plan/index.vue | 24 +- src/views/pqs/supervise/retire/monitor.vue | 48 ++-- src/views/pqs/supervise/retire/terminal.vue | 49 ++-- .../components/jointDebugList/debug.vue | 23 +- .../components/monitorpoint/index.vue | 25 +- .../components/terminainal/index.vue | 26 +- src/views/system/bpm/task/done/index.vue | 20 +- src/views/system/bpm/task/index.vue | 2 +- .../system/bpm/task/myInstance/index.vue | 239 ++++++++++-------- src/views/system/bpm/task/todo/index.vue | 150 +++++------ 13 files changed, 404 insertions(+), 278 deletions(-) diff --git a/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue b/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue index 679d061e..ce49e317 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/details/evaluate.vue @@ -24,8 +24,8 @@ - - + + - - - - + + - - - - + + - - - - + + - - - - + + - + @@ -193,13 +185,17 @@ const analysis = (e: any) => { let list: any = [] let time: any = [] + let mun: any = [] res.data.forEach((item: any, num: any) => { time.push(item.deptName) list.push([]) item.children.forEach((val: any, i: any) => { + mun.push(val.score == 3.14159 ? null : val.score) list[num].push(val.score == 3.14159 ? null : val.score) }) }) + console.log('🚀 ~ getAssessTrend ~ mun:', mun) + list.forEach((item: any, i: any) => { picEChart.value.options.series.push({ name: time[i], @@ -207,6 +203,8 @@ const analysis = (e: any) => { data: item }) }) + picEChart.value.yAxis.min = Math.min(...mun) < 1 ? 0 : (Math.min(...mun) - 0.5).toFixed(2) + picEChart.value.yAxis.max = Math.max(...mun) > 4.5 ? 5 : (Math.max(...mun) + 0.5).toFixed(2) loading.value = false }) } diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue index cb357c15..5e92402f 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue @@ -13,7 +13,7 @@ import { useAdminInfo } from '@/stores/adminInfo' //获取登陆用户姓名和部门 const adminInfo = useAdminInfo() -import { ref, onMounted, provide, nextTick } from 'vue' +import { ref, onMounted, provide, watch } from 'vue' import TableStore from '@/utils/tableStore' import Table from '@/components/table/index.vue' import TableHeader from '@/components/table/header/index.vue' @@ -23,13 +23,14 @@ import planAdd from './planAdd.vue' import { useRouter } from 'vue-router' import { queryPlan, removeSurvey } from '@/api/process-boot/generalTest' import { getUserByRoleType } from '@/api/user-boot/user' -const { push } = useRouter() +const { push, options, currentRoute } = useRouter() const dialogVisible = ref(false) const tableRef = ref() const planAddRef = ref() const TableHeaderRef = ref() const auditList: any = ref([]) const auditUser = ref('') +const flag = ref(false) const openType = ref('create') const tableStore = new TableStore({ url: '/supervision-boot/surveyPlan/surveyPlanPage', @@ -89,6 +90,7 @@ const tableStore = new TableStore({ icon: 'el-icon-EditPen', render: 'basicButton', click: row => { + flag.value = true handleAudit(row.processInstanceId,row.historyInstanceId) } }, @@ -198,6 +200,18 @@ onMounted(() => { auditList.value = res.data }) }) +watch( + () => currentRoute.value.path, + () => { + if (flag.value && options.history.state.forward?.split('/')[1] == 'bpm') { + tableStore.index() + flag.value = false + } + }, + { + deep: true + } +) diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue index ae764073..172a3ca2 100644 --- a/src/views/pqs/supervise/interfere/components/undocumented/index.vue +++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue @@ -30,7 +30,7 @@ diff --git a/src/views/pqs/supervise/retire/monitor.vue b/src/views/pqs/supervise/retire/monitor.vue index 69ad1a6a..3ea3f6c2 100644 --- a/src/views/pqs/supervise/retire/monitor.vue +++ b/src/views/pqs/supervise/retire/monitor.vue @@ -1,6 +1,6 @@ - diff --git a/src/views/pqs/supervise/retire/terminal.vue b/src/views/pqs/supervise/retire/terminal.vue index 0231a729..83642e00 100644 --- a/src/views/pqs/supervise/retire/terminal.vue +++ b/src/views/pqs/supervise/retire/terminal.vue @@ -1,6 +1,6 @@ - diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/debug.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/debug.vue index 61d12329..98b76ecc 100644 --- a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/debug.vue +++ b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/debug.vue @@ -20,7 +20,13 @@ label-position="right" > - + diff --git a/src/views/system/bpm/task/index.vue b/src/views/system/bpm/task/index.vue index 5f81ee21..cd9a0b2d 100644 --- a/src/views/system/bpm/task/index.vue +++ b/src/views/system/bpm/task/index.vue @@ -22,7 +22,7 @@ import MyInstance from './myInstance/index.vue' import { mainHeight } from '@/utils/layout' defineOptions({ - // name: 'bpm/task' + name: 'bpm/task' }) const activeName = ref('1') diff --git a/src/views/system/bpm/task/myInstance/index.vue b/src/views/system/bpm/task/myInstance/index.vue index 86b982e5..d0b02966 100644 --- a/src/views/system/bpm/task/myInstance/index.vue +++ b/src/views/system/bpm/task/myInstance/index.vue @@ -1,27 +1,23 @@ - diff --git a/src/views/system/bpm/task/todo/index.vue b/src/views/system/bpm/task/todo/index.vue index f268b5c5..72e32ddc 100644 --- a/src/views/system/bpm/task/todo/index.vue +++ b/src/views/system/bpm/task/todo/index.vue @@ -1,100 +1,106 @@ -