|
|
|
@ -52,9 +52,24 @@
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<a-button type="primary" style="margin-left: 10px" @click="SetLightTime">保存</a-button>
|
|
|
|
|
<a-button type="primary" style="margin-left: 10px" @click="SetLight_handle('1000')">开启</a-button>
|
|
|
|
|
<a-button type="danger" style="margin-left: 10px" @click="SetLight_handle('1001')">关闭</a-button>
|
|
|
|
|
<a-button
|
|
|
|
|
type="primary"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@click="SetLightTime"
|
|
|
|
|
>保存</a-button
|
|
|
|
|
>
|
|
|
|
|
<a-button
|
|
|
|
|
type="primary"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@click="SetLight_handle('1000')"
|
|
|
|
|
>开启</a-button
|
|
|
|
|
>
|
|
|
|
|
<a-button
|
|
|
|
|
type="danger"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@click="SetLight_handle('1001')"
|
|
|
|
|
>关闭</a-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
@ -113,7 +128,7 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<a-row :gutter="20" >
|
|
|
|
|
<a-row :gutter="20">
|
|
|
|
|
<!-- <a-col :span="12">
|
|
|
|
|
<a-card title="换电运营模式">
|
|
|
|
|
<div class="form-item">
|
|
|
|
@ -180,15 +195,43 @@
|
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row> -->
|
|
|
|
|
<a-row :gutter="20" style="margin-top: 20px">
|
|
|
|
|
<a-col :span="24">
|
|
|
|
|
<a-card title="选包策略">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in strategy_list"
|
|
|
|
|
class="form-item"
|
|
|
|
|
:key="index"
|
|
|
|
|
>
|
|
|
|
|
<label class="label">选包名称:</label>
|
|
|
|
|
<a-input v-model="item.name" :disabled="true" style="width: 200px" />
|
|
|
|
|
<label class="label">是否启用:</label>
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="item.enabled"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
style="width: 120px"
|
|
|
|
|
>
|
|
|
|
|
<el-option label="启用" :value="true"></el-option>
|
|
|
|
|
<el-option label="禁用" :value="false"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<label class="label">限制值:</label>
|
|
|
|
|
<a-input-number v-model="item.limitValue" />
|
|
|
|
|
<a-button
|
|
|
|
|
type="primary"
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
@click="handle_UpdateLimitValueById(item)"
|
|
|
|
|
>保存</a-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
|
|
<a-card title="电价配置" style="margin-top: 20px">
|
|
|
|
|
<div class="form-item">
|
|
|
|
|
<!-- <label class="label">默认价格:</label>
|
|
|
|
|
<a-input-number v-model="ElectPrice.defaultElecPrices" /> -->
|
|
|
|
|
<a-button
|
|
|
|
|
type="danger"
|
|
|
|
|
style="margin-left: 20px"
|
|
|
|
|
@click="post_array"
|
|
|
|
|
<a-button type="danger" style="margin-left: 20px" @click="post_array"
|
|
|
|
|
>下发</a-button
|
|
|
|
|
>
|
|
|
|
|
<!-- <a-button
|
|
|
|
@ -387,7 +430,9 @@ import {
|
|
|
|
|
exitUpdateStationElecPriceInfo,
|
|
|
|
|
handleSetOperationStatusChangeMode,
|
|
|
|
|
handleDistributeElecPriceForCharge,
|
|
|
|
|
handleLightControl
|
|
|
|
|
handleLightControl,
|
|
|
|
|
handle_SelectBinRule_getall,
|
|
|
|
|
handle_UpdateLimitValueById,
|
|
|
|
|
} from "@/services/system/base_config";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -446,6 +491,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
all_Times: [],
|
|
|
|
|
strategy_list: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -468,6 +514,23 @@ export default {
|
|
|
|
|
this.StationElecPriceInfoList();
|
|
|
|
|
// this.SmartChargingInfoList()
|
|
|
|
|
// this.SohStrategyInfoList()
|
|
|
|
|
this.handle_SelectBinRule_getall();
|
|
|
|
|
},
|
|
|
|
|
handle_UpdateLimitValueById(data) {
|
|
|
|
|
handle_UpdateLimitValueById(data).then((response) => {
|
|
|
|
|
if (response.data.success) {
|
|
|
|
|
this.$message.info("保存成功");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.data.msg);
|
|
|
|
|
}
|
|
|
|
|
this.handle_SelectBinRule_getall();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handle_SelectBinRule_getall() {
|
|
|
|
|
handle_SelectBinRule_getall().then((response) => {
|
|
|
|
|
// console.log(response,'---');
|
|
|
|
|
this.strategy_list = response.data.data;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
SohStrategyInfoList() {
|
|
|
|
|
GetSohStrategyInfoList().then((result) => {
|
|
|
|
@ -688,7 +751,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
SetLight_handle(val) {
|
|
|
|
|
let str = val == 1000? '确定要开启吗?': '确定要关闭吗?'
|
|
|
|
|
let str = val == 1000 ? "确定要开启吗?" : "确定要关闭吗?";
|
|
|
|
|
this.$confirm({
|
|
|
|
|
title: "提示信息",
|
|
|
|
|
content: str,
|
|
|
|
|