添加工程树

This commit is contained in:
guanj
2026-03-06 09:36:42 +08:00
parent 3fdb41c468
commit 1171d37a86
22 changed files with 1757 additions and 1249 deletions

View File

@@ -12,7 +12,7 @@
</pane>
<pane style="background: #fff">
<div class="device-manage-right">
<el-form :inline="true" class="demo-form-inline" style="height: 42px">
<el-form :inline="true" class="demo-form-inline" style="height: 42px">
<el-form-item style="position: relative; z-index: 2">
<el-button icon="el-icon-Plus" type="primary" @click="add" v-if="nodeLevel != 4">
{{
@@ -77,7 +77,7 @@
<el-form
class="main-form overview_scroll"
:label-position="'right'"
label-width="120px"
label-width="130px"
:inline="true"
ref="mainForm"
:model="formData"
@@ -965,7 +965,11 @@
class="form-item"
label="是否治理:"
:prop="'lineInfoList[' + lIndex + '].govern'"
:rules="{ required: true, message: '请选择是否治理', trigger: 'change' }"
:rules="{
required: true,
message: '请选择是否治理',
trigger: 'change'
}"
>
<el-select
clearable
@@ -1015,7 +1019,11 @@
class="form-item"
label="日志等级:"
:prop="'lineInfoList[' + lIndex + '].lineLogLevel'"
:rules="{ required: true, message: '请选择日志等级', trigger: 'change' }"
:rules="{
required: true,
message: '请选择日志等级',
trigger: 'change'
}"
>
<!-- 0运行1检修2停运3调试4退运 -->
<el-select
@@ -1031,7 +1039,7 @@
)
"
>
<el-option
<el-option
v-for="value in logList"
:key="value.value"
:label="value.label"
@@ -1039,7 +1047,34 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item
class="form-item"
label="是否主要监测点:"
:prop="'lineInfoList[' + lIndex + '].isImportant'"
:rules="{
required: true,
message: '请选择是否主要监测点',
trigger: 'change'
}"
>
<!-- 0运行1检修2停运3调试4退运 -->
<el-select
clearable
filterable
v-model="lineItem.isImportant"
placeholder="请选择是否主要监测点"
:disabled="
!(
(nodeLevel == 4 && pageStatus == 3) ||
((nodeLevel == 3 || (nodeLevel == 2 && pageStatus == 2)) &&
pageStatus == 2)
)
"
>
<el-option label="是" :value="1"></el-option>
<el-option label="否" :value="0"></el-option>
</el-select>
</el-form-item>
</div>
</el-tab-pane>
</el-tabs>
@@ -1277,7 +1312,8 @@ interface LineInfo {
monitorObj: string
position: string
govern: string | number
lineLogLevel: string
lineLogLevel: string
isImportant: string | number
runStatus: string | number
basicCapacity: number
shortCircuitCapacity: number
@@ -1660,6 +1696,7 @@ const add = () => {
position: '',
govern: 0,
lineLogLevel: 'WARN',
isImportant: 0,
runStatus: 0,
basicCapacity: 0,
shortCircuitCapacity: 0,
@@ -1772,7 +1809,7 @@ const updateEquipmentFunc = (id: any) => {
id: id, // 设备ID用于修改
name: currentDevice.name,
devModel: currentDevice.devModel,
devType: currentDevice.devType,
devType: currentDevice.devType,
devAccessMethod: currentDevice.devAccessMethod,
devLogLevel: currentDevice.devLogLevel,
mac: currentDevice.mac,
@@ -1839,6 +1876,7 @@ const updateLineFunc = (id: any) => {
position: currentLine.position || '',
govern: currentLine.govern,
lineLogLevel: currentLine.lineLogLevel,
isImportant: currentLine.isImportant,
runStatus: currentLine.runStatus,
basicCapacity: currentLine.basicCapacity || 0,
shortCircuitCapacity: currentLine.shortCircuitCapacity || 0,
@@ -2004,7 +2042,7 @@ const next = async () => {
devModel: '',
devType: '',
devAccessMethod: 'CLD',
devLogLevel: 'WARN',
devLogLevel: 'WARN',
mac: '',
ndid: '',
nodeId: '',
@@ -2037,7 +2075,8 @@ const next = async () => {
monitorObj: '',
position: '',
govern: 0,
lineLogLevel:'WARN',
lineLogLevel: 'WARN',
isImportant: 0,
runStatus: 0,
basicCapacity: 0,
shortCircuitCapacity: 0,
@@ -2443,7 +2482,7 @@ const resetAllForms = () => {
device.devType = ''
device.devAccessMethod = 'CLD'
device.devLogLevel = 'WARN'
device.mac = ''
device.nodeId = ''
device.cntractNo = ''
@@ -2466,6 +2505,7 @@ const resetAllForms = () => {
line.position = ''
line.govern = 0
line.lineLogLevel = 'WARN'
line.isImportant = 0
line.runStatus = 0
line.basicCapacity = 0
line.shortCircuitCapacity = 0
@@ -2636,6 +2676,7 @@ const submitData = () => {
position: currentLine.position,
govern: currentLine.govern,
lineLogLevel: currentLine.lineLogLevel,
isImportant: currentLine.isImportant,
runStatus: currentLine.runStatus,
basicCapacity: currentLine.basicCapacity,
shortCircuitCapacity: currentLine.shortCircuitCapacity,
@@ -2750,7 +2791,7 @@ const handleBusBarTabsEdit = (targetName: any, action: any) => {
devModel: '',
devType: '',
devAccessMethod: 'CLD',
devLogLevel: 'WARN',
devLogLevel: 'WARN',
mac: '',
ndid: '',
nodeId: '',
@@ -2828,6 +2869,7 @@ const handleLineTabsEdit = (targetName: any, action: any) => {
position: '',
govern: 0,
lineLogLevel: 'WARN',
isImportant: 0,
runStatus: 0,
basicCapacity: 0,
shortCircuitCapacity: 0,