|
|
@ -5,20 +5,20 @@
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>换电策略设置</span>
|
|
|
|
<span>{{ $t('message.system_base_config.strategy_set') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item">
|
|
|
|
<div class="form-item">
|
|
|
|
<label class="label">换电SOC阈值:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.swapping_soc') }}:</label>
|
|
|
|
<el-input-number v-model="ChooseSpace.swapSoc" />
|
|
|
|
<el-input-number v-model="ChooseSpace.swapSoc" />
|
|
|
|
<label class="label">充电SOC阈值:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.charge_soc') }}:</label>
|
|
|
|
<el-input-number v-model="ChooseSpace.chargeSoc" />
|
|
|
|
<el-input-number v-model="ChooseSpace.chargeSoc" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<el-popconfirm title="确定要设置策略吗?" @confirm="SetChooseSpace">
|
|
|
|
<el-popconfirm :title="$t('message.system_base_config.isset_strategy')" @confirm="SetChooseSpace">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">保存</el-button>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">{{ $t('message.system_base_config.save') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -51,22 +51,22 @@
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>换电站营业状态</span>
|
|
|
|
<span>{{ $t('message.system_base_config.Business_status') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item">
|
|
|
|
<div class="form-item">
|
|
|
|
<label class="label">换电站营业状态:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Business_status') }}:</label>
|
|
|
|
<el-radio-group v-model="ChooseSpace.stationStatus">
|
|
|
|
<el-radio-group v-model="ChooseSpace.stationStatus">
|
|
|
|
<el-radio :value="1">营运中</el-radio>
|
|
|
|
<el-radio :value="1">{{ $t('message.system_base_config.In_operation') }}</el-radio>
|
|
|
|
<el-radio :value="2">歇业中</el-radio>
|
|
|
|
<el-radio :value="2">{{ $t('message.system_base_config.close_business') }}</el-radio>
|
|
|
|
<el-radio :value="3">设备维护状态</el-radio>
|
|
|
|
<el-radio :value="3">{{ $t('message.system_base_config.maintenance_status') }}</el-radio>
|
|
|
|
<el-radio :value="4">暂停营业</el-radio>
|
|
|
|
<el-radio :value="4">{{ $t('message.system_base_config.Suspension') }}</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<el-popconfirm title="确定要设置换电站营业状态吗?" @confirm="SetChooseSpace">
|
|
|
|
<el-popconfirm :title="$t('message.system_base_config.isset_the_operation')" @confirm="SetChooseSpace">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">保存</el-button>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">{{ $t('message.system_base_config.save') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -78,11 +78,11 @@
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>电价模型</span>
|
|
|
|
<span>{{ $t('message.system_base_config.Electricity_price_model') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item" style="margin-bottom: 14px">
|
|
|
|
<div class="form-item" style="margin-bottom: 14px">
|
|
|
|
<label class="label">电价模型:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Electricity_price_model') }}:</label>
|
|
|
|
<el-tag type="success">{{ ChooseSpace.ceid }}</el-tag>
|
|
|
|
<el-tag type="success">{{ ChooseSpace.ceid }}</el-tag>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
@ -91,11 +91,11 @@
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>运营版本号</span>
|
|
|
|
<span>{{ $t('message.system_base_config.Operation_version_number') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item" style="margin-bottom: 14px">
|
|
|
|
<div class="form-item" style="margin-bottom: 14px">
|
|
|
|
<label class="label">运营版本号:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Operation_version_number') }}:</label>
|
|
|
|
<el-tag type="success">{{ ChooseSpace.oid }}</el-tag>
|
|
|
|
<el-tag type="success">{{ ChooseSpace.oid }}</el-tag>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
@ -149,20 +149,20 @@
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>换电运营模式</span>
|
|
|
|
<span>{{ $t('message.system_base_config.swapping_operation_mode') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item">
|
|
|
|
<div class="form-item">
|
|
|
|
<label class="label"> 运营状态变换模式:</label>
|
|
|
|
<label class="label"> {{ $t('message.system_base_config.status_transition_mode') }}:</label>
|
|
|
|
<el-radio-group v-model="ChooseSpace.stationWay">
|
|
|
|
<el-radio-group v-model="ChooseSpace.stationWay">
|
|
|
|
<el-radio :value="1">自动</el-radio>
|
|
|
|
<el-radio :value="1">{{ $t('message.system_base_config.auto') }}</el-radio>
|
|
|
|
<el-radio :value="2">手动</el-radio>
|
|
|
|
<el-radio :value="2">{{ $t('message.system_base_config.Manual') }}</el-radio>
|
|
|
|
</el-radio-group>
|
|
|
|
</el-radio-group>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<div style="margin-top: 10px">
|
|
|
|
<el-popconfirm title="确定要设置运营模式吗?" @confirm="SetChooseSpace">
|
|
|
|
<el-popconfirm :title="$t('message.system_base_config.isset_operation_mode')" @confirm="SetChooseSpace">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">保存</el-button>
|
|
|
|
<el-button type="primary" style="margin-left: 10px">{{ $t('message.system_base_config.save') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -197,33 +197,33 @@
|
|
|
|
<el-card style="margin-top: 20px">
|
|
|
|
<el-card style="margin-top: 20px">
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>电价配置</span>
|
|
|
|
<span>{{ $t('message.system_base_config.price_configuration') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item">
|
|
|
|
<div class="form-item">
|
|
|
|
<el-button type="danger" style="margin-left: 10px" @click="post_array">新增</el-button>
|
|
|
|
<el-button type="danger" style="margin-left: 10px" @click="post_array">{{ $t('message.system_base_config.add') }}</el-button>
|
|
|
|
<el-popconfirm title="确定要设置下发吗?" @confirm="ElecPriceForCharge">
|
|
|
|
<el-popconfirm :title="$t('message.system_base_config.isset_lssued')" @confirm="ElecPriceForCharge">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="success" style="margin-left: 10px">下发</el-button>
|
|
|
|
<el-button type="success" style="margin-left: 10px">{{ $t('message.system_base_config.lssued') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-for="(item, index) in priceArray" class="form-item" :key="index" style="margin-top: 10px">
|
|
|
|
<div v-for="(item, index) in priceArray" class="form-item" :key="index" style="margin-top: 10px">
|
|
|
|
<label class="label">区间时间:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Interval_time') }}</label>
|
|
|
|
<el-time-picker use24-hours @change="onChange" format="HH:mm:ss" v-model="item.startTime" valueFormat="HH:mm:ss" />
|
|
|
|
<el-time-picker use24-hours @change="onChange" format="HH:mm:ss" v-model="item.startTime" valueFormat="HH:mm:ss" />
|
|
|
|
<label class="label">—</label>
|
|
|
|
<label class="label">—</label>
|
|
|
|
<el-time-picker format="HH:mm:ss" use24-hours @change="onChange" v-model="item.endTime" valueFormat="HH:mm:ss" />
|
|
|
|
<el-time-picker format="HH:mm:ss" use24-hours @change="onChange" v-model="item.endTime" valueFormat="HH:mm:ss" />
|
|
|
|
<label class="label">电价类型:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Electricity_price_type') }}</label>
|
|
|
|
<el-select v-model="item.type" placeholder="请选择" style="width: 120px">
|
|
|
|
<el-select v-model="item.type" :placeholder="$t('message.system_base_config.Please_choose')" style="width: 120px">
|
|
|
|
<el-option v-for="(item, index) in fElecType_list" :key="index" :label="item.label" :value="item.value"></el-option>
|
|
|
|
<el-option v-for="(item, index) in fElecType_list" :key="index" :label="item.label" :value="item.value"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<label class="label">电价:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Electricity_price') }}</label>
|
|
|
|
<el-input-number v-model="item.price" />
|
|
|
|
<el-input-number v-model="item.price" />
|
|
|
|
<el-button type="primary" style="margin-left: 10px" @click="SetElectPrice_every(item)">保存</el-button>
|
|
|
|
<el-button type="primary" style="margin-left: 10px" @click="SetElectPrice_every(item)">{{ $t('message.system_base_config.save') }}</el-button>
|
|
|
|
<el-popconfirm title="确定要删除此条数据吗?" @confirm="Delete_apiGetRemovePriceConfig(item)">
|
|
|
|
<el-popconfirm :title=" $t('message.system_base_config.isset_delete')" @confirm="Delete_apiGetRemovePriceConfig(item)">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="danger" style="margin-left: 10px">删除</el-button>
|
|
|
|
<el-button type="danger" style="margin-left: 10px">{{ $t('message.system_base_config.delete') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -234,26 +234,26 @@
|
|
|
|
<el-card style="margin-top: 20px">
|
|
|
|
<el-card style="margin-top: 20px">
|
|
|
|
<template #header>
|
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="card-header">
|
|
|
|
<span>区间时间电池设置</span>
|
|
|
|
<span>{{ $t('message.system_base_config.battery_setting') }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<div class="form-item">
|
|
|
|
<div class="form-item">
|
|
|
|
<el-button type="danger" style="margin-left: 10px" @click="post_array_battery">新增</el-button>
|
|
|
|
<el-button type="danger" style="margin-left: 10px" @click="post_array_battery">{{ $t('message.system_base_config.add') }}</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-for="(item, index) in battery_list" class="form-item" :key="index" style="margin-top: 10px">
|
|
|
|
<div v-for="(item, index) in battery_list" class="form-item" :key="index" style="margin-top: 10px">
|
|
|
|
<label class="label">区间时间:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.Interval_time') }}</label>
|
|
|
|
<el-time-picker use24-hours @change="onChange" format="HH:mm:ss" v-model="item.startTime" valueFormat="HH:mm:ss" />
|
|
|
|
<el-time-picker use24-hours @change="onChange" format="HH:mm:ss" v-model="item.startTime" valueFormat="HH:mm:ss" />
|
|
|
|
<label class="label">—</label>
|
|
|
|
<label class="label">—</label>
|
|
|
|
<el-time-picker format="HH:mm:ss" use24-hours @change="onChange" v-model="item.endTime" valueFormat="HH:mm:ss" />
|
|
|
|
<el-time-picker format="HH:mm:ss" use24-hours @change="onChange" v-model="item.endTime" valueFormat="HH:mm:ss" />
|
|
|
|
<label class="label">模型ID:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.model_id') }}</label>
|
|
|
|
<el-input-number v-model="item.modelId" />
|
|
|
|
<el-input-number v-model="item.modelId" />
|
|
|
|
<label class="label">电池数量:</label>
|
|
|
|
<label class="label">{{ $t('message.system_base_config.battery_number') }}</label>
|
|
|
|
<el-input-number v-model="item.batteryCount" />
|
|
|
|
<el-input-number v-model="item.batteryCount" />
|
|
|
|
<el-button type="primary" style="margin-left: 10px" @click="SetElectBattery_every(item)">保存</el-button>
|
|
|
|
<el-button type="primary" style="margin-left: 10px" @click="SetElectBattery_every(item)">{{ $t('message.system_base_config.save') }}</el-button>
|
|
|
|
<el-popconfirm title="确定要删除此条数据吗?" @confirm="Delete_ElectBattery_every(item)">
|
|
|
|
<el-popconfirm :title="$t('message.system_base_config.isset_delete')" @confirm="Delete_ElectBattery_every(item)">
|
|
|
|
<template #reference>
|
|
|
|
<template #reference>
|
|
|
|
<el-button type="danger" style="margin-left: 10px">删除</el-button>
|
|
|
|
<el-button type="danger" style="margin-left: 10px">{{ $t('message.system_base_config.delete') }}</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-popconfirm>
|
|
|
|
</el-popconfirm>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -261,34 +261,43 @@
|
|
|
|
<div></div>
|
|
|
|
<div></div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
<!-- 电价弹框 -->
|
|
|
|
<!-- 电价弹框 -->
|
|
|
|
<el-dialog title="新增区间电价" v-model="batterdialogVisible" width="20%" :close-on-click-modal="false">
|
|
|
|
<el-dialog :title="$t('message.system_base_config.addinter_price')" v-model="batterdialogVisible" width="20%" :close-on-click-modal="false">
|
|
|
|
<el-form :model="Electricity" ref="ruleFormRef" label-width="auto">
|
|
|
|
<el-form :model="Electricity" ref="ruleFormRef" label-width="auto">
|
|
|
|
<el-row :gutter="35">
|
|
|
|
<el-row :gutter="35">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item label="区间开始时间:" prop="startTime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
<el-form-item
|
|
|
|
<el-time-picker v-model="Electricity.startTime" format="HH:mm:ss" value-format="HH:mm:ss" placeholder="开始时间" style="width: 100%"> </el-time-picker>
|
|
|
|
:label="$t('message.system_base_config.interval_start_time')"
|
|
|
|
|
|
|
|
prop="startTime"
|
|
|
|
|
|
|
|
:rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-time-picker v-model="Electricity.startTime" format="HH:mm:ss" value-format="HH:mm:ss" :placeholder="$t('message.system_base_config.start_time')" style="width: 100%">
|
|
|
|
|
|
|
|
</el-time-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item label="区间结束时间:" prop="endTime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
<el-form-item :label="$t('message.system_base_config.interval_end_time')" prop="endTime" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
<el-time-picker v-model="Electricity.endTime" format="HH:mm:ss" value-format="HH:mm:ss" placeholder="结束时间" style="width: 100%"> </el-time-picker>
|
|
|
|
<el-time-picker v-model="Electricity.endTime" format="HH:mm:ss" value-format="HH:mm:ss" :placeholder="$t('message.system_base_config.end_time')" style="width: 100%"> </el-time-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item
|
|
|
|
<el-form-item
|
|
|
|
label="区间电价:"
|
|
|
|
:label="$t('message.system_base_config.interval_price')"
|
|
|
|
prop="price"
|
|
|
|
prop="price"
|
|
|
|
:rules="[
|
|
|
|
:rules="[
|
|
|
|
{ required: true, message: '不能为空', trigger: 'blur' },
|
|
|
|
{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: '**为正整数', trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: $t('message.system_base_config.positive_integer'), trigger: 'blur' },
|
|
|
|
]"
|
|
|
|
]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-input-number v-model="Electricity.price" style="width: 100%" min="0" />
|
|
|
|
<el-input-number v-model="Electricity.price" style="width: 100%" min="0" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item label="电价类型:" prop="type" :rules="[{ required: true, message: '不能为空', trigger: 'change' }]">
|
|
|
|
<el-form-item
|
|
|
|
<el-select v-model="Electricity.type" placeholder="请选择" style="width: 100%">
|
|
|
|
:label="$t('message.system_base_config.Electricity_price_type')"
|
|
|
|
|
|
|
|
prop="type"
|
|
|
|
|
|
|
|
:rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'change' }]"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-select v-model="Electricity.type" :placeholder="$t('message.system_base_config.Please_choose')" style="width: 100%">
|
|
|
|
<el-option v-for="(item, index) in fElecType_list" :key="index" :label="item.label" :value="item.value"></el-option>
|
|
|
|
<el-option v-for="(item, index) in fElecType_list" :key="index" :label="item.label" :value="item.value"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -297,32 +306,37 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
|
<span class="dialog-footer">
|
|
|
|
<span class="dialog-footer">
|
|
|
|
<el-button @click="resest_price">取 消</el-button>
|
|
|
|
<el-button @click="resest_price">{{ $t('message.system_base_config.cancel') }}</el-button>
|
|
|
|
<el-button type="primary" @click="SetElectPrice">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="SetElectPrice">{{ $t('message.system_base_config.submit') }}</el-button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
<!-- 电池弹框 -->
|
|
|
|
<!-- 电池弹框 -->
|
|
|
|
<el-dialog title="新增区间电池" v-model="batterdialogVisible_battery" width="20%" :close-on-click-modal="false">
|
|
|
|
<el-dialog :title="$t('message.system_base_config.add_interval_battery')" v-model="batterdialogVisible_battery" width="20%" :close-on-click-modal="false">
|
|
|
|
<el-form :model="batter_form" ref="ruleFormRef_battery" label-width="auto">
|
|
|
|
<el-form :model="batter_form" ref="ruleFormRef_battery" label-width="auto">
|
|
|
|
<el-row :gutter="35">
|
|
|
|
<el-row :gutter="35">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item label="区间开始时间:" prop="startTime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
<el-form-item
|
|
|
|
<el-time-picker v-model="batter_form.startTime" format="HH:mm:ss" value-format="HH:mm:ss" placeholder="开始时间" style="width: 100%"> </el-time-picker>
|
|
|
|
:label="$t('message.system_base_config.interval_start_time')"
|
|
|
|
|
|
|
|
prop="startTime"
|
|
|
|
|
|
|
|
:rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-time-picker v-model="batter_form.startTime" format="HH:mm:ss" value-format="HH:mm:ss" :placeholder="$t('message.system_base_config.start_time')" style="width: 100%">
|
|
|
|
|
|
|
|
</el-time-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item label="区间结束时间:" prop="endTime" :rules="[{ required: true, message: '不能为空', trigger: 'blur' }]">
|
|
|
|
<el-form-item :label="$t('message.system_base_config.interval_end_time')" prop="endTime" :rules="[{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' }]">
|
|
|
|
<el-time-picker v-model="batter_form.endTime" format="HH:mm:ss" value-format="HH:mm:ss" placeholder="结束时间" style="width: 100%"> </el-time-picker>
|
|
|
|
<el-time-picker v-model="batter_form.endTime" format="HH:mm:ss" value-format="HH:mm:ss" :placeholder="$t('message.system_base_config.end_time')" style="width: 100%"> </el-time-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item
|
|
|
|
<el-form-item
|
|
|
|
label="模型ID:"
|
|
|
|
:label="$t('message.system_base_config.model_id')"
|
|
|
|
prop="modelId"
|
|
|
|
prop="modelId"
|
|
|
|
:rules="[
|
|
|
|
:rules="[
|
|
|
|
{ required: true, message: '不能为空', trigger: 'blur' },
|
|
|
|
{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: '**为正整数', trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: $t('message.system_base_config.positive_integer'), trigger: 'blur' },
|
|
|
|
]"
|
|
|
|
]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-input-number v-model="batter_form.modelId" style="width: 100%" min="0" />
|
|
|
|
<el-input-number v-model="batter_form.modelId" style="width: 100%" min="0" />
|
|
|
@ -330,11 +344,11 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
|
|
<el-form-item
|
|
|
|
<el-form-item
|
|
|
|
label="电池数量:"
|
|
|
|
:label="$t('message.system_base_config.battery_number')"
|
|
|
|
prop="batteryCount"
|
|
|
|
prop="batteryCount"
|
|
|
|
:rules="[
|
|
|
|
:rules="[
|
|
|
|
{ required: true, message: '不能为空', trigger: 'blur' },
|
|
|
|
{ required: true, message: $t('message.system_base_config.is_null'), trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: '**为正整数', trigger: 'blur' },
|
|
|
|
{ pattern: /^(\d+|\d*\.\d{1,10})$/, message: $t('message.system_base_config.positive_integer'), trigger: 'blur' },
|
|
|
|
]"
|
|
|
|
]"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-input-number v-model="batter_form.batteryCount" style="width: 100%" min="0" />
|
|
|
|
<el-input-number v-model="batter_form.batteryCount" style="width: 100%" min="0" />
|
|
|
@ -344,8 +358,8 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
|
<span class="dialog-footer">
|
|
|
|
<span class="dialog-footer">
|
|
|
|
<el-button @click="resest_battery">取 消</el-button>
|
|
|
|
<el-button @click="resest_battery">{{ $t('message.system_base_config.cancel') }}</el-button>
|
|
|
|
<el-button type="primary" @click="SetElectBattery">确 定</el-button>
|
|
|
|
<el-button type="primary" @click="SetElectBattery">{{ $t('message.system_base_config.submit') }}</el-button>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
@ -358,6 +372,8 @@ import { ElMessageBox, ElMessage } from 'element-plus';
|
|
|
|
import { SysSystemBaseconfigApi, SysChargeMonitorApi } from '/@/api-services/api';
|
|
|
|
import { SysSystemBaseconfigApi, SysChargeMonitorApi } from '/@/api-services/api';
|
|
|
|
|
|
|
|
|
|
|
|
import { onMounted, reactive, ref } from 'vue';
|
|
|
|
import { onMounted, reactive, ref } from 'vue';
|
|
|
|
|
|
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
|
|
|
|
|
|
|
const ChooseSpace = ref({
|
|
|
|
const ChooseSpace = ref({
|
|
|
|
swapSoc: null,
|
|
|
|
swapSoc: null,
|
|
|
@ -419,9 +435,9 @@ const SetElectPrice = async () => {
|
|
|
|
array.push(Electricity.value);
|
|
|
|
array.push(Electricity.value);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiAddStationElecPriceInfoListPost(array);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiAddStationElecPriceInfoListPost(array);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
resest_price();
|
|
|
|
resest_price();
|
|
|
|
handle_price();
|
|
|
|
handle_price();
|
|
|
@ -441,9 +457,9 @@ const SetElectBattery = async () => {
|
|
|
|
if (!valid) return;
|
|
|
|
if (!valid) return;
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailAddPost(batter_form.value);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailAddPost(batter_form.value);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('新增成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('新增失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
resest_battery();
|
|
|
|
resest_battery();
|
|
|
@ -475,9 +491,9 @@ const SetChooseSpace = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetReplacementStrategyPost(ChooseSpace.value);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetReplacementStrategyPost(ChooseSpace.value);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -489,9 +505,9 @@ const SetLightTime = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetDaytimePost(data);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetDaytimePost(data);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -501,9 +517,9 @@ const SetChangeOperate = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetChargingOperationModePost(data);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetChargingOperationModePost(data);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -514,18 +530,18 @@ const SetBusinessTime = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetBusinessHoursPost(data);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetBusinessHoursPost(data);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const ElecPriceForCharge = async () => {
|
|
|
|
const ElecPriceForCharge = async () => {
|
|
|
|
const response = await getAPI(SysChargeMonitorApi).apiDistributeElecPriceForChargeGet(ChooseSpace.value.ceid);
|
|
|
|
const response = await getAPI(SysChargeMonitorApi).apiDistributeElecPriceForChargeGet(ChooseSpace.value.ceid);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -542,9 +558,9 @@ const SetElectPrice_every = async (item) => {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiUpdateStationElecPriceInfoPost(priceArray.value);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiUpdateStationElecPriceInfoPost(priceArray.value);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error(response.data?.msg || '操作失败');
|
|
|
|
ElMessage.error(response.data?.msg || t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_price();
|
|
|
|
handle_price();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -555,9 +571,9 @@ const SetElectBattery_every = async (item) => {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailUpdatePost(item);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailUpdatePost(item);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error(response.data?.msg || '操作失败');
|
|
|
|
ElMessage.error(response.data?.msg || t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -569,9 +585,9 @@ const Delete_ElectBattery_every = async (item) => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailDeletePost(params);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiBatteryOpModelDetailDeletePost(params);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error(response.data?.msg || '操作失败');
|
|
|
|
ElMessage.error(response.data?.msg || t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
handle_apiBatteryOpModelDetailPost();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -579,9 +595,9 @@ const Delete_ElectBattery_every = async (item) => {
|
|
|
|
const Delete_apiGetRemovePriceConfig = async (item) => {
|
|
|
|
const Delete_apiGetRemovePriceConfig = async (item) => {
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiGetRemovePriceConfig(item.id);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiGetRemovePriceConfig(item.id);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error(response.data?.msg || '操作失败');
|
|
|
|
ElMessage.error(response.data?.msg || t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_price();
|
|
|
|
handle_price();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -591,9 +607,9 @@ const SetChangePattern = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetSwitchingOperaModeReqPost(data);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetSwitchingOperaModeReqPost(data);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -610,9 +626,9 @@ const SetHandoverStationStatus = async () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetSwitchingOperaModeReqPost(data);
|
|
|
|
const response = await getAPI(SysSystemBaseconfigApi).apiSetSwitchingOperaModeReqPost(data);
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
if (response.data.isSuccess) {
|
|
|
|
ElMessage.success('操作成功');
|
|
|
|
ElMessage.success(t('message.system_base_config.Operation_successful'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ElMessage.error('操作失败');
|
|
|
|
ElMessage.error(t('message.system_base_config.Operation_failed'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
handle_getdata();
|
|
|
|
handle_getdata();
|
|
|
|
};
|
|
|
|
};
|
|
|
|