mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-05 02:20:12 +08:00
删除站点
This commit is contained in:
@@ -77,4 +77,13 @@ export function queryStationList(data) {
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询会员组中的站点列表
|
||||
export function removeStationFromMemberGroup(data) {
|
||||
return request({
|
||||
url: '/member/memberGroup/removeStationFromMemberGroup',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@@ -338,7 +338,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { addMember, queryMemberList, preferentialTemplates, queryStationList } from "@/api/member/memberGroup";
|
||||
import { addMember, queryMemberList, preferentialTemplates, queryStationList, removeStationFromMemberGroup } from "@/api/member/memberGroup";
|
||||
import { listOrder } from "@/api/order/order";
|
||||
import { getStationListByMerchantId } from "@/api/pile/station";
|
||||
import { queryStationBillingTemplateList, getTemplate, queryStationPreferentialBillingTemplateList, updateBillingTemplate } from "@/api/billing/template.js";
|
||||
@@ -503,7 +503,6 @@ export default {
|
||||
stationBillingTemplate: null
|
||||
};
|
||||
},
|
||||
|
||||
mounted() {
|
||||
console.log(this.$route.params.groupCode, this.$route.params.groupCode.split('&')[0], this.$route.params.groupCode.split('&')[1]);
|
||||
this.getMemberList();
|
||||
@@ -714,6 +713,19 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 删除站点
|
||||
handleDelete(row) {
|
||||
console.log(row);
|
||||
let remove = {
|
||||
groupCode: this.$route.params.groupCode.split('&')[0],
|
||||
stationId: row.stationId
|
||||
}
|
||||
removeStationFromMemberGroup(remove).then(response => {
|
||||
console.log('删除站点', response);
|
||||
this.$message.success("删除成功");
|
||||
this.getStationList();
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user