<template>
|
<div class="params-container">
|
<el-form
|
ref="ruleForm"
|
size="mini"
|
label-position="top"
|
:model="params"
|
:rules="rules"
|
class="params-dialog bg-white">
|
<el-form-item label="机房名称" prop="stationName">
|
<el-input
|
placeholder="请输入机房名称"
|
v-model="batt.stationName"
|
readonly="readonly"
|
>
|
</el-input>
|
</el-form-item>
|
<el-row :gutter="layout.gutter">
|
<el-col :span="layout.span">
|
<el-form-item label="浮充电压(0~20)" prop="floatChargeVolt">
|
<el-input v-model="params.floatChargeVolt"></el-input>
|
</el-form-item>
|
</el-col>
|
<el-col :span="layout.span">
|
<el-form-item label="后备放电电压(0~20)" prop="disChargeVolt">
|
<el-input v-model="params.disChargeVolt"></el-input>
|
</el-form-item>
|
</el-col>
|
<el-col :span="layout.span">
|
<el-form-item label="放电电压下限(0~20)" prop="dischargeVoltLimit">
|
<el-input v-model="params.dischargeVoltLimit"></el-input>
|
</el-form-item>
|
</el-col>
|
<el-col :span="layout.span">
|
<el-form-item label="单体下限个数(0~20)" prop="monomerLowCount">
|
<el-input v-model="params.monomerLowCount"></el-input>
|
</el-form-item>
|
</el-col>
|
<el-col :span="layout.span">
|
<el-form-item label="自动启动均充周期(0~20)" prop="autoEQChargeStartimeTime">
|
<el-input v-model="params.autoEQChargeStartimeTime"></el-input>
|
</el-form-item>
|
</el-col>
|
<el-col :span="layout.span">
|
<el-form-item label="均充时长(0~20)" prop="autoEQChargetTime">
|
<el-input v-model="params.autoEQChargetTime"></el-input>
|
</el-form-item>
|
</el-col>
|
</el-row>
|
<div class="form-footer">
|
<three-btn @click="getParams(true)">读取</three-btn>
|
<three-btn :disabled="!setTestFlag" @click="submitFrom">设定</three-btn>
|
</div>
|
</el-form>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: "JcParams",
|
props: {
|
batt: {
|
type: Object,
|
default() {
|
return {};
|
},
|
},
|
visible: {
|
type: Boolean,
|
default: false,
|
},
|
},
|
data() {
|
return {
|
layout: {
|
span: 12,
|
gutter: 16,
|
},
|
setTestFlag: false, // 设置参数的状态
|
params: {
|
floatChargeVolt: 0, // 浮充电压
|
disChargeVolt: 0, // 后备放电电压
|
dischargeVoltLimit: 0, // 放电电压下限
|
monomerLowCount: 1, // 单体下限个数
|
autoEQChargeStartimeTime: 1, // 自动启动均充周期
|
autoEQChargetTime: 1, // 均充时长
|
},
|
rules: {}
|
}
|
},
|
methods: {
|
getParams() {
|
|
},
|
submitFrom() {
|
|
}
|
},
|
mounted() {
|
}
|
}
|
</script>
|
|
<style scoped>
|
.params-container {
|
width: 700px;
|
background-color: #ffffff;
|
}
|
</style>
|