mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 站点白名单
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
<el-table v-loading="loading" :data="whitelistList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!--<el-table-column label="主键" align="center" prop="id" />-->
|
||||
<el-table-column label="站点id" align="center" prop="stationId" />
|
||||
<!--<el-table-column label="站点id" align="center" prop="stationId" />-->
|
||||
<el-table-column label="会员id" align="center" prop="memberId" />
|
||||
<el-table-column label="手机号" align="center" prop="mobileNumber" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
@@ -109,9 +109,9 @@
|
||||
<!--<el-form-item label="站点id" prop="stationId">
|
||||
<el-input v-model="form.stationId" placeholder="请输入站点id" />
|
||||
</el-form-item>-->
|
||||
<el-form-item label="会员id" prop="memberId">
|
||||
<!--<el-form-item label="会员id" prop="memberId">
|
||||
<el-input v-model="form.memberId" placeholder="请输入会员id" />
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="手机号" prop="mobileNumber">
|
||||
<el-input v-model="form.mobileNumber" placeholder="请输入手机号" />
|
||||
</el-form-item>
|
||||
@@ -152,6 +152,7 @@ export default {
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
stationId: this.$route.params.id,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@@ -174,6 +175,7 @@ export default {
|
||||
/** 查询站点白名单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.stationId = this.stationId;
|
||||
listWhitelist(this.queryParams).then(response => {
|
||||
this.whitelistList = response.rows;
|
||||
this.total = response.total;
|
||||
@@ -243,6 +245,7 @@ export default {
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
this.form.stationId = this.stationId;
|
||||
addWhitelist(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
|
||||
Reference in New Issue
Block a user