联调二级评估页面

This commit is contained in:
guanj
2025-08-11 16:13:51 +08:00
parent 8d613f7a57
commit aa3dbb6c5d
22 changed files with 864 additions and 474 deletions

View File

@@ -30,7 +30,7 @@
<div style="height: 200px">
<vxe-table height="auto" :data="form[item.key]" v-bind="defaultAttribute">
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
<vxe-column type="seq" title="序号" width="80px"></vxe-column>
<vxe-column
v-for="(k, index) in item.child"

View File

@@ -1,5 +1,5 @@
<template>
<el-dialog draggable width="1000px" v-model="dialogVisible" :title="title">
<el-dialog draggable width="800px" v-model="dialogVisible" :title="title">
<el-form :inline="false" :model="form" label-width="auto" :rules="rules" ref="formRef">
<el-form-item label="谐波源名称" prop="harmName">
<el-input

View File

@@ -9,7 +9,7 @@
v-model="form[item.field]"
filterable
clearable
placeholder="请选择接入变电站"
placeholder="请选择变压器型号"
>
<el-option
v-for="item in transformer"
@@ -19,7 +19,7 @@
></el-option>
</el-select>
<el-select
v-if="item.field == 'harmId'"
v-else-if="item.field == 'harmId'"
v-model="form[item.field]"
filterable
clearable
@@ -207,12 +207,12 @@ const submit = async () => {
emits('init', 3)
})
}else if (title.value == '新增_冲击负荷') {
await loadParamAdd(form.value).then((res: any) => {
await shockAdd(form.value).then((res: any) => {
ElMessage.success('新增成功')
emits('init', 4)
})
} else if (title.value == '编辑_冲击负荷') {
await loadParamEdit(form.value).then((res: any) => {
await shockEdit(form.value).then((res: any) => {
ElMessage.success('修改成功')
emits('init', 4)
})

View File

@@ -391,4 +391,7 @@ onMounted(() => {
}
}
}
:deep(.el-select) {
min-width: 120px;
}
</style>

View File

@@ -16,7 +16,7 @@
v-loading="item.loading"
>
<vxe-column type="checkbox" width="60"></vxe-column>
<vxe-column type="seq" title="序号" width="60px"></vxe-column>
<vxe-column type="seq" title="序号" width="80px"></vxe-column>
<vxe-column
v-for="(k, index) in item.child"
@@ -186,7 +186,7 @@ const column: any = ref([
title: '冲击负荷类型',
field: 'inpactloadtypeId'
},
{
title: '数量',
field: 'inpactloadNum'
@@ -345,10 +345,11 @@ const formatter = (row: any) => {
} else if (
row.column.field == 'capacitorScale' ||
row.column.field == 'linevoltageScale' ||
row.column.field == 'translowScale'
row.column.field == 'translowScale' ||
row.column.field == 'inpactloadhighScale'|| row.column.field == 'inpactloadlowScale'
) {
const found = voltageleveloption.find((item: any) => item.id == row.cellValue)
return found.name || ''
return found?.name || ''
} else {
return row.cellValue
}