From 1b6b8c8777177436433de67de4979c977f3445d6 Mon Sep 17 00:00:00 2001
From: GGJ <357021191@qq.com>
Date: Fri, 15 Mar 2024 16:31:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E6=89=BF=E8=BD=BD=E8=83=BD?=
=?UTF-8?q?=E5=8A=9B=E8=AF=84=E4=BC=B0=20=E6=8A=80=E6=9C=AF=E7=9B=91?=
=?UTF-8?q?=E7=9D=A3ui=E7=BB=98=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/advance-boot/bearingCapacity.ts | 8 +
.../evaluationList/components/charge.vue | 637 ++++++++++--------
.../evaluationList/components/policy.vue | 76 ++-
.../bearingCapacity/evaluationList/index.vue | 2 +-
.../interfere/components/undocumented.vue | 133 +++-
.../technology/components/overview.vue | 4 +-
.../pqs/supervise/terminal/components/add.vue | 26 +
.../terminal/components/networkTab.vue | 16 +-
8 files changed, 571 insertions(+), 331 deletions(-)
create mode 100644 src/views/pqs/supervise/terminal/components/add.vue
diff --git a/src/api/advance-boot/bearingCapacity.ts b/src/api/advance-boot/bearingCapacity.ts
index 25babf16..b3b5b9cf 100644
--- a/src/api/advance-boot/bearingCapacity.ts
+++ b/src/api/advance-boot/bearingCapacity.ts
@@ -123,3 +123,11 @@ export function getLineDetailData(data) {
params: data
})
}
+// 承载能力评估_充电站、电加热负荷、电气化铁路承载能力评估
+export function carryCapacityEvaluate(data) {
+ return createAxios({
+ url: '/advance-boot/carrycapacity/carryCapacityEvaluate',
+ method: 'POST',
+ data
+ })
+}
diff --git a/src/views/pqs/bearingCapacity/evaluationList/components/charge.vue b/src/views/pqs/bearingCapacity/evaluationList/components/charge.vue
index 2865d4f8..c47e73a8 100644
--- a/src/views/pqs/bearingCapacity/evaluationList/components/charge.vue
+++ b/src/views/pqs/bearingCapacity/evaluationList/components/charge.vue
@@ -1,115 +1,213 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
一级评估:0.02% < 0.1% 满足
-
二级评估:
-
-
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
-
承载能力评估
+
+
+
+
+ 一级评估:0.02% < 0.1%
+
+
+ 满足
+
+ 不满足
+
+
+ 二级评估:
+
+
+
+
+
+
+
+
+
+
+ {{ row.row[row.column.field] }}
+
+
+
+
+
+
+
+
+
+
+
承载能力评估
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue b/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue
index 0e36cdbe..88f33bc1 100644
--- a/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue
+++ b/src/views/pqs/bearingCapacity/evaluationList/components/policy.vue
@@ -4,18 +4,11 @@
一键还原
光伏电站承载能力评估策略
-
+
-
+
{{ row.row.comparisonOperators1
@@ -23,7 +16,7 @@
-
+
{{ row.row.comparisonOperators2
@@ -31,7 +24,7 @@
-
+
{{ row.row.comparisonOperators3
@@ -39,7 +32,7 @@
-
+
{{ row.row.comparisonOperators4
@@ -92,7 +85,7 @@ import { defaultAttribute } from '@/components/table/defaultAttribute'
import { mainHeight } from '@/utils/layout'
import { queyDetail, addCarryc, restore } from '@/api/advance-boot/bearingCapacity'
import { ElMessage, ElMessageBox } from 'element-plus'
-
+import { VxeTablePropTypes } from 'vxe-table'
defineOptions({
name: 'Advancedanalysis/eventcorrelation'
})
@@ -147,32 +140,35 @@ const info = () => {
queyDetail().then(res => {
photovoltaicData.value = []
let title = ['安全', 'III级预警', 'II级预警', 'I级预警']
- // photovoltaicData.value = res.data
- for (let i: number = 1; i < 5; i++) {
- photovoltaicData.value.push({
- ...setData(res.data.filter(item => item.indexResult == i)),
- name: title[i - 1]
+ let p = 0
+ res.data.forEach((item: any, i: any) => {
+ item.capacityStrategysingleVOList.forEach((item1: any, i1: any) => {
+ photovoltaicData.value.push({
+ name: title[i],
+ id: item1.id,
+ result: item.result
+ })
+ p++
+ item1.carryCapacityStrategyIndexVOList.forEach((item2: any) => {
+ photovoltaicData.value[p - 1]['comparisonOperators' + item2.indexResult] = item2.comparisonOperators
+ photovoltaicData.value[p - 1]['count' + item2.indexResult] = item2.count
+ })
})
- }
+ })
+ console.log('🚀 ~ queyDetail ~ photovoltaicData.value:', photovoltaicData.value)
})
}
-// 处理返回数据
-const setData = (row: any) => {
- let data = {}
- row.forEach((item: any) => {
- data[`comparisonOperators${item.result}`] = item.comparisonOperators
- data[`count${item.result}`] = item.count
- })
- return data
-}
+
//
const cells = (row: any, comparisonOperators: any, count: any) => {
form.value = {
comparisonOperators: comparisonOperators,
count: count,
- result: row.columnIndex,
- indexResult: row.rowIndex + 1
+ result: row.row.result,
+ id: row.row.id,
+ indexResult: row.columnIndex
}
+
groupChang(comparisonOperators)
dialogVisible.value = true
}
@@ -200,6 +196,26 @@ const restores = () => {
info()
})
}
+// 通用行合并函数(将相同多列数据合并为一行)
+const mergeRowMethod: VxeTablePropTypes.SpanMethod = ({ row, _rowIndex, column, visibleData }) => {
+ const fields = ['name']
+ const cellValue = row[column.field]
+ if (cellValue && fields.includes(column.field)) {
+ const prevRow = visibleData[_rowIndex - 1]
+ let nextRow = visibleData[_rowIndex + 1]
+ if (prevRow && prevRow[column.field] === cellValue) {
+ return { rowspan: 0, colspan: 0 }
+ } else {
+ let countRowspan = 1
+ while (nextRow && nextRow[column.field] === cellValue) {
+ nextRow = visibleData[++countRowspan + _rowIndex]
+ }
+ if (countRowspan > 1) {
+ return { rowspan: countRowspan, colspan: 1 }
+ }
+ }
+ }
+}
onMounted(() => {
info()
})
diff --git a/src/views/pqs/bearingCapacity/evaluationList/index.vue b/src/views/pqs/bearingCapacity/evaluationList/index.vue
index ad1a92d2..4ef9604e 100644
--- a/src/views/pqs/bearingCapacity/evaluationList/index.vue
+++ b/src/views/pqs/bearingCapacity/evaluationList/index.vue
@@ -206,7 +206,7 @@ const tableStore = new TableStore({
loadCallback: () => {}
})
tableStore.table.params.evaluateType = ''
-tableStore.table.params.userId = dictData.state.area[0].id
+tableStore.table.params.id = dictData.state.area[0].id
provide('tableStore', tableStore)
onMounted(() => {
diff --git a/src/views/pqs/supervise/interfere/components/undocumented.vue b/src/views/pqs/supervise/interfere/components/undocumented.vue
index b62af1a1..c0b18f83 100644
--- a/src/views/pqs/supervise/interfere/components/undocumented.vue
+++ b/src/views/pqs/supervise/interfere/components/undocumented.vue
@@ -24,7 +24,7 @@
新增
- 上传
+ 上传
关联
导出
@@ -72,15 +72,106 @@
取消
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 入网评估报告上传
+
+
+
+
+ 上传文件
+
+
+
+
+ 入网评估结论填报
+
+
+ 是
+ 否
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 保存
+ 取消
+
+
+
+
diff --git a/src/views/pqs/supervise/technology/components/overview.vue b/src/views/pqs/supervise/technology/components/overview.vue
index 446e809d..28d99d04 100644
--- a/src/views/pqs/supervise/technology/components/overview.vue
+++ b/src/views/pqs/supervise/technology/components/overview.vue
@@ -13,8 +13,8 @@
-
-
+
+
diff --git a/src/views/pqs/supervise/terminal/components/add.vue b/src/views/pqs/supervise/terminal/components/add.vue
new file mode 100644
index 00000000..8209c435
--- /dev/null
+++ b/src/views/pqs/supervise/terminal/components/add.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/supervise/terminal/components/networkTab.vue b/src/views/pqs/supervise/terminal/components/networkTab.vue
index f32eb0f5..453125cf 100644
--- a/src/views/pqs/supervise/terminal/components/networkTab.vue
+++ b/src/views/pqs/supervise/terminal/components/networkTab.vue
@@ -36,7 +36,7 @@
- 新增
+ 新增
修改
删除
导出
@@ -46,6 +46,8 @@
+
+
@@ -54,6 +56,7 @@ import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
+import newlyIncreased from './add.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
@@ -75,7 +78,7 @@ const uploadData = [
const dialogVisible = ref(false)
const TableHeaderRef = ref()
-const title = ref('')
+const addRef = ref()
const ruleFormRef = ref()
const tableStore = new TableStore({
@@ -84,7 +87,7 @@ const tableStore = new TableStore({
method: 'POST',
column: [
{ width: '60', type: 'checkbox' },
-
+
{ field: 'orgName', title: '所属单位' },
{ field: 'id', title: '终端编号' },
{ field: 'name', title: '终端名称' },
@@ -140,6 +143,13 @@ tableStore.table.params.searchValue = ''
tableStore.table.params.type = ''
provide('tableStore', tableStore)
+
+const add = () => {
+ addRef.value.open({
+ title: '新增'
+ })
+}
+
onMounted(() => {
tableStore.index()
})