|
@@ -121,12 +121,14 @@ export default {
|
|
|
name: data.list[i].garageName,
|
|
|
label: data.list[i].parkId
|
|
|
})
|
|
|
+ this.nameParkingLotName = data.list[0].garageName;
|
|
|
+ this.mixins_query.parkId = data.list[0].parkId;
|
|
|
+ this.parkingsearch();
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 获取点击的停车场名称
|
|
|
parkingLot (lotname) {
|
|
|
- // console.log('lotname', lotname);
|
|
|
this.nameParkingLotName = lotname;
|
|
|
},
|
|
|
parkingsearch () {
|
|
@@ -142,7 +144,6 @@ export default {
|
|
|
// 开闸
|
|
|
switchOn (row) {
|
|
|
this.$http.post('/sc-community-web/parkingCar/operateChannel', { parkId: this.mixins_query.parkId, type: '0', nodeId: row.id }).then(({ data, status, msg }) => {
|
|
|
- // console.log('status', status);
|
|
|
if (status == 0) {
|
|
|
this.$message.success('开闸成功');
|
|
|
} else {
|
|
@@ -154,7 +155,6 @@ export default {
|
|
|
// 关闸
|
|
|
closeGate (row) {
|
|
|
this.$http.post('/sc-community-web/parkingCar/operateChannel', { parkId: this.mixins_query.parkId, type: '1', nodeId: row.id }).then(({ data, status, msg }) => {
|
|
|
- // console.log('status', status);
|
|
|
if (status == 0) {
|
|
|
this.$message.success('关闸成功');
|
|
|
} else {
|
|
@@ -165,7 +165,6 @@ export default {
|
|
|
// 强制常开
|
|
|
forcedNormallyOpen (row) {
|
|
|
this.$http.post('/sc-community-web/parkingCar/operateChannel', { parkId: this.mixins_query.parkId, type: '2', nodeId: row.id }).then(({ data, status, msg }) => {
|
|
|
- // console.log('status', status);
|
|
|
if (status == 0) {
|
|
|
this.$message.success('强制常开成功');
|
|
|
} else {
|
|
@@ -176,7 +175,6 @@ export default {
|
|
|
// 结束常开
|
|
|
endNormallyOpen (row) {
|
|
|
this.$http.post('/sc-community-web/parkingCar/operateChannel', { parkId: this.mixins_query.parkId, type: '3', nodeId: row.id }).then(({ data, status, msg }) => {
|
|
|
- // console.log('status', status);
|
|
|
if (status == 0) {
|
|
|
this.$message.success('强制常开成功');
|
|
|
} else {
|
|
@@ -186,12 +184,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- // 默认查询
|
|
|
- // this.mixins_dataUrl = '/sc-community-web/parkingCar/findChannelInfo';
|
|
|
- // this.mixins_query = {};
|
|
|
- // this.mixins_search();
|
|
|
- // console.log(this.mixins_query);
|
|
|
-
|
|
|
// 查询停车场名称
|
|
|
this.nameParking();
|
|
|
}
|