From 0e61d6a6dba8e6101472d1398b97b1c9656ac9c8 Mon Sep 17 00:00:00 2001
From: hongawen <83944980@qq.com>
Date: Mon, 3 Jun 2024 19:29:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E6=B5=8B=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/supervision-boot/survey/plan.ts | 17 +++
.../harmonicSurvey/components/planManage.vue | 11 +-
.../harmonicSurvey/components/testManage.vue | 6 +-
.../supervise/harmonicSurvey/plan/detail.vue | 106 +++++++-----------
.../components/sensitiveUserTable.vue | 4 +-
5 files changed, 69 insertions(+), 75 deletions(-)
create mode 100644 src/api/supervision-boot/survey/plan.ts
diff --git a/src/api/supervision-boot/survey/plan.ts b/src/api/supervision-boot/survey/plan.ts
new file mode 100644
index 00000000..d8febe1c
--- /dev/null
+++ b/src/api/supervision-boot/survey/plan.ts
@@ -0,0 +1,17 @@
+import createAxios from '@/utils/request'
+
+import { SUPERVISION_BOOT } from '@/utils/constantRequest'
+
+const MAPPING_PATH = SUPERVISION_BOOT + '/surveyPlan'
+
+
+/**
+ * 根据id获取普测计划的详细数据
+ */
+export const getPlanById = (id: string) => {
+ return createAxios({
+ url: MAPPING_PATH + '/getById?id=' + id,
+ method: 'GET'
+ })
+}
+
diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
index ef4477ab..e9e54743 100644
--- a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
@@ -85,8 +85,7 @@ const tableStore = new TableStore({
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
- // planAddRef.value.open('查看计划', row)
- handleAudit(row.processInstanceId)
+ handleAudit(row.processInstanceId,row.historyInstanceId)
}
},
{
@@ -178,17 +177,19 @@ const handleClose = () => {
}
/** 处理审批按钮 */
-const handleAudit = (instanceId: any) => {
+const handleAudit = (instanceId: string,historyInstanceId:string) => {
push({
name: 'BpmProcessInstanceDetail',
- query: {
- id: instanceId
+ state: {
+ id: instanceId,
+ historyInstanceId
}
})
}
// 取消
onMounted(() => {
+ TableHeaderRef.value.setInterval(1)
tableStore.index()
getUserByRoleType(3).then(res => {
auditList.value = res.data
diff --git a/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
index 9ceab634..624c724d 100644
--- a/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
@@ -4,7 +4,7 @@