From cc1edc0e96a3a367a747af879022e122eff7dd95 Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Mon, 25 Mar 2024 20:29:33 +0800
Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=20=E5=B9=B2=E6=89=B0?=
=?UTF-8?q?=E6=BA=90=E7=94=A8=E6=88=B7=20=20=20=E8=B0=90=E6=B3=A2=E6=99=AE?=
=?UTF-8?q?=E6=B5=8B=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/process-boot/generalTest.ts | 44 +--
src/api/process-boot/interference.ts | 126 +++++++
.../harmonicSurvey/components/occupancy.vue | 142 +++++++-
.../harmonicSurvey/components/outcome.vue | 204 ++++++++---
.../interfere/components/network.vue | 87 -----
.../interfere/components/network/audit.vue | 180 ++++++++++
.../interfere/components/network/index.vue | 96 ++++++
.../supervise/interfere/components/normal.vue | 77 ++---
.../interfere/components/undocumented.vue | 317 ------------------
.../interfere/components/undocumented/add.vue | 90 +++++
.../components/undocumented/audit.vue | 220 ++++++++++++
.../components/undocumented/index.vue | 171 ++++++++++
src/views/pqs/supervise/interfere/index.vue | 4 +-
.../terminal/components/cycleTab.vue | 13 +-
.../terminal/components/networkTab.vue | 10 +-
15 files changed, 1247 insertions(+), 534 deletions(-)
create mode 100644 src/api/process-boot/interference.ts
delete mode 100644 src/views/pqs/supervise/interfere/components/network.vue
create mode 100644 src/views/pqs/supervise/interfere/components/network/audit.vue
create mode 100644 src/views/pqs/supervise/interfere/components/network/index.vue
delete mode 100644 src/views/pqs/supervise/interfere/components/undocumented.vue
create mode 100644 src/views/pqs/supervise/interfere/components/undocumented/add.vue
create mode 100644 src/views/pqs/supervise/interfere/components/undocumented/audit.vue
create mode 100644 src/views/pqs/supervise/interfere/components/undocumented/index.vue
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 @@
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 报告在线查看
+
+
+ {{ addForm.ifilePathName }}
+
+
+
+ 入网评估结论填报
+
+
+ 是
+ 否
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 审核意见
+
+
+
+
+
+ 通过
+ 不通过
+ 取消
+
+
+
+
+
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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
- 上传
- 关联
- 导出
-
-
-
-
-
- 基本信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 确定
- 取消
-
-
-
-
- 基本信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 入网评估报告上传
-
-
-
-
- 上传文件
-
-
-
-
- 入网评估结论填报
-
-
- 是
- 否
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 保存
- 取消
-
-
-
-
-
-
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 @@
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 入网评估报告上传
+
+
+
+
+
+ 上传文件
+
+
+
+ {{ addForm.ifilePathName }}
+
+
+
+
+
+ 入网评估结论填报
+
+
+ 是
+ 否
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 保存
+ 取消
+
+
+
+
+
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 @@