修改 承载能力bug 完成自定义报表
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user