|
|
@ -2,23 +2,27 @@
|
|
|
|
<el-drawer title="基本信息" v-model="dialogVisible" size="60%">
|
|
|
|
<el-drawer title="基本信息" v-model="dialogVisible" size="60%">
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions :column="1" border>
|
|
|
|
<el-descriptions-item label="电价模型名称" min-width="120">
|
|
|
|
<el-descriptions-item label="电价模型名称" min-width="120">
|
|
|
|
{{ oldlist.name || "--" }}
|
|
|
|
{{ oldlist.name || '--' }}
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions-item>
|
|
|
|
</el-descriptions>
|
|
|
|
</el-descriptions>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<div class="title_info" style="margin-top: 20px">换电站基础信息 </div>
|
|
|
|
<div class="title_info" style="margin-top: 20px">换电站基础信息 </div>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="stationList" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="stationList"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="换电站编码" align="center" prop="stationNo" />
|
|
|
|
<el-table-column label="换电站编码" align="center" prop="stationNo" width="120" />
|
|
|
|
<el-table-column label="换电站名称" align="center" prop="stationName" />
|
|
|
|
<el-table-column label="换电站名称" align="center" prop="stationName" width="120" />
|
|
|
|
<el-table-column label="换电站识别号" align="center" prop="stationSn" />
|
|
|
|
<el-table-column label="换电站识别号" align="center" prop="stationSn" width="120" />
|
|
|
|
<!-- <el-table-column label="地理位置" align="center" prop="stationLocation" /> -->
|
|
|
|
<!-- <el-table-column label="地理位置" align="center" prop="stationLocation" /> -->
|
|
|
|
<el-table-column label="站类型" align="center" prop="stationType" >
|
|
|
|
<el-table-column label="站类型" align="center" prop="stationType" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.SITECLASSIFICATION_TYPE" :value="scope.row.stationType" />
|
|
|
|
<dict-tag :type="DICT_TYPE.SITECLASSIFICATION_TYPE" :value="scope.row.stationType" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -29,11 +33,21 @@
|
|
|
|
<el-table-column label="区域名称" align="center" prop="areaName" />
|
|
|
|
<el-table-column label="区域名称" align="center" prop="areaName" />
|
|
|
|
<!-- <el-table-column label="区域编号" align="center" prop="areaCode" /> -->
|
|
|
|
<!-- <el-table-column label="区域编号" align="center" prop="areaCode" /> -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="营运时间" align="center" prop="operationTime" width="180"
|
|
|
|
<el-table-column
|
|
|
|
:formatter="dateFormatter"/>
|
|
|
|
label="营运时间"
|
|
|
|
<el-table-column label="投放时间 " align="center" prop="launchTime" width="180"
|
|
|
|
align="center"
|
|
|
|
:formatter="dateFormatter"/>
|
|
|
|
prop="operationTime"
|
|
|
|
<el-table-column label="联系方式-手机号 " align="center" prop="contactWay" />
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
:formatter="dateFormatter"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
label="投放时间 "
|
|
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
|
|
prop="launchTime"
|
|
|
|
|
|
|
|
width="180"
|
|
|
|
|
|
|
|
:formatter="dateFormatter"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column label="联系方式-手机号 " align="center" prop="contactWay" width="130" />
|
|
|
|
<!-- <el-table-column label="服务电话" align="center" prop="serviceTel" /> -->
|
|
|
|
<!-- <el-table-column label="服务电话" align="center" prop="serviceTel" /> -->
|
|
|
|
<!-- <el-table-column label="联系方式-邮箱地址 " align="center" prop="email" /> -->
|
|
|
|
<!-- <el-table-column label="联系方式-邮箱地址 " align="center" prop="email" /> -->
|
|
|
|
<el-table-column label="负责人" align="center" prop="principal" />
|
|
|
|
<el-table-column label="负责人" align="center" prop="principal" />
|
|
|
@ -45,7 +59,7 @@
|
|
|
|
<!-- <el-table-column label="站型类型 " align="center" prop="siteType" /> -->
|
|
|
|
<!-- <el-table-column label="站型类型 " align="center" prop="siteType" /> -->
|
|
|
|
<!-- 1:公共; 50:个人; 100:公交(专用)101:环卫(专用)102:物流(专用)103: 出租⻋(专用)104:分时租赁(专用)105:小区共享(专用)106:单位(专用)107:私人共享桩(专用)255:其他 -->
|
|
|
|
<!-- 1:公共; 50:个人; 100:公交(专用)101:环卫(专用)102:物流(专用)103: 出租⻋(专用)104:分时租赁(专用)105:小区共享(专用)106:单位(专用)107:私人共享桩(专用)255:其他 -->
|
|
|
|
<!-- <el-table-column label="服务车型" align="center" prop="matchVehicles" /> -->
|
|
|
|
<!-- <el-table-column label="服务车型" align="center" prop="matchVehicles" /> -->
|
|
|
|
<el-table-column label="是否全天营业" align="center" prop="oahFlag" >
|
|
|
|
<el-table-column label="是否全天营业" align="center" prop="oahFlag" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.OAHFLAG_STATUS" :value="scope.row.oahFlag" />
|
|
|
|
<dict-tag :type="DICT_TYPE.OAHFLAG_STATUS" :value="scope.row.oahFlag" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -55,53 +69,55 @@
|
|
|
|
<!-- 站点分类 1:充电站;2:换电站;3:充换电一体站 -->
|
|
|
|
<!-- 站点分类 1:充电站;2:换电站;3:充换电一体站 -->
|
|
|
|
<!-- <el-table-column label="建设场所" align="center" prop="constructionSite" /> -->
|
|
|
|
<!-- <el-table-column label="建设场所" align="center" prop="constructionSite" /> -->
|
|
|
|
<!-- construction建设场所 1:居民区;2:公共机构;3:企事业单位;4:写字楼;5:工业园区;6:交通枢纽;7:大型文体设施;8:城市绿地;9:大型建筑配建停车场;10:路边停车位;11:城际高速服务区;2:风景区;13:公交场站;14:加油加气站;15:出租车;255:其他 -->
|
|
|
|
<!-- construction建设场所 1:居民区;2:公共机构;3:企事业单位;4:写字楼;5:工业园区;6:交通枢纽;7:大型文体设施;8:城市绿地;9:大型建筑配建停车场;10:路边停车位;11:城际高速服务区;2:风景区;13:公交场站;14:加油加气站;15:出租车;255:其他 -->
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enable" >
|
|
|
|
<el-table-column label="是否启用" align="center" prop="enable" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.enable" />
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.enable" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 0:未启用 1:启用 -->
|
|
|
|
<!-- 0:未启用 1:启用 -->
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="计费电量" align="center" prop="electricitySource" >
|
|
|
|
<el-table-column label="计费电量" align="center" prop="electricitySource" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricitySource" />
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricitySource" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 计费电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- 计费电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<el-table-column label="电价电量" align="center" prop="electricityPriceSource" >
|
|
|
|
<el-table-column label="电价电量" align="center" prop="electricityPriceSource" width="100">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.ELECTRICITYSOURCE" :value="scope.row.electricityPriceSource" />
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:type="DICT_TYPE.ELECTRICITYSOURCE"
|
|
|
|
|
|
|
|
:value="scope.row.electricityPriceSource"
|
|
|
|
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 电价电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- 电价电量:1默认(最大值),2:soc差值;3:soe差值,4:交流,5:直流,6:0 -->
|
|
|
|
<!-- <el-table-column label="soc差值来源" align="center" prop="socSource" /> -->
|
|
|
|
<!-- <el-table-column label="soc差值来源" align="center" prop="socSource" /> -->
|
|
|
|
<!-- soc差值来源:1:换电时的SOC;2:充电时的SOC -->
|
|
|
|
<!-- soc差值来源:1:换电时的SOC;2:充电时的SOC -->
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</ContentWrap>
|
|
|
|
</ContentWrap>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<div class="title_info" style="margin-top: 20px">电价模型月份信息 </div>
|
|
|
|
<div class="title_info" style="margin-top: 20px">电价模型月份信息 </div>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="electricityDate" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="electricityDate"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="电价模型名称 " align="center" prop="name" />
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" width="120" />
|
|
|
|
<el-table-column label="时段数量 " align="center" prop="periodsAmount" />
|
|
|
|
<el-table-column label="时段数量" align="center" prop="periodsAmount" />
|
|
|
|
<el-table-column label="开始日期 " align="center" prop="startDate" width="180"
|
|
|
|
<el-table-column label="开始日期" align="center" prop="startDate" width="180" />
|
|
|
|
/>
|
|
|
|
<el-table-column label="结束日期" align="center" prop="endDate" width="180" />
|
|
|
|
<el-table-column label="结束日期 " align="center" prop="endDate" width="180"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="尖电价(分)" align="center" prop="theTipPrice" />
|
|
|
|
<el-table-column label="尖电价(分)" align="center" prop="theTipPrice" />
|
|
|
|
<el-table-column label="峰电价(分)" align="center" prop="peakPrice" />
|
|
|
|
<el-table-column label="峰电价(分)" align="center" prop="peakPrice" />
|
|
|
|
<el-table-column label="平电价(分)" align="center" prop="flatPrice" />
|
|
|
|
<el-table-column label="平电价(分)" align="center" prop="flatPrice" />
|
|
|
|
<el-table-column label="谷电价(分)" align="center" prop="theValleyPrice" />
|
|
|
|
<el-table-column label="谷电价(分)" align="center" prop="theValleyPrice" />
|
|
|
|
|
|
|
|
<el-table-column label="是否启用" align="center" prop="status">
|
|
|
|
<el-table-column label="是否启用" align="center" prop="status" >
|
|
|
|
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.status" />
|
|
|
|
<dict-tag :type="DICT_TYPE.MODEL_TIME_STATUS" :value="scope.row.status" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -110,15 +126,20 @@
|
|
|
|
<!-- <el-table-column label="数据来源" align="center" prop="source" /> -->
|
|
|
|
<!-- <el-table-column label="数据来源" align="center" prop="source" /> -->
|
|
|
|
<!-- :0:云平台;1;三方运营商 -->
|
|
|
|
<!-- :0:云平台;1;三方运营商 -->
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</ContentWrap>
|
|
|
|
</ContentWrap>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<div class="title_info" style="margin-top: 20px">电价模型小时信息 </div>
|
|
|
|
<div class="title_info" style="margin-top: 20px">电价模型小时信息 </div>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
<!-- table -->
|
|
|
|
<!-- table -->
|
|
|
|
<ContentWrap>
|
|
|
|
<ContentWrap>
|
|
|
|
<el-table :data="electricityTimeList" :stripe="true" :show-overflow-tooltip="true" :header-cell-style="{
|
|
|
|
<el-table
|
|
|
|
|
|
|
|
:data="electricityTimeList"
|
|
|
|
|
|
|
|
:stripe="true"
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
:header-cell-style="{
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
backgroundColor: '#eff4fa'
|
|
|
|
}">
|
|
|
|
}"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" />
|
|
|
|
<el-table-column label="电价模型名称" align="center" prop="name" />
|
|
|
|
<el-table-column label="类型" align="center" prop="type">
|
|
|
|
<el-table-column label="类型" align="center" prop="type">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
@ -126,38 +147,35 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<!-- 1尖2峰3平4谷 -->
|
|
|
|
<!-- 1尖2峰3平4谷 -->
|
|
|
|
<el-table-column label="尖电价开始时刻" align="center" prop="startTime" width="180"
|
|
|
|
<el-table-column label="尖电价开始时刻" align="center" prop="startTime" width="180" />
|
|
|
|
/>
|
|
|
|
<el-table-column label="尖电价结束时刻" align="center" prop="endTime" width="180" />
|
|
|
|
<el-table-column label="尖电价结束时刻" align="center" prop="endTime" width="180"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</ContentWrap>
|
|
|
|
</ContentWrap>
|
|
|
|
<br/>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-drawer>
|
|
|
|
</el-drawer>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
|
|
|
import { ElectricityPriceApi, ElectricityPriceVO } from '@/api/operationsManagement/electricityPriceModel'
|
|
|
|
import {
|
|
|
|
/** 电价模型 表单 */
|
|
|
|
ElectricityPriceApi,
|
|
|
|
defineOptions({ name: 'ElectricityPriceForm' })
|
|
|
|
ElectricityPriceVO
|
|
|
|
|
|
|
|
} from '@/api/operationsManagement/electricityPriceModel'
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
/** 电价模型 表单 */
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
defineOptions({ name: 'ElectricityPriceForm' })
|
|
|
|
|
|
|
|
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
const electricityDate = ref([])
|
|
|
|
|
|
|
|
const oldlist = ref([])
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
const stationList = ref([])
|
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
|
|
|
const electricityTimeList = ref([])
|
|
|
|
const electricityDate = ref([])
|
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
|
const oldlist = ref([])
|
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改
|
|
|
|
const stationList = ref([])
|
|
|
|
const formData = ref({
|
|
|
|
const electricityTimeList = ref([])
|
|
|
|
|
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
|
|
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改
|
|
|
|
|
|
|
|
const formData = ref({
|
|
|
|
id: undefined,
|
|
|
|
id: undefined,
|
|
|
|
name: undefined,
|
|
|
|
name: undefined,
|
|
|
|
theTipPrice: undefined,
|
|
|
|
theTipPrice: undefined,
|
|
|
@ -166,15 +184,15 @@
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
operatorId: undefined,
|
|
|
|
operatorId: undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const formRules = reactive({
|
|
|
|
const formRules = reactive({
|
|
|
|
name: [{ required: true, message: '电价模型名称不能为空', trigger: 'blur' }],
|
|
|
|
name: [{ required: true, message: '电价模型名称不能为空', trigger: 'blur' }]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
|
|
|
|
|
|
|
|
/** 打开弹窗 */
|
|
|
|
/** 打开弹窗 */
|
|
|
|
const open = async (id?: number) => {
|
|
|
|
const open = async (id?: number) => {
|
|
|
|
dialogVisible.value = true
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
|
|
|
|
|
|
|
resetForm()
|
|
|
|
resetForm()
|
|
|
@ -194,12 +212,12 @@
|
|
|
|
formLoading.value = false
|
|
|
|
formLoading.value = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交表单 */
|
|
|
|
/** 提交表单 */
|
|
|
|
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
|
|
|
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
|
|
|
const submitForm = async () => {
|
|
|
|
const submitForm = async () => {
|
|
|
|
// 校验表单
|
|
|
|
// 校验表单
|
|
|
|
await formRef.value.validate()
|
|
|
|
await formRef.value.validate()
|
|
|
|
// 提交请求
|
|
|
|
// 提交请求
|
|
|
@ -210,18 +228,16 @@
|
|
|
|
await ElectricityPriceApi.createElectricityPrice(data)
|
|
|
|
await ElectricityPriceApi.createElectricityPrice(data)
|
|
|
|
message.success(t('common.createSuccess'))
|
|
|
|
message.success(t('common.createSuccess'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
dialogVisible.value = false
|
|
|
|
// 发送操作成功的事件
|
|
|
|
// 发送操作成功的事件
|
|
|
|
emit('success')
|
|
|
|
emit('success')
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
formLoading.value = false
|
|
|
|
formLoading.value = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 重置表单 */
|
|
|
|
/** 重置表单 */
|
|
|
|
const resetForm = () => {
|
|
|
|
const resetForm = () => {
|
|
|
|
formData.value = {
|
|
|
|
formData.value = {
|
|
|
|
id: undefined,
|
|
|
|
id: undefined,
|
|
|
|
name: undefined,
|
|
|
|
name: undefined,
|
|
|
@ -231,8 +247,8 @@
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
theValleyPrice: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
periodsAmount: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
remark: undefined,
|
|
|
|
operatorId: undefined,
|
|
|
|
operatorId: undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
formRef.value?.resetFields()
|
|
|
|
formRef.value?.resetFields()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|