修改 承载能力bug 完成自定义报表

This commit is contained in:
GGJ
2024-03-28 15:21:58 +08:00
parent 965b18b540
commit e6b1613d91
13 changed files with 469 additions and 69 deletions

View File

@@ -30,7 +30,7 @@
</el-select>
</el-form-item>
<el-form-item
:label="userShow == 'Power_Station_Users' ? '用户协议容量(MVA)' : '拟接入容量(MVA)'"
:label="userShow == 'Power_Station_Users' ? '拟接入容量(MVA)' : '用户协议容量(MVA)'"
prop="protocolCapacity"
>
<!-- <el-input v-model="form.protocolCapacity" clearable placeholder="请输入用户协议容量" /> -->
@@ -91,18 +91,8 @@ const equipmentRef = ref()
const title = ref('')
const areaList: any = dictData.areaSelect()
const userShow: any = ref('Power_Station_Users')
interface RuleForm {
area: string
city: string
province: string
region: string
regionList: any
protocolCapacity: number
userName: string
userType: string
voltage: string
}
const form = ref<RuleForm>({
const form = ref({
area: '',
city: '',
province: '',
@@ -148,7 +138,7 @@ const tableStore: any = new TableStore({
}
},
{ field: 'area', title: '所属区域' },
// { field: 'area', title: '所属区域' },
{
field: 'voltage',
title: '电压等级(V)',
@@ -292,6 +282,17 @@ const onSubmit = () => {
// 取消
const handleClose = () => {
form.value = {
area: '',
city: '',
province: '',
protocolCapacity: 0,
region: '',
userName: '',
userType: '',
voltage: '',
regionList: []
}
ruleFormRef.value?.resetFields()
dialogVisible.value = false
}