mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
查询会员组中的站点列表
This commit is contained in:
@@ -79,11 +79,20 @@
|
||||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addasite">添加站点</el-button>
|
||||
</el-col>
|
||||
<el-table :data="sitesList" stripe style="width: 100%" v-loading="loading">
|
||||
<el-table-column label="站点名称" align="center" prop="memberId" />
|
||||
<el-table-column label="站点名称" align="center" prop="stationName" width="300" />
|
||||
<el-table-column label="描述" align="center" prop="remark" />
|
||||
<el-table-column label="操作" align="center" width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit"
|
||||
@click="addasite(scope.row)">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--分页-->
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize" @pagination="getMemberList" style="margin-bottom: 20px" />
|
||||
<pagination v-show="stationTotal > 0" :total="stationTotal" :page.sync="queryStation.pageNum"
|
||||
:limit.sync="queryStation.pageSize" @pagination="getStationList" style="margin-bottom: 20px" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-col>
|
||||
@@ -96,7 +105,7 @@
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 添加站点 -->
|
||||
<!-- 添加修改站点 -->
|
||||
<el-dialog title="添加站点" :visible.sync="getSite" :before-close="getCancel" width="1000px" append-to-body>
|
||||
<el-form ref="exchangeRate" :model="exchangeRate" :rules="dialogRules">
|
||||
<el-form-item label="请选择站点">
|
||||
@@ -259,7 +268,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { addMember, queryMemberList, preferentialTemplates } from "@/api/member/memberGroup";
|
||||
import { addMember, queryMemberList, preferentialTemplates, queryStationList } from "@/api/member/memberGroup";
|
||||
import { listOrder } from "@/api/order/order";
|
||||
import { getStationListByMerchantId } from "@/api/pile/station";
|
||||
import { queryStationBillingTemplateList, getTemplate } from "@/api/billing/template.js";
|
||||
@@ -406,7 +415,13 @@ export default {
|
||||
},
|
||||
sitesList: [],//站点列表
|
||||
stationId: '',//站点id
|
||||
tagsTime: []
|
||||
tagsTime: [],
|
||||
queryStation: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
groupCode: this.$route.params.groupCode.split('&')[0],
|
||||
},
|
||||
stationTotal: 0
|
||||
};
|
||||
},
|
||||
|
||||
@@ -414,6 +429,7 @@ export default {
|
||||
console.log(this.$route.params.groupCode, this.$route.params.groupCode.split('&')[0], this.$route.params.groupCode.split('&')[1]);
|
||||
this.getMemberList();
|
||||
this.getOrderList();
|
||||
this.getStationList()
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -570,6 +586,16 @@ export default {
|
||||
this.tagsTime = tags
|
||||
console.log(this.tagsTime);
|
||||
},
|
||||
// 站点列表
|
||||
getStationList() {
|
||||
this.loading = true;
|
||||
queryStationList(this.queryStation).then(response => {
|
||||
console.log('站点列表', response);
|
||||
this.sitesList = response.rows;
|
||||
this.stationTotal = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user