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 @@