diff --git a/src/api/process-boot/generalTest.ts b/src/api/process-boot/generalTest.ts index 232aa300..d89effa9 100644 --- a/src/api/process-boot/generalTest.ts +++ b/src/api/process-boot/generalTest.ts @@ -1,7 +1,7 @@ import createAxios from '@/utils/request' //查询普测计划-新建页面 -export function queryPlan(data:any) { +export function queryPlan(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/queryPlan', method: 'post', @@ -9,7 +9,7 @@ export function queryPlan(data:any) { }) } //导出普测计划信息 -export function exportSurveyPlan(data:any) { +export function exportSurveyPlan(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/exportSurveyPlan', method: 'post', @@ -18,7 +18,7 @@ export function exportSurveyPlan(data:any) { }) } //新增 -export function getGeneratrixByCondition(data:any) { +export function getGeneratrixByCondition(data: any) { return createAxios({ url: '/device-boot/pms/generatrixWire/getGeneratrixByCondition', method: 'post', @@ -26,7 +26,7 @@ export function getGeneratrixByCondition(data:any) { }) } // 获取变电站名称 -export function getstatationStatList(data:any) { +export function getstatationStatList(data: any) { return createAxios({ url: '/device-boot/pms/statationStat/getstatationStatList', method: 'post', @@ -34,7 +34,7 @@ export function getstatationStatList(data:any) { }) } // 新增-修改普测计划 -export function addPlan(data:any) { +export function addPlan(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/addPlan', method: 'post', @@ -43,7 +43,7 @@ export function addPlan(data:any) { } //查询普测计划-审核页面 -export function queryPlanAudit(data:any) { +export function queryPlanAudit(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/queryPlanAudit', method: 'post', @@ -51,7 +51,7 @@ export function queryPlanAudit(data:any) { }) } //查询普测计划-结果页面 -export function queryPlanResult(data:any) { +export function queryPlanResult(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/queryPlanResult', method: 'post', @@ -59,20 +59,21 @@ export function queryPlanResult(data:any) { }) } //下载普测结果报告 -export function surveyResultDownload(data:any) { +export function surveyResultDownload(data: any) { return createAxios({ - url: '/process-boot/rGeneralSurveyPlan/surveyResultDownload?planNo=' + data.planNo, - method: 'post' + url: '/process-boot/rGeneralSurveyPlan/surveyResultDownload', + method: 'post', + params: data // responseType: 'blob', }) } //下载 -export function downLoadData(data:any) { +export function downLoadData(data: any) { return createAxios({ url: data }) } -export function MultipartFile(data:any) { +export function MultipartFile(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/surveyResultUpload', method: 'post', @@ -80,7 +81,7 @@ export function MultipartFile(data:any) { data }) } -export function initDetpStataionTree(data:any) { +export function initDetpStataionTree(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/initDetpStataionTree', method: 'post', @@ -88,23 +89,22 @@ export function initDetpStataionTree(data:any) { }) } // 普测计划-审核 -export function checkPlanAudit(data:any) { +export function checkPlanAudit(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/checkPlanAudit', method: 'post', data }) } -// 普测计划-审核 -export function queryPlanConfig(data:any) { +// 占比查询 +export function queryPlanConfig() { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/queryPlanConfig', - method: 'post', - data + method: 'post' }) } // 增加普测计划参数 -export function addPlanConfig(data:any) { +export function addPlanConfig(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/addPlanConfig', method: 'post', @@ -112,7 +112,7 @@ export function addPlanConfig(data:any) { }) } // 电站勾选接口 -export function querySubStatation(data:any) { +export function querySubStatation(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/querySubStatation', method: 'post', @@ -120,7 +120,7 @@ export function querySubStatation(data:any) { }) } // 设置普测周期 -export function addPlanCycle(data:any) { +export function addPlanCycle(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/addPlanCycle', method: 'post', @@ -128,7 +128,7 @@ export function addPlanCycle(data:any) { }) } // 批量提交审核 -export function planStatus(data:any) { +export function planStatus(data: any) { return createAxios({ url: '/process-boot/rGeneralSurveyPlan/planStatus', method: 'post', diff --git a/src/api/process-boot/interference.ts b/src/api/process-boot/interference.ts new file mode 100644 index 00000000..1d0c935d --- /dev/null +++ b/src/api/process-boot/interference.ts @@ -0,0 +1,126 @@ +import createAxios from '@/utils/request' +//获取未建档非线性用户录入及查询数据 +export function getUndocumentednonlinearData() { + return createAxios({ + url: '/Process-supervision/Undocumentednonlinear/getUndocumentednonlinear', + method: 'get' + }) +} +//获取入网评估报告审核数据 +export function getReportreviewData() { + return createAxios({ + url: '/Process-supervision/Reportreview/getReportreview', + method: 'get' + }) +} + +//获取干扰源用户常态化管理数据 +export function getNormalizedmanagementData() { + return createAxios({ + url: '/Process-supervision/Normalizedmanagement/getNormalizedmanagement', + method: 'get' + }) +} +//获取实测报告审核数据 +export function getMeasurementreportData() { + return createAxios({ + url: '/Process-supervision/Measurementreport/getMeasurementreport', + method: 'get' + }) +} +export function addLoadTypeUser(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/addLoadTypeUser', + method: 'post', + data + }) +} +export function getLoadTypeUserList(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/getLoadTypeUserList', + method: 'post', + data + }) +} +export function getPowerClientList(data: any) { + return createAxios({ + url: '/device-boot/pms/powerClient/getPowerClientList', + method: 'post', + data + }) +} +export function getPowerGenerationUserList(data: any) { + return createAxios({ + url: '/device-boot/pms/powerGenerationUser/getPowerGenerationUserList', + method: 'post', + data + }) +} +export function linkUser(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/linkUser', + method: 'post', + + data + }) +} +export function uploadLoadTypeUserI(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/uploadLoadTypeUserI', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data + }) +} +export function getLoadTypeUserById(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/getLoadTypeUserById', + method: 'get', + params: data + }) +} +export function exportLoadTypeUserList(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/exportLoadTypeUserList', + method: 'post', + data, + responseType: 'blob' + }) +} +export function exportLoadTypeRelationList(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/exportLoadTypeRelationList', + method: 'post', + data, + responseType: 'blob' + }) +} +export function getLoadTypeRelationList(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/getLoadTypeRelationList', + method: 'post', + data + }) +} +export function uploadLoadTypeUserA(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/uploadLoadTypeUserA', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data + }) +} +export function checkLoadTypeUserI(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/checkLoadTypeUserI', + method: 'post', + data + }) +} +export function checkLoadTypeUserA(data: any) { + return createAxios({ + url: '/process-boot/loadTypeUserManage/checkLoadTypeUserA', + method: 'post', + data + }) +} diff --git a/src/views/pqs/supervise/harmonicSurvey/components/occupancy.vue b/src/views/pqs/supervise/harmonicSurvey/components/occupancy.vue index c95a4910..2f157c85 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/occupancy.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/occupancy.vue @@ -1,11 +1,139 @@ - - + rows.forEach((item: any) => { + let proportion = 0 + treeData.value.forEach((val: any) => { + if (val.orgId == item.id) { + proportion = val.proportion + return + } + }) + + if (item.children && item.children.length > 0) { + children.push({ + name: item.name, + id: item.id, + proportion: proportion, + children: circulationTreeData(item.children) + }) + } else { + children.push({ + name: item.name, + id: item.id, + proportion: proportion + }) + } + }) + + return children +} +const preserve = () => { + treeList.value = [] + circulation(tableData.value) + setTimeout(() => { + addPlanConfig(treeList.value).then(res => { + ElMessage.success('保存成功!') + info() + }) + }, 0) +} +// 保存配置 +const define = () => { + addPlanCycle({ + cycleNum: num.value + }).then(res => { + if (res.data.flag == true) { + ElMessage.success('年限设置成功!') + handleClose() + } else { + ElMessage.warning(`本次普测计划周期还未结束,请在 ${res.data.endYear} 后设置!`) + } + }) +} +const circulation = (rows: any) => { + let children: any = [] + + rows.forEach((item: any) => { + treeList.value.push({ + orgName: item.name, + orgId: item.id, + proportion: item.proportion + }) + if (item.children && item.children.length > 0) { + circulation(item.children) + } + }) + + return children +} +const handleClose = () => { + dialogVisible.value = false + num.value = 0 +} + +onMounted(() => { + info() +}) + diff --git a/src/views/pqs/supervise/harmonicSurvey/components/outcome.vue b/src/views/pqs/supervise/harmonicSurvey/components/outcome.vue index 73e69b80..92e6d024 100644 --- a/src/views/pqs/supervise/harmonicSurvey/components/outcome.vue +++ b/src/views/pqs/supervise/harmonicSurvey/components/outcome.vue @@ -1,26 +1,56 @@ diff --git a/src/views/pqs/supervise/interfere/components/network/audit.vue b/src/views/pqs/supervise/interfere/components/network/audit.vue new file mode 100644 index 00000000..00735e2a --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/network/audit.vue @@ -0,0 +1,180 @@ + + + diff --git a/src/views/pqs/supervise/interfere/components/network/index.vue b/src/views/pqs/supervise/interfere/components/network/index.vue new file mode 100644 index 00000000..328cb0cb --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/network/index.vue @@ -0,0 +1,96 @@ + + + diff --git a/src/views/pqs/supervise/interfere/components/normal.vue b/src/views/pqs/supervise/interfere/components/normal.vue index 23f519ea..a757b677 100644 --- a/src/views/pqs/supervise/interfere/components/normal.vue +++ b/src/views/pqs/supervise/interfere/components/normal.vue @@ -4,35 +4,38 @@ @@ -56,24 +59,12 @@ import { useDictData } from '@/stores/dictData' import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity' const dictData = useDictData() -const process = [ - { - name: '是', - id: '1' - }, - { - name: '否', - id: '0' - } -] - -const dialogVisible = ref(false) +const interferenceType = dictData.getBasicData('Interference_Source') +const istatusList = dictData.getBasicData('On-network_Status') const TableHeaderRef = ref() -const title = ref('') -const ruleFormRef = ref() const tableStore = new TableStore({ - url: '/system-boot/area/areaSelect', + url: '/process-boot/loadTypeUserManage/getLoadTypeRelationList', publicHeight: 65, method: 'POST', column: [ @@ -81,11 +72,20 @@ const tableStore = new TableStore({ { field: 'orgName', title: '所属单位' }, { field: 'loadType', - title: '干扰源类型' + title: '干扰源类型', + formatter: row => { + return interferenceType.filter(item => item.id == row.cellValue)[0]?.name + } }, { field: 'userName', title: '干扰源用户名称' }, { field: 'relationUserName', title: '关联干扰源用户名称' }, - { field: 'istatus', title: '实测报告状态' }, + { + field: 'istatus', + title: '实测报告状态', + formatter: row => { + return istatusList.filter(item => item.id == row.cellValue)[0]?.name + } + }, { title: '操作', @@ -105,18 +105,15 @@ const tableStore = new TableStore({ } ], - loadCallback: () => { - tableStore.table.data = [ - { - state: 2 - } - ] + beforeSearchFun: () => { + tableStore.table.params.orgNo = tableStore.table.params.deptIndex } }) -tableStore.table.params.searchState = '' -tableStore.table.params.searchValue = '' -tableStore.table.params.type = '' +tableStore.table.params.loadType = '' +tableStore.table.params.userName = '' +tableStore.table.params.relationUserName = '' +tableStore.table.params.aisFileUpload = '' provide('tableStore', tableStore) onMounted(() => { diff --git a/src/views/pqs/supervise/interfere/components/undocumented.vue b/src/views/pqs/supervise/interfere/components/undocumented.vue deleted file mode 100644 index 99c36f95..00000000 --- a/src/views/pqs/supervise/interfere/components/undocumented.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - - diff --git a/src/views/pqs/supervise/interfere/components/undocumented/add.vue b/src/views/pqs/supervise/interfere/components/undocumented/add.vue new file mode 100644 index 00000000..affcd6d2 --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/undocumented/add.vue @@ -0,0 +1,90 @@ + + + diff --git a/src/views/pqs/supervise/interfere/components/undocumented/audit.vue b/src/views/pqs/supervise/interfere/components/undocumented/audit.vue new file mode 100644 index 00000000..7050a189 --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/undocumented/audit.vue @@ -0,0 +1,220 @@ + + + diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue new file mode 100644 index 00000000..dafc8f63 --- /dev/null +++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue @@ -0,0 +1,171 @@ + + + + diff --git a/src/views/pqs/supervise/interfere/index.vue b/src/views/pqs/supervise/interfere/index.vue index fcc1156f..2b67081a 100644 --- a/src/views/pqs/supervise/interfere/index.vue +++ b/src/views/pqs/supervise/interfere/index.vue @@ -13,8 +13,8 @@