|
@@ -22,6 +22,16 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="会员等级" prop="levelId">
|
|
|
+ <el-select v-model="queryParams.levelId" clearable placeholder="请选择会员等级">
|
|
|
+ <el-option
|
|
|
+ v-for="item in levelList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="手机号" prop="mobile">
|
|
|
<el-input
|
|
|
v-model="queryParams.mobile"
|
|
@@ -67,6 +77,16 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="configPermi.export"
|
|
|
+ >导出</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
@@ -176,8 +196,9 @@
|
|
|
delect: '', // 删除地址
|
|
|
upload: '',// 导入地址
|
|
|
download:'', // 下载模板地址
|
|
|
- export: '',// 导出地址
|
|
|
+ export: '/member/memberInfo/exportList',// 导出地址
|
|
|
updateStatus: '/member/memberInfo/enable', // 编辑地址
|
|
|
+ levelList: '/member/memberLevelInfo/pageList', // 获取会员等级
|
|
|
},
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
@@ -215,10 +236,13 @@
|
|
|
{ key: 10, label: `最近消费时间`, visible: true },
|
|
|
{ key: 11, label: `注册时间`, visible: true },
|
|
|
],
|
|
|
+
|
|
|
+ levelList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
+ this.getLevelList();
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询用户列表 */
|
|
@@ -240,6 +264,20 @@
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
+ /** 查询用户列表 */
|
|
|
+ getLevelList() {
|
|
|
+ listTableApi(
|
|
|
+ this.configUrl.levelList,
|
|
|
+ {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 100,
|
|
|
+ }).then(response => {
|
|
|
+ this.levelList = response.data.rows;
|
|
|
+ }
|
|
|
+ ).catch (error=>{
|
|
|
+ this.levelList = [];
|
|
|
+ })
|
|
|
+ },
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
@@ -293,7 +331,7 @@
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.download(this.configUrl.export, {
|
|
|
+ this.downloadGet(this.configUrl.export, {
|
|
|
...this.queryParams
|
|
|
}, `${this.title }_${new Date().getTime()}.xlsx`)
|
|
|
},
|