mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
后管页面新增 推送设备告警信息
This commit is contained in:
@@ -39,3 +39,11 @@ export function notificationStationFee(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function notificationAlarmInfo(data) {
|
||||
return request({
|
||||
url: '/thirdparty/notification/notificationAlarmInfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -192,6 +192,29 @@
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-card class="box-card" style="margin: 20px 20px 0 20px;" shadow="hover">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>推送设备告警信息</span>
|
||||
<el-button style="float: right; padding: 3px 0" type="text"
|
||||
@click="clickNotificationAlarmInfo">推送</el-button>
|
||||
</div>
|
||||
<el-form ref="notificationForm" :model="notificationAlarmForm" label-width="20%">
|
||||
<el-form-item label="充电桩枪口号" class="getCard">
|
||||
<el-input v-model="notificationAlarmForm.pileConnectorCode"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="枪口状态" class="getCard">
|
||||
<el-input v-model="notificationAlarmForm.status"></el-input>
|
||||
</el-form-item>
|
||||
<!--<el-form-item>
|
||||
<el-button type="primary" @click="clickNotificationStationStatus">推送设备状态</el-button>
|
||||
</el-form-item>-->
|
||||
</el-form>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-drawer>
|
||||
</el-tab-pane>
|
||||
|
||||
@@ -206,10 +229,11 @@ import { addSecret, getSecret, selectStationList, updateSecret } from "@/api/thi
|
||||
import { generateRandomID, isEmptyString } from "@/utils/common";
|
||||
import Template from "@/views/billing/template";
|
||||
import {
|
||||
notificationChargeOrderInfo,
|
||||
notificationConnectorChargeStatus, notificationStationFee,
|
||||
notificationStationInfo,
|
||||
notificationStationStatus
|
||||
notificationAlarmInfo,
|
||||
notificationChargeOrderInfo,
|
||||
notificationConnectorChargeStatus, notificationStationFee,
|
||||
notificationStationInfo,
|
||||
notificationStationStatus
|
||||
} from "@/api/thirdParty/notification";
|
||||
|
||||
export default {
|
||||
@@ -224,6 +248,7 @@ export default {
|
||||
form: {},
|
||||
notificationStationId: null,
|
||||
notificationForm: {},
|
||||
notificationAlarmForm: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
stationList: [],
|
||||
@@ -295,6 +320,14 @@ export default {
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
});
|
||||
},
|
||||
// 点击推送设备告警信息
|
||||
clickNotificationAlarmInfo() {
|
||||
this.notificationAlarmForm.stationId = this.notificationStationId;
|
||||
this.notificationAlarmForm.platformType = this.platformType;
|
||||
notificationAlarmInfo(this.notificationAlarmForm).then(response => {
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
});
|
||||
},
|
||||
// 点击打开 通知菜单
|
||||
clickDrawer(stationId, stationName) {
|
||||
// console.log("站点id:", stationId);
|
||||
|
||||
Reference in New Issue
Block a user