update 苏州市平台

This commit is contained in:
Lemon
2024-09-25 15:16:13 +08:00
parent ee84883a9c
commit ee9d2588b1
6 changed files with 133 additions and 54 deletions

View File

@@ -124,9 +124,12 @@
@click="clickNotificationStationStatus">推送</el-button>
</div>
<el-form ref="notificationForm" :model="notificationForm" label-width="20%">
<el-form-item label="充电桩号" class="getCard">
<el-input v-model="notificationForm.pileSn"></el-input>
<el-form-item label="充电桩枪口号" class="getCard">
<el-input v-model="notificationForm.pileConnectorCode"></el-input>
</el-form-item>
<el-form-item label="枪口状态" class="getCard">
<el-input v-model="notificationForm.connectorStatus"></el-input>
</el-form-item>
<!--<el-form-item>
<el-button type="primary" @click="clickNotificationStationStatus">推送设备状态</el-button>
</el-form-item>-->
@@ -144,11 +147,8 @@
@click="clickNotificationConnectorChargeStatus">推送</el-button>
</div>
<el-form ref="notificationForm" :model="notificationForm" label-width="20%">
<el-form-item label="充电枪口编号">
<el-input v-model="notificationForm.pileConnectorCode"></el-input>
</el-form-item>
<el-form-item label="充电枪口状态" class="getCard">
<el-input v-model="notificationForm.status"></el-input>
<el-form-item label="订单编号" class="getCard">
<el-input v-model="notificationForm.orderCode1"></el-input>
</el-form-item>
<!--<el-form-item>
<el-button type="primary" @click="clickNotificationConnectorChargeStatus">推送设备充电中状态</el-button>
@@ -228,6 +228,7 @@ export default {
rules: {},
stationList: [],
platformType: null,
connectorStatus: null,
drawer: false,
direction: 'rtl',
drawerTitle: null,
@@ -253,17 +254,28 @@ export default {
},
// 点出推送设备状态
clickNotificationStationStatus() {
this.notificationForm.stationId = this.notificationStationId;
this.notificationForm.platformType = this.platformType;
notificationStationStatus(this.notificationForm).then(response => {
// this.notificationForm.stationId = this.notificationStationId;
// this.notificationForm.platformType = this.platformType;
const params = {
stationId: this.notificationStationId,
platformType: this.platformType,
pileConnectorCode: this.notificationForm.pileConnectorCode,
status: this.notificationForm.connectorStatus
}
notificationStationStatus(params).then(response => {
this.$modal.msgSuccess("操作成功");
});
},
// 点击推送设备充电中状态
clickNotificationConnectorChargeStatus() {
this.notificationForm.stationId = this.notificationStationId;
this.notificationForm.platformType = this.platformType;
notificationConnectorChargeStatus(this.notificationForm).then(response => {
// this.notificationForm.stationId = this.notificationStationId;
// this.notificationForm.platformType = this.platformType;
const params = {
stationId: this.notificationStationId,
platformType: this.platformType,
orderCode: this.notificationForm.orderCode1
}
notificationConnectorChargeStatus(params).then(response => {
this.$modal.msgSuccess("操作成功");
});
},