添加工程信息管理 页面
This commit is contained in:
@@ -481,7 +481,33 @@
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
class="form-item"
|
||||
label="日志等级:"
|
||||
:prop="'deviceInfoList[' + bIndex + '].devLogLevel'"
|
||||
>
|
||||
<el-select
|
||||
clearable
|
||||
filterable
|
||||
v-model="busItem.devLogLevel"
|
||||
placeholder="请选择日志等级"
|
||||
style="width: 100%"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 3 && pageStatus == 3) ||
|
||||
((nodeLevel == 2 || (nodeLevel == 1 && pageStatus == 2)) &&
|
||||
pageStatus == 2)
|
||||
)
|
||||
"
|
||||
>
|
||||
<el-option
|
||||
v-for="value in logList"
|
||||
:key="value.value"
|
||||
:label="value.label"
|
||||
:value="value.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
class="form-item"
|
||||
label="排序:"
|
||||
@@ -939,7 +965,7 @@
|
||||
class="form-item"
|
||||
label="是否治理:"
|
||||
:prop="'lineInfoList[' + lIndex + '].govern'"
|
||||
:rules="{ required: true, message: '请选择是否治理', trigger: 'blur' }"
|
||||
:rules="{ required: true, message: '请选择是否治理', trigger: 'change' }"
|
||||
>
|
||||
<el-select
|
||||
clearable
|
||||
@@ -985,6 +1011,35 @@
|
||||
<el-option label="退运" :value="4" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
class="form-item"
|
||||
label="日志等级:"
|
||||
:prop="'lineInfoList[' + lIndex + '].lineLogLevel'"
|
||||
:rules="{ required: true, message: '请选择日志等级', trigger: 'change' }"
|
||||
>
|
||||
<!-- (0:运行;1:检修;2:停运;3:调试;4:退运) -->
|
||||
<el-select
|
||||
clearable
|
||||
filterable
|
||||
v-model="lineItem.lineLogLevel"
|
||||
placeholder="请选择日志等级"
|
||||
:disabled="
|
||||
!(
|
||||
(nodeLevel == 4 && pageStatus == 3) ||
|
||||
((nodeLevel == 3 || (nodeLevel == 2 && pageStatus == 2)) &&
|
||||
pageStatus == 2)
|
||||
)
|
||||
"
|
||||
>
|
||||
<el-option
|
||||
v-for="value in logList"
|
||||
:key="value.value"
|
||||
:label="value.label"
|
||||
:value="value.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -1159,6 +1214,24 @@ const lineSpaceArr = ref([
|
||||
{ name: '5分钟', value: 5 },
|
||||
{ name: '10分钟', value: 10 }
|
||||
])
|
||||
const logList = ref([
|
||||
{
|
||||
value: 'DEBUG',
|
||||
label: 'DEBUG'
|
||||
},
|
||||
{
|
||||
value: 'NORMAL',
|
||||
label: 'NORMAL'
|
||||
},
|
||||
{
|
||||
value: 'WARN',
|
||||
label: 'WARN'
|
||||
},
|
||||
{
|
||||
value: 'ERROR',
|
||||
label: 'ERROR'
|
||||
}
|
||||
])
|
||||
//工程
|
||||
// const engineeringParam = ref({
|
||||
// city: '',
|
||||
@@ -1179,6 +1252,7 @@ interface DeviceInfo {
|
||||
devModel: string
|
||||
devType: string
|
||||
devAccessMethod: string
|
||||
devLogLevel: string
|
||||
mac: string
|
||||
ndid: string
|
||||
nodeId: string
|
||||
@@ -1203,6 +1277,7 @@ interface LineInfo {
|
||||
monitorObj: string
|
||||
position: string
|
||||
govern: string | number
|
||||
lineLogLevel: string
|
||||
runStatus: string | number
|
||||
basicCapacity: number
|
||||
shortCircuitCapacity: number
|
||||
@@ -1555,6 +1630,7 @@ const add = () => {
|
||||
devModel: '',
|
||||
devType: '',
|
||||
devAccessMethod: 'CLD',
|
||||
devLogLevel: 'WARN',
|
||||
mac: '',
|
||||
ndid: '',
|
||||
nodeId: '',
|
||||
@@ -1583,6 +1659,7 @@ const add = () => {
|
||||
monitorObj: '',
|
||||
position: '',
|
||||
govern: 0,
|
||||
lineLogLevel: 'WARN',
|
||||
runStatus: 0,
|
||||
basicCapacity: 0,
|
||||
shortCircuitCapacity: 0,
|
||||
@@ -1695,8 +1772,9 @@ 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,
|
||||
nodeId: currentDevice.nodeId,
|
||||
cntractNo: currentDevice.cntractNo,
|
||||
@@ -1760,6 +1838,7 @@ const updateLineFunc = (id: any) => {
|
||||
monitorObj: currentLine.monitorObj || '',
|
||||
position: currentLine.position || '',
|
||||
govern: currentLine.govern,
|
||||
lineLogLevel: currentLine.lineLogLevel,
|
||||
runStatus: currentLine.runStatus,
|
||||
basicCapacity: currentLine.basicCapacity || 0,
|
||||
shortCircuitCapacity: currentLine.shortCircuitCapacity || 0,
|
||||
@@ -1925,6 +2004,7 @@ const next = async () => {
|
||||
devModel: '',
|
||||
devType: '',
|
||||
devAccessMethod: 'CLD',
|
||||
devLogLevel: 'WARN',
|
||||
mac: '',
|
||||
ndid: '',
|
||||
nodeId: '',
|
||||
@@ -1957,6 +2037,7 @@ const next = async () => {
|
||||
monitorObj: '',
|
||||
position: '',
|
||||
govern: 0,
|
||||
lineLogLevel:'WARN',
|
||||
runStatus: 0,
|
||||
basicCapacity: 0,
|
||||
shortCircuitCapacity: 0,
|
||||
@@ -2361,6 +2442,8 @@ const resetAllForms = () => {
|
||||
device.devModel = ''
|
||||
device.devType = ''
|
||||
device.devAccessMethod = 'CLD'
|
||||
device.devLogLevel = 'WARN'
|
||||
|
||||
device.mac = ''
|
||||
device.nodeId = ''
|
||||
device.cntractNo = ''
|
||||
@@ -2382,6 +2465,7 @@ const resetAllForms = () => {
|
||||
line.monitorObj = ''
|
||||
line.position = ''
|
||||
line.govern = 0
|
||||
line.lineLogLevel = 'WARN'
|
||||
line.runStatus = 0
|
||||
line.basicCapacity = 0
|
||||
line.shortCircuitCapacity = 0
|
||||
@@ -2480,6 +2564,7 @@ const submitData = () => {
|
||||
devModel: currentDevice.devModel,
|
||||
devType: currentDevice.devType,
|
||||
devAccessMethod: currentDevice.devAccessMethod,
|
||||
devLogLevel: currentDevice.devLogLevel,
|
||||
mac: currentDevice.mac,
|
||||
nodeId: currentDevice.nodeId,
|
||||
cntractNo: currentDevice.cntractNo,
|
||||
@@ -2550,6 +2635,7 @@ const submitData = () => {
|
||||
monitorObj: currentLine.monitorObj,
|
||||
position: currentLine.position,
|
||||
govern: currentLine.govern,
|
||||
lineLogLevel: currentLine.lineLogLevel,
|
||||
runStatus: currentLine.runStatus,
|
||||
basicCapacity: currentLine.basicCapacity,
|
||||
shortCircuitCapacity: currentLine.shortCircuitCapacity,
|
||||
@@ -2664,6 +2750,7 @@ const handleBusBarTabsEdit = (targetName: any, action: any) => {
|
||||
devModel: '',
|
||||
devType: '',
|
||||
devAccessMethod: 'CLD',
|
||||
devLogLevel: 'WARN',
|
||||
mac: '',
|
||||
ndid: '',
|
||||
nodeId: '',
|
||||
@@ -2740,6 +2827,7 @@ const handleLineTabsEdit = (targetName: any, action: any) => {
|
||||
monitorObj: '',
|
||||
position: '',
|
||||
govern: 0,
|
||||
lineLogLevel: 'WARN',
|
||||
runStatus: 0,
|
||||
basicCapacity: 0,
|
||||
shortCircuitCapacity: 0,
|
||||
|
||||
Reference in New Issue
Block a user