From ef04022f14a6a40b775210df6504a23f7d7eb5e8 Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Fri, 28 Mar 2025 16:05:03 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=80=E5=8C=97=E9=A1=B9=E7=9B=AE=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E8=A1=A8=E6=A0=BC=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=20=E6=8A=80=E6=9C=AF=E7=9B=91=E7=9D=A3=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=A8=A1=E7=89=88=E4=B8=8A=E4=BC=A0=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 3 +-
src/api/supervision-boot/userReport/form.ts | 21 +
src/components/table/header/index.vue | 2 +-
src/components/table/index.vue | 4 +-
src/components/tree/pqs/Terminal.vue | 13 +-
src/utils/echartMethod.ts | 135 +++-
src/utils/tableStore.ts | 8 +
.../pqs/business/terminal/deviceter/index.vue | 16 +-
src/views/pqs/runManage/assessment/index.vue | 2 +
src/views/pqs/runManage/cleaning/index.vue | 5 +-
src/views/pqs/runManage/runEvaluate/index.vue | 262 +++----
.../components1/complaints.vue | 21 +-
.../components1/form/alarmList.vue | 2 +-
.../electricalEnergy/components1/online.vue | 9 +-
.../components1/testQuestions.vue | 12 +-
.../electricalEnergy/components1/testRun.vue | 12 +-
.../harmonicSurvey/components/planAdd.vue | 50 +-
.../harmonicSurvey/components/planManage.vue | 572 ++++++++-------
.../components/sensitiveUserPopup.vue | 184 +++++
.../harmonicSurvey/components/testManage.vue | 105 +--
.../interferenceUserTable.vue | 148 ++--
.../normalization/detail.vue | 233 +++++--
.../normalizationManager/programReview.vue | 85 ++-
.../components/undocumented/addForm.vue | 430 +++++-------
.../components/undocumented/detail.vue | 68 +-
.../components/undocumented/index.vue | 653 +++++++++---------
src/views/pqs/supervise/retire/monitor.vue | 111 ++-
src/views/pqs/supervise/retire/terminal.vue | 106 ++-
.../supervise/technology/components/alarm.vue | 133 ++--
.../technology/components/earlyWarn.vue | 119 ++--
.../supervise/technology/feedbackPopup.vue | 23 +-
.../terminal/components/deviceLedgerTable.vue | 13 +-
.../components/interferenceUserTable.vue | 46 +-
.../components/monitorLedgerTable.vue | 33 +-
.../components/sensitiveUserPopup.vue | 43 +-
.../components/sensitiveUserTable.vue | 5 +-
.../terminal/components/substationLedger.vue | 13 +-
.../components/cycleDetection/index.vue | 26 +-
.../components/jointDebugList/index.vue | 22 +-
.../components/monitorpoint/addForm.vue | 306 ++++----
.../components/monitorpoint/detail.vue | 2 +-
.../components/monitorpoint/index.vue | 20 +-
.../components/terminainal/addForm.vue | 464 ++++++-------
.../components/terminainal/index.vue | 22 +-
.../terminainal/uploadATemplate.vue | 8 +-
.../terminalNetworkDetection/index.vue | 4 +-
src/views/pqs/supervise/testRun/index.vue | 511 ++++++++++++--
src/views/pqs/supervise/testRun/testRun.vue | 518 ++------------
.../electricalEnergy/components/NewlyAdd.vue | 0
.../electricalEnergy/components/audit.vue | 0
.../electricalEnergy/components/detail.vue | 0
.../electricalEnergy/components/filling.vue | 0
.../components/maintenance.vue | 0
.../electricalEnergy/components/process1.vue | 0
.../electricalEnergy/components/process2.vue | 0
.../electricalEnergy/components/process3.vue | 0
.../electricalEnergy/components/process4.vue | 0
.../electricalEnergy/components/recording.vue | 0
.../components1/complaints.vue | 2 +-
.../components1/complaintsDetail.vue | 0
.../components1/form/alarmList.vue | 2 +-
.../components1/form/complaintsForm.vue | 0
.../components1/form/detail.vue | 0
.../components1/form/testQuestionsForm.vue | 0
.../electricalEnergy/components1/online.vue | 8 +-
.../components1/testQuestions.vue | 2 +-
.../electricalEnergy/components1/testRun.vue | 2 +-
.../components1/testRunDetail.vue | 0
.../electricalEnergy/index.vue | 0
.../harmonicSurvey/components/occupancy.vue | 0
.../harmonicSurvey/components/outcome.vue | 0
.../harmonicSurvey/components/planAdd.vue | 46 +-
.../harmonicSurvey/components/planAudits.vue | 0
.../harmonicSurvey/components/planManage.vue | 2 +-
.../harmonicSurvey/components/planTest.vue | 0
.../harmonicSurvey/components/testManage.vue | 2 +-
.../harmonicSurvey/detail.vue | 0
.../harmonicSurvey/index.vue | 0
.../harmonicSurvey/plan/detail.vue | 0
.../harmonicSurvey/test/detail.vue | 0
.../home/index.vue | 0
.../interfere/components/network/audit.vue | 0
.../interfere/components/network/index.vue | 0
.../interfere/components/normal.vue | 0
.../normalizationManager/addForm.vue | 0
.../components/detailsItem.vue | 0
.../normalizationManager/detail.vue | 0
.../interferenceUserTable.vue | 128 ++--
.../normalization/detail.vue | 233 ++-----
.../normalizationManager/programReview.vue | 85 +--
.../interfere/components/report.vue | 0
.../interfere/components/undocumented/add.vue | 0
.../components/undocumented/addForm.vue | 430 +++++++-----
.../components/undocumented/addUpload.vue | 0
.../components/undocumented/audit.vue | 0
.../components/undocumented/detail.vue | 68 +-
.../components/undocumented/index.vue | 4 +-
.../interfere/index.vue | 0
.../plan/components/addForm.vue | 0
.../plan/components/detail.vue | 0
.../plan/components/effectProblem/addForm.vue | 0
.../plan/components/effectProblem/index.vue | 0
.../plan/index.vue | 0
.../retire/components/equipment.vue | 0
.../retire/detail.vue | 0
.../retire/deviceQuitPopup.vue | 0
.../retire/index.vue | 0
.../retire/monitor.vue | 10 +-
.../retire/monitorQuitPopup.vue | 0
.../retire/terminal.vue | 6 +-
.../technology/components/alarm.vue | 7 +-
.../technology/components/earlyWarn.vue | 6 +-
.../technology/components/listForm.vue | 0
.../technology/components/overview.vue | 0
.../technology/components/technology.vue | 0
.../technology/detail.vue | 0
.../technology/feedbackPopup.vue | 23 +-
.../technology/index.vue | 0
.../terminal/components/add.vue | 0
.../terminal/components/cycleEch.vue | 0
.../terminal/components/cycleTab.vue | 0
.../terminal/components/detail.vue | 0
.../terminal/components/deviceLedgerTable.vue | 10 +-
.../components/interferenceUserTable.vue | 45 +-
.../components/monitorLedgerTable.vue | 30 +-
.../terminal/components/networkEch.vue | 0
.../terminal/components/networkTab.vue | 0
.../components/sensitiveUserPopup.vue | 43 +-
.../components/sensitiveUserTable.vue | 2 +-
.../terminal/components/substationLedger.vue | 6 +
.../terminal/index.vue | 0
.../components/cycleDetection/detail.vue | 0
.../components/cycleDetection/form.vue | 0
.../components/cycleDetection/index.vue | 6 +-
.../components/jointDebugList/debug.vue | 0
.../components/jointDebugList/detail.vue | 0
.../components/jointDebugList/index.vue | 4 +-
.../components/monitorpoint/addForm.vue | 306 ++++----
.../components/monitorpoint/detail.vue | 2 +-
.../components/monitorpoint/index.vue | 4 +-
.../components/terminainal/addForm.vue | 464 +++++++------
.../components/terminainal/detail.vue | 0
.../components/terminainal/index.vue | 6 +-
.../terminainal/uploadATemplate.vue | 8 +-
.../terminalNetworkDetection/index.vue | 4 +-
.../testRun/components/detail.vue | 0
.../testRun/index.vue} | 0
.../testRun/testRun.vue} | 11 +-
src/views/system/bpm/task/done/index.vue | 18 +-
src/views/system/bpm/task/index.vue | 2 +-
.../system/bpm/task/myInstance/index.vue | 18 +-
src/views/system/bpm/task/todo/index.vue | 28 +-
types/table.d.ts | 2 +
153 files changed, 4208 insertions(+), 3480 deletions(-)
create mode 100644 src/views/pqs/supervise/harmonicSurvey/components/sensitiveUserPopup.vue
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/NewlyAdd.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/audit.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/filling.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/maintenance.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/process1.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/process2.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/process3.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/process4.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components/recording.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/complaints.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/complaintsDetail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/form/alarmList.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/form/complaintsForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/form/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/form/testQuestionsForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/online.vue (96%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/testQuestions.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/testRun.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/components1/testRunDetail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/electricalEnergy/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/occupancy.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/outcome.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/planAdd.vue (90%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/planAudits.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/planManage.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/planTest.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/components/testManage.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/plan/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/harmonicSurvey/test/detail.vue (100%)
rename src/views/pqs/{supervise => supervise_hn}/home/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/network/audit.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/network/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normal.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/addForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/components/detailsItem.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/interferenceUserTable.vue (81%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/normalization/detail.vue (80%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/normalizationManager/programReview.vue (82%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/report.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/add.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/addForm.vue (74%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/addUpload.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/audit.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/detail.vue (92%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/components/undocumented/index.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/interfere/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/plan/components/addForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/plan/components/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/plan/components/effectProblem/addForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/plan/components/effectProblem/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/plan/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/components/equipment.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/deviceQuitPopup.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/monitor.vue (97%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/monitorQuitPopup.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/retire/terminal.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/components/alarm.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/components/earlyWarn.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/components/listForm.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/components/overview.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/components/technology.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/feedbackPopup.vue (93%)
rename src/views/pqs/{supervise_jb => supervise_hn}/technology/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/add.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/cycleEch.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/cycleTab.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/deviceLedgerTable.vue (93%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/interferenceUserTable.vue (93%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/monitorLedgerTable.vue (82%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/networkEch.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/networkTab.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/sensitiveUserPopup.vue (88%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/sensitiveUserTable.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/components/substationLedger.vue (89%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminal/index.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/cycleDetection/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/cycleDetection/form.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/cycleDetection/index.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/jointDebugList/debug.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/jointDebugList/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/jointDebugList/index.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/monitorpoint/addForm.vue (68%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/monitorpoint/detail.vue (99%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/monitorpoint/index.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/terminainal/addForm.vue (67%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/terminainal/detail.vue (100%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/terminainal/index.vue (98%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/components/terminainal/uploadATemplate.vue (94%)
rename src/views/pqs/{supervise_jb => supervise_hn}/terminalNetworkDetection/index.vue (95%)
rename src/views/pqs/{supervise_jb => supervise_hn}/testRun/components/detail.vue (100%)
rename src/views/pqs/{supervise_jb/testRun/testRun.vue => supervise_hn/testRun/index.vue} (100%)
rename src/views/pqs/{supervise_jb/testRun/index.vue => supervise_hn/testRun/testRun.vue} (97%)
diff --git a/package.json b/package.json
index cfc5aa43..0360164d 100644
--- a/package.json
+++ b/package.json
@@ -12,11 +12,12 @@
},
"dependencies": {
"@ant-design/colors": "^7.0.2",
- "@dataview/datav-vue3": "0.0.0-test.1672506674342",
+
"@element-plus/icons-vue": "^2.3.1",
"@form-create/designer": "^3.1.3",
"@form-create/element-ui": "^3.1.24",
"@fortawesome/fontawesome-free": "^6.5.1",
+ "@kjgl77/datav-vue3": "^1.7.4",
"@vue-office/docx": "^1.6.2",
"@vue-office/excel": "^1.7.8",
"@vue-office/pdf": "^2.0.2",
diff --git a/src/api/supervision-boot/userReport/form.ts b/src/api/supervision-boot/userReport/form.ts
index e756e1af..8c4a402e 100644
--- a/src/api/supervision-boot/userReport/form.ts
+++ b/src/api/supervision-boot/userReport/form.ts
@@ -67,6 +67,16 @@ export const downloadSensitiveReportTemplate = () => {
responseType: 'blob'
})
}
+/**
+ * 下载技术监督模版
+ */
+export const downloadPlanTemplate = () => {
+ return createAxios({
+ url: '/supervision-boot/surveyPlan/downloadPlanTemplate',
+ method: 'GET',
+ responseType: 'blob'
+ })
+}
/**
* 导入敏感及重要用户数据
@@ -90,6 +100,17 @@ export const importSensitiveReportData = (data: any) => {
responseType: 'blob'
})
}
+/**
+ * 批量导入技术监督数据
+ */
+export const importPlanData = (data: any) => {
+ return createAxios({
+ url: '/supervision-boot/surveyPlan/importPlanData',
+ method: 'POST',
+ data: data,
+ responseType: 'blob'
+ })
+}
/**
* 批量导入终端台账入网
diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue
index 015f948f..43383444 100644
--- a/src/components/table/header/index.vue
+++ b/src/components/table/header/index.vue
@@ -63,7 +63,7 @@ interface Props {
showSearch?: boolean
nextFlag?: boolean //控制时间是否可以往后推
theCurrentTime?: boolean //控制时间前3天展示上个月时间
- showReset?: boolean //控制时间前3天展示上个月时间
+ showReset?: boolean //是否显示重置按钮
showExport?: boolean //导出控制
showTimeAll?: boolean //控制时间是否显示
diff --git a/src/components/table/index.vue b/src/components/table/index.vue
index 40a350ca..367d69f8 100644
--- a/src/components/table/index.vue
+++ b/src/components/table/index.vue
@@ -117,13 +117,13 @@ watch(
if (tableStore.table.allFlag) {
tableRef.value?.exportData({
- filename: document.querySelectorAll('.ba-nav-tab.active')[0].textContent || '', // 文件名字
+ filename:tableStore.table.filename|| document.querySelectorAll('.ba-nav-tab.active')[0].textContent || '', // 文件名字
sheetName: 'Sheet1',
type: 'xlsx', //导出文件类型 xlsx 和 csv
useStyle: true,
data: tableStore.table.allData, // 数据源 // 过滤那个字段导出
columnFilterMethod: function (column: any) {
-
+
return !(column.column.title === undefined || column.column.title === '序号' || column.column.title === '操作')
}
})
diff --git a/src/components/tree/pqs/Terminal.vue b/src/components/tree/pqs/Terminal.vue
index e92753fe..58770609 100644
--- a/src/components/tree/pqs/Terminal.vue
+++ b/src/components/tree/pqs/Terminal.vue
@@ -24,24 +24,31 @@ const info = (id: any) => {
if (VITE_FLAG) {
res.data.forEach((item: any) => {
item.icon = 'el-icon-Menu'
+ item.plevel = item.level
item.level = 0
item.children.forEach((item2: any) => {
item2.icon = 'el-icon-HomeFilled'
+
+ item2.plevel = item2.level
item2.level = 100
expanded.value.push(item2.id)
item2.children.forEach((item3: any) => {
item3.icon = 'el-icon-CollectionTag'
+ item3.plevel = item3.level
item3.level = 200
item3.children.forEach((item4: any) => {
item4.icon = 'el-icon-Flag'
+ item4.plevel = item4.level
item4.level = 300
// arr.push(item4)
item4.children.forEach((item5: any) => {
item5.icon = 'el-icon-OfficeBuilding'
+ item5.plevel = item5.level
item5.level = 300
// item5.id = item4.id
item5.children.forEach((item6: any) => {
item6.icon = 'el-icon-HelpFilled'
+ item6.plevel = 4
if (item6.name == '电网侧' && item6.children.length == 0) {
item6.level = 400
} else {
@@ -49,15 +56,19 @@ const info = (id: any) => {
}
item6.children.forEach((item7: any) => {
item7.icon = 'el-icon-Film'
+ item7.plevel = item7.level
item7.level = 400
item7.children.forEach((item8: any) => {
item8.icon = 'el-icon-Collection'
+ item8.plevel = item8.level
item8.level = 500
item8.children.forEach((item9: any) => {
item9.icon = 'el-icon-Share'
+ item9.plevel = item9.level
item9.level = 600
item9.children.forEach((item10: any) => {
item10.icon = 'el-icon-Location'
+ item10.plevel = item10.level
item10.level = 700
})
})
@@ -90,7 +101,7 @@ const info = (id: any) => {
item4.children.forEach((item5: any) => {
item5.icon = 'el-icon-OfficeBuilding'
item5.plevel = item5.level
- item5.level = (item5.level == 7 ? 4 : item5.level+1) * 100
+ item5.level = (item5.level == 7 ? 4 : item5.level + 1) * 100
item5.children.forEach((item6: any) => {
item6.icon = 'el-icon-Film'
item6.plevel = item6.level
diff --git a/src/utils/echartMethod.ts b/src/utils/echartMethod.ts
index 17843d69..a3d4bbae 100644
--- a/src/utils/echartMethod.ts
+++ b/src/utils/echartMethod.ts
@@ -3,9 +3,50 @@ const dataProcessing = (arr: any[]) => {
.filter(item => typeof item === 'number' || (typeof item === 'string' && !isNaN(parseFloat(item))))
.map(item => (typeof item === 'number' ? item : parseFloat(item)))
}
+const calculateValue = (o:number,value: number, num: number, isMin: boolean) => {
+ if (value === 0) {
+ return 0
+ }else if(value>0&& Math.abs(value)<1 && isMin==true){
+ return 0
+ }else if(value>-1&& value<0 && isMin==false){
+ return 0
+ }
+ let base
+ if (Math.abs(o) >= 100) {
+ base = 100
+ } else if (Math.abs(o) >= 10) {
+ base = 10
+ } else if (Math.abs(o) >= 1) {
+ base = 1
+ } else {
+ base = 0.1
+ }
+ let calculatedValue
+ if (isMin) {
+ if (value < 0) {
+ calculatedValue = value + num * value
+ } else {
+ calculatedValue = value - num * value
+ }
+ } else {
+ if (value < 0) {
+ calculatedValue = value - num * value
+ } else {
+ calculatedValue = value + num * value
+ }
+ }
+ if (base === 0.1) {
+ return parseFloat(calculatedValue.toFixed(1))
+ } else if (isMin) {
+ return Math.floor(calculatedValue / base) * base
+ } else {
+ return Math.ceil(calculatedValue / base) * base
+ }
+}
// 处理y轴最大最小值
export const yMethod = (arr: any) => {
+ let num = 0.2
let numList = dataProcessing(arr)
let maxValue = 0
let minValue = 0
@@ -13,32 +54,76 @@ export const yMethod = (arr: any) => {
let min = 0
maxValue = Math.max(...numList)
minValue = Math.min(...numList)
- if (maxValue > 1000 || minValue < -1000) {
- max = Math.ceil(maxValue / 100) * 100
- if (minValue == 0) {
- min = 0
- } else {
- min = Math.floor(minValue / 100) * 100
- }
- } else if (maxValue < 60 && minValue > 40) {
- max = 60
- min = 40
- } else if (maxValue == minValue && maxValue < 10 && minValue > 0) {
- max = Math.ceil(maxValue / 10) * 10
- min = Math.floor(minValue / 10) * 10
- } else if (maxValue == minValue && maxValue != 0 && minValue != 0) {
- max = Math.ceil(maxValue / 10 + 1) * 10
- min = Math.floor(minValue / 10 - 1) * 10
- } else {
- max = Math.ceil(maxValue / 10) * 10
- min = Math.floor(minValue / 10) * 10
- }
+ const o=maxValue-minValue
+ min = calculateValue( o,minValue, num, true)
+ max = calculateValue(o,maxValue, num, false)
+ // if (-100 >= minValue) {
+ // min = Math.floor((minValue + num * minValue) / 100) * 100
+ // } else if (-10 >= minValue && minValue > -100) {
+ // min = Math.floor((minValue + num * minValue) / 10) * 10
+ // } else if (-1 >= minValue && minValue > -10) {
+ // min = Math.floor(minValue + num * minValue)
+ // } else if (0 > minValue && minValue > -1) {
+ // min = parseFloat((minValue + num * minValue).toFixed(1))
+ // } else if (minValue == 0) {
+ // min = 0
+ // } else if (0 < minValue && minValue < 1) {
+ // min = parseFloat((minValue - num * minValue).toFixed(1))
+ // } else if (1 <= minValue && minValue < 10) {
+ // min = Math.floor(minValue - num * minValue)
+ // } else if (10 <= minValue && minValue < 100) {
+ // min = Math.floor((minValue - num * minValue) / 10) * 10
+ // } else if (100 <= minValue) {
+ // min = Math.floor((minValue - num * minValue) / 100) * 100
+ // }
+
+ // if (-100 >= maxValue) {
+ // max = Math.ceil((maxValue - num * maxValue) / 100) * 100
+ // } else if (-10 >= maxValue && maxValue > -100) {
+ // max = Math.ceil((maxValue - num * maxValue) / 10) * 10
+ // } else if (-1 >= maxValue && maxValue > -10) {
+ // max = Math.ceil(maxValue - num * maxValue)
+ // } else if (0 > maxValue && maxValue > -1) {
+ // max = parseFloat((maxValue - num * maxValue).toFixed(1))
+ // } else if (maxValue == 0) {
+ // max = 0
+ // } else if (0 < maxValue && maxValue < 1) {
+ // max = parseFloat((maxValue + num * maxValue).toFixed(1))
+ // } else if (1 <= maxValue && maxValue < 10) {
+ // max = Math.ceil(maxValue + num * maxValue)
+ // } else if (10 <= maxValue && maxValue < 100) {
+ // max = Math.ceil((maxValue + num * maxValue) / 10) * 10
+ // } else if (100 <= maxValue) {
+ // max = Math.ceil((maxValue + num * maxValue) / 100) * 100
+ // }
+
+ // if (maxValue > 1000 || minValue < -1000) {
+ // max = Math.ceil(maxValue / 100) * 100
+ // if (minValue == 0) {
+ // min = 0
+ // } else {
+ // min = Math.floor(minValue / 100) * 100
+ // }
+ // } else if (maxValue < 60 && minValue > 40) {
+ // max = 60
+ // min = 40
+ // } else if (maxValue == minValue && maxValue < 10 && minValue > 0) {
+ // max = Math.ceil(maxValue / 10) * 10
+ // min = Math.floor(minValue / 10) * 10
+ // } else if (maxValue == minValue && maxValue != 0 && minValue != 0) {
+ // max = Math.ceil(maxValue / 10 + 1) * 10
+ // min = Math.floor(minValue / 10 - 1) * 10
+ // } else {
+ // max = Math.ceil(maxValue / 10) * 10
+ // min = Math.floor(minValue / 10) * 10
+ // }
+
+ // if (maxValue > 0 && maxValue < 1) {
+ // max = 1
+ // } else if (max == 0 && minValue > -1 && minValue < 0) {
+ // min = -1
+ // }
- if (maxValue > 0 && maxValue < 1) {
- max = 1
- } else if (max == 0 && minValue > -1 && minValue < 0) {
- min = -1
- }
return [min, max]
}
diff --git a/src/utils/tableStore.ts b/src/utils/tableStore.ts
index 129b7f42..f525f1d6 100644
--- a/src/utils/tableStore.ts
+++ b/src/utils/tableStore.ts
@@ -8,6 +8,7 @@ import { filtration } from './tableMethod'
interface TableStoreParams {
url: string // 请求地址
pk?: string
+ filename?: any // 导出文件名
column: TableColumn[]
params?: anyObj
method?: Method // 请求方式
@@ -18,12 +19,14 @@ interface TableStoreParams {
publicHeight?: number //计算高度
resetCallback?: () => void // 重置
loadCallback?: () => void // 接口调用后的回调
+ exportProcessingData?:() => void //导出处理数据
beforeSearchFun?: () => void // 接口调用前的回调
}
export default class TableStore {
public url
public pk
+ public filename: any = null
public method: Method
public initData: any = null
public isWebPaging = false
@@ -42,9 +45,11 @@ export default class TableStore {
pageNum: 1,
pageSize: 20
},
+ filename:null,
loading: true,
column: [],
loadCallback: null,
+ exportProcessingData: null,
resetCallback: null,
beforeSearchFun: null,
height: '',
@@ -57,12 +62,14 @@ export default class TableStore {
this.paramsPOST = options.paramsPOST || false
this.isWebPaging = options.isWebPaging || false
this.method = options.method || 'GET'
+ this.table.filename = options.filename || null
this.table.column = options.column
this.showPage = options.showPage !== false
this.table.publicHeight = options.publicHeight || 0
this.table.resetCallback = options.resetCallback || null
this.table.loadCallback = options.loadCallback || null
+ this.table.exportProcessingData = options.exportProcessingData || null
this.table.beforeSearchFun = options.beforeSearchFun || null
Object.assign(this.table.params, options.params)
this.table.height = mainHeight(20 + (this.showPage ? 58 : 0) + this.table.publicHeight).height as string
@@ -206,6 +213,7 @@ export default class TableStore {
)
).then(res => {
this.table.allData = filtration(res.data.records || res.data)
+ this.table.exportProcessingData && this.table.exportProcessingData()
this.table.allFlag = data.showAllFlag || true
})
}
diff --git a/src/views/pqs/business/terminal/deviceter/index.vue b/src/views/pqs/business/terminal/deviceter/index.vue
index 10462406..dcc13058 100644
--- a/src/views/pqs/business/terminal/deviceter/index.vue
+++ b/src/views/pqs/business/terminal/deviceter/index.vue
@@ -1318,7 +1318,7 @@