diff --git a/src/api/supervision-boot/survey/plan.ts b/src/api/supervision-boot/survey/plan.ts index d8febe1c..0986be4c 100644 --- a/src/api/supervision-boot/survey/plan.ts +++ b/src/api/supervision-boot/survey/plan.ts @@ -8,7 +8,7 @@ const MAPPING_PATH = SUPERVISION_BOOT + '/surveyPlan' /** * 根据id获取普测计划的详细数据 */ -export const getPlanById = (id: string) => { +export const getPlanById = (id: any) => { return createAxios({ url: MAPPING_PATH + '/getById?id=' + id, method: 'GET' diff --git a/src/api/supervision-boot/survey/test.ts b/src/api/supervision-boot/survey/test.ts new file mode 100644 index 00000000..b11a4f7e --- /dev/null +++ b/src/api/supervision-boot/survey/test.ts @@ -0,0 +1,29 @@ +import createAxios from '@/utils/request' + +import { SUPERVISION_BOOT } from '@/utils/constantRequest' + +const MAPPING_PATH = SUPERVISION_BOOT + '/surveyTest' + + +/** + * 根据id获取普测计划的详细数据 + */ +export const getTestById = (id: any) => { + return createAxios({ + url: MAPPING_PATH + '/getById?id=' + id, + method: 'GET' + }) +} + +/** + * 新增普测测试结果 + */ +export const addSurveyTest = (data: any) => { + return createAxios({ + url: MAPPING_PATH + '/add', + method: 'POST', + data: data + }) +} + + diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue b/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue index 491b91d6..a23a26cf 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planAdd.vue @@ -228,25 +228,11 @@ const audit = (filePath: any) => { if (form.value.customSubstationFlag == '0') { addForm.substation = addForm.substation.join(',') } - console.log(addForm, '提交') addSurveyPlan(addForm).then(res => { cancelFn() emit('onsubmit') }) return - if (title.value == '普测计划新增') { - addSurvey({ ...form.value, filePath: filePath }).then((res: any) => { - ElMessage.success('新增成功!') - cancelFn() - emit('onsubmit') - }) - } else if (title.value == '重新发起计划') { - auditSurvey({ ...form.value, filePath: filePath }).then((res: any) => { - ElMessage.success('重新发起计划成功!') - cancelFn() - emit('onsubmit') - }) - } } // 上传文件 // 文件数超出提示 diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue index e9e54743..2fb5ef3d 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue @@ -41,7 +41,7 @@ const tableStore = new TableStore({ }, { field: 'deptName', - title: '普测负责单位' + title: '负责单位' }, { field: 'substation', @@ -52,7 +52,7 @@ const tableStore = new TableStore({ }, { field: 'planName', - title: '普测计划名称' + title: '普测计划' }, { field: 'planStartTime', title: '计划开始时间' }, { field: 'planEndTime', title: '计划结束时间' }, @@ -189,7 +189,6 @@ const handleAudit = (instanceId: string,historyInstanceId:string) => { // 取消 onMounted(() => { - TableHeaderRef.value.setInterval(1) tableStore.index() getUserByRoleType(3).then(res => { auditList.value = res.data diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue index a8a1afcf..fe391f7e 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/planTest.vue @@ -1,275 +1,223 @@ - - + diff --git a/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue b/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue index 60ee9d68..27513574 100644 --- a/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue +++ b/src/views/pqs/supervise/harmonicSurvey/plan/detail.vue @@ -96,15 +96,7 @@ const getDeviceStatusType = (status: number) => { } return 'success' } -// 过滤数据 -// const formatter = (row: any) => { -// if (row.column.field == 'voltageLevel') { -// debugger -// return levelList.filter(item => item.id == row.cellValue)[0].name -// } else { -// return row.cellValue -// } -// } + const formatterSource = (row: any) => { if (row.column.field == 'dataSource') { diff --git a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue index a319a7a2..997c812a 100644 --- a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue +++ b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue @@ -1,152 +1,161 @@ - diff --git a/src/views/pqs/supervise/technology/detail.vue b/src/views/pqs/supervise/technology/detail.vue index d22331fe..4fac2c91 100644 --- a/src/views/pqs/supervise/technology/detail.vue +++ b/src/views/pqs/supervise/technology/detail.vue @@ -92,8 +92,6 @@ const getFileData = async () => { detailData.value.reportPath = res.data.url detailData.value.reportName = res.data.fileName }) - - } defineExpose({ open: getInfo }) // 提供 open 方法,用于打开弹窗