From 7b7b8b0b897be08c42e8ff46ce06904f56942dfe Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Tue, 25 Jun 2024 15:13:47 +0800
Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=20=E5=9C=A8=E7=BA=BF?=
=?UTF-8?q?=E7=9B=91=E6=B5=8B=20=20=E9=A1=B5=E9=9D=A2=20=20=20=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E4=BA=91=E6=95=88=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/process-boot/electricitymanagement.ts | 8 +
.../components1/form/alarmList.vue | 127 ++++++++++
.../components1/form/detail.vue | 55 +++++
.../electricalEnergy/components1/online.vue | 228 ++++++++++++------
.../harmonicSurvey/components/planManage.vue | 3 +
.../harmonicSurvey/components/testManage.vue | 3 +
.../normalizationManager/programReview.vue | 3 +
.../components/undocumented/index.vue | 3 +
src/views/pqs/supervise/retire/monitor.vue | 3 +
src/views/pqs/supervise/retire/terminal.vue | 3 +
.../supervise/technology/components/alarm.vue | 3 +
.../technology/components/earlyWarn.vue | 3 +
.../components/interferenceUserTable.vue | 3 +
.../components/sensitiveUserTable.vue | 3 +
.../components/jointDebugList/index.vue | 3 +
.../components/monitorpoint/addForm.vue | 30 ++-
.../components/monitorpoint/index.vue | 4 +
.../components/terminainal/index.vue | 3 +
src/views/pqs/supervise/testRun/index.vue | 13 -
19 files changed, 411 insertions(+), 90 deletions(-)
create mode 100644 src/views/pqs/supervise/electricalEnergy/components1/form/alarmList.vue
create mode 100644 src/views/pqs/supervise/electricalEnergy/components1/form/detail.vue
diff --git a/src/api/process-boot/electricitymanagement.ts b/src/api/process-boot/electricitymanagement.ts
index c831c0af..061774e9 100644
--- a/src/api/process-boot/electricitymanagement.ts
+++ b/src/api/process-boot/electricitymanagement.ts
@@ -199,6 +199,14 @@ export function handleWarningAlarmFlag(data) {
data
})
}
+//发起预警单,发起告警单
+export function report(data) {
+ return createAxios({
+ url: '/supervision-boot/onlineMonitor/report',
+ method: 'POST',
+ data
+ })
+}
//提交用户投诉新增表单
export function addComplaintsData(data) {
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/form/alarmList.vue b/src/views/pqs/supervise/electricalEnergy/components1/form/alarmList.vue
new file mode 100644
index 00000000..dff18388
--- /dev/null
+++ b/src/views/pqs/supervise/electricalEnergy/components1/form/alarmList.vue
@@ -0,0 +1,127 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 年份
+
+
+ 编号
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/form/detail.vue b/src/views/pqs/supervise/electricalEnergy/components1/form/detail.vue
new file mode 100644
index 00000000..7ee8d316
--- /dev/null
+++ b/src/views/pqs/supervise/electricalEnergy/components1/form/detail.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/online.vue b/src/views/pqs/supervise/electricalEnergy/components1/online.vue
index b2215bd5..3047e8b2 100644
--- a/src/views/pqs/supervise/electricalEnergy/components1/online.vue
+++ b/src/views/pqs/supervise/electricalEnergy/components1/online.vue
@@ -1,13 +1,33 @@
-
+
+
+
+
-
+
+
+
+
+
+
+
+ 发起预警单
+ 发起告警单
+
+
+
+
diff --git a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
index 14599baf..692a0863 100644
--- a/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/components/planManage.vue
@@ -162,6 +162,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
planAddRef.value.open('编辑', row.id, false)
}
diff --git a/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
index 605e1bdc..6100408d 100644
--- a/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/components/testManage.vue
@@ -179,6 +179,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
planTestRef.value.open('编辑', row.id, false)
}
diff --git a/src/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue b/src/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue
index 83cbe237..3a3a6cf4 100644
--- a/src/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue
+++ b/src/views/pqs/supervise/interfere/components/normalizationManager/programReview.vue
@@ -180,6 +180,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
dialogVisible.value = true
titleButton1.value = '编辑'
diff --git a/src/views/pqs/supervise/interfere/components/undocumented/index.vue b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
index 9c455be9..45c20c80 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented/index.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented/index.vue
@@ -174,6 +174,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
addForms.value.open({
title: '编辑',
diff --git a/src/views/pqs/supervise/retire/monitor.vue b/src/views/pqs/supervise/retire/monitor.vue
index e165ba6b..1860bd8c 100644
--- a/src/views/pqs/supervise/retire/monitor.vue
+++ b/src/views/pqs/supervise/retire/monitor.vue
@@ -178,6 +178,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
deviceQuitPopup.value.open('编辑', row)
}
diff --git a/src/views/pqs/supervise/retire/terminal.vue b/src/views/pqs/supervise/retire/terminal.vue
index 3fae490f..0caa4dec 100644
--- a/src/views/pqs/supervise/retire/terminal.vue
+++ b/src/views/pqs/supervise/retire/terminal.vue
@@ -175,6 +175,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
deviceQuitPopup.value.open('编辑', row)
}
diff --git a/src/views/pqs/supervise/technology/components/alarm.vue b/src/views/pqs/supervise/technology/components/alarm.vue
index 6d5db630..086ab475 100644
--- a/src/views/pqs/supervise/technology/components/alarm.vue
+++ b/src/views/pqs/supervise/technology/components/alarm.vue
@@ -173,6 +173,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
feedbackPopup.value.open(
'编辑',
diff --git a/src/views/pqs/supervise/technology/components/earlyWarn.vue b/src/views/pqs/supervise/technology/components/earlyWarn.vue
index 6b5b660e..d6a5ca01 100644
--- a/src/views/pqs/supervise/technology/components/earlyWarn.vue
+++ b/src/views/pqs/supervise/technology/components/earlyWarn.vue
@@ -155,6 +155,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
feedbackPopup.value.open(
'编辑',
diff --git a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
index 38a29190..6f535898 100644
--- a/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
+++ b/src/views/pqs/supervise/terminal/components/interferenceUserTable.vue
@@ -127,6 +127,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.dataType == 1)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
addForms.value.filterUsers([6])
addForms.value.open({
diff --git a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
index f345a435..19b65527 100644
--- a/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
+++ b/src/views/pqs/supervise/terminal/components/sensitiveUserTable.vue
@@ -146,6 +146,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.dataType == 1)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
addForms.value.filterUsers([5, 4, 3, 2, 1, 0])
addForms.value.open({
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
index 7e3b2ce9..cdb3d5c3 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/jointDebugList/index.vue
@@ -138,6 +138,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
debugForms.value.open('编辑', row)
}
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
index e46e90e9..dbeaf878 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/addForm.vue
@@ -565,7 +565,7 @@ const resetForm = () => {
shortCapacity: '10', // 短路容量
dealCapacity: '10', //协议容量
devCapacity: '10', //终端容量
- standardCapacity: '10', //基准容量
+ standardCapacity: 10, //基准容量
isGridConnectionPoint: 0, //是否并网点
isStatistical: 0, // 是否参与统计
lineId: '', // 监测点编码
@@ -634,6 +634,30 @@ const changevoltageDeviationLimit = async () => {
form.value.pt1 = val * 10
form.value.pt2 = 1
}
+
+ if (Number(val) < 0.6) {
+ form.value.standardCapacity = 10
+ } else if (Number(val) < 20) {
+ form.value.standardCapacity = 100
+ } else if (Number(val) < 35) {
+ form.value.standardCapacity = 200
+ } else if (Number(val) < 66) {
+ form.value.standardCapacity = 250
+ } else if (Number(val) < 110) {
+ form.value.standardCapacity = 500
+ } else if (Number(val) < 220) {
+ form.value.standardCapacity = 750
+ } else if (Number(val) < 330) {
+ form.value.standardCapacity = 2000
+ } else if (Number(val) < 500) {
+ form.value.standardCapacity = 3000
+ } else if (Number(val) < 750) {
+ form.value.standardCapacity = 4500
+ } else if (Number(val) < 1000) {
+ form.value.standardCapacity = 7000
+ } else {
+ form.value.standardCapacity = 9000
+ }
}
findAllMonitoringTerminalList()
//获取树形图数据
@@ -710,7 +734,7 @@ const changeUserName = () => {
shortCapacity: 0, // 短路容量
dealCapacity: obj.userReportProjectPO?.agreementCapacity, //协议容量
devCapacity: 0, //终端容量
- standardCapacity: 0 //基准容量
+ standardCapacity: 10 //基准容量
}
getDictTree(obj.userReportProjectPO?.nonlinearDeviceType)
})
@@ -723,7 +747,7 @@ const changeUserName = () => {
shortCapacity: 0, // 短路容量
dealCapacity: 0, //协议容量
devCapacity: 0, //终端容量
- standardCapacity: 0 //基准容量
+ standardCapacity: 10 //基准容量
}
getDictTree()
})
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
index aca51204..b42aaa22 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/monitorpoint/index.vue
@@ -132,6 +132,10 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
addForms.value.open({
title: '编辑',
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/index.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/index.vue
index df8436dd..2caf0999 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/index.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/index.vue
@@ -175,6 +175,9 @@ const tableStore = new TableStore({
showDisabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0)
},
+ disabled: row => {
+ return !(row.status == 0)
+ },
click: row => {
addForms.value.open({
title: '编辑',
diff --git a/src/views/pqs/supervise/testRun/index.vue b/src/views/pqs/supervise/testRun/index.vue
index 9e8ebc81..377cf8f7 100644
--- a/src/views/pqs/supervise/testRun/index.vue
+++ b/src/views/pqs/supervise/testRun/index.vue
@@ -151,19 +151,6 @@ const tableStore = new TableStore({
return row.testRunState != 2 || !row.processInstanceId
}
},
- {
- name: 'edit',
- title: '编辑',
- type: 'primary',
- icon: 'el-icon-Open',
- render: 'basicButton',
- showDisabled: row => {
- return row.createBy != adminInfo.$state.id || !(row.status == 0)
- },
- click: row => {
-
- }
- },
{
name: 'productSetting',
title: '重新试运行',