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