diff --git a/jsowell-ui/src/views/pile/station/pileList.vue b/jsowell-ui/src/views/pile/station/pileList.vue index 8a42345d2..82957ee3b 100644 --- a/jsowell-ui/src/views/pile/station/pileList.vue +++ b/jsowell-ui/src/views/pile/station/pileList.vue @@ -44,8 +44,8 @@ plain icon="el-icon-plus" size="mini" - @click="click" - >批量修改站点 + @click="handleUpdate" + >修改充电桩 批量新增 + >新增充电桩 @@ -123,134 +123,99 @@ /> - + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - @@ -408,7 +373,8 @@ export default { // 选中数组 ids: [], // 是否显示弹出层 - open: false, + openAddDialog: false, + openUpdateDialog: false, // 弹出层标题 title: "", // 充电站详情 @@ -487,7 +453,7 @@ export default { this.getMerchantList(); this.queryStationInfo(); this.title = "批量添加设备"; - this.open = true; + this.openAddDialog = true; this.getModelList(); }, /** 提交按钮 */ @@ -498,13 +464,13 @@ export default { if (this.form.id != null) { updateBasic(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); - this.open = false; + this.openAddDialog = false; this.getPileList(); }); } else { batchAddBasic(this.form).then((response) => { this.$modal.msgSuccess("新增成功"); - this.open = false; + this.openAddDialog = false; this.getPileList(); }); } @@ -559,7 +525,7 @@ export default { // console.log(this.updateData.pileIdList); }, /** 按钮操作 */ - click() { + handleUpdate() { if (this.updateData.pileIdList.length === 0) { return this.$message({ message: "请选择充电桩", @@ -569,18 +535,20 @@ export default { this.getMerchantList(); this.getModelList(); this.reset(); - this.open = true; + this.openUpdateDialog = true; this.title = "更换站点"; }, // 取消按钮 cancel() { - this.open = false; + this.openAddDialog = false; + this.openUpdateDialog = false; this.reset(); this.stationList = []; }, // 点击弹框右上角× handleClose() { - this.open = false; + this.openAddDialog = false; + this.openUpdateDialog = false; this.reset(); this.stationList = []; }, @@ -612,7 +580,7 @@ export default { message: "操作成功", type: "success", }); - this.open = false; + this.openUpdateDialog = false; this.getPileList(); this.stationList = []; })