|
@@ -88,6 +88,11 @@ export default {
|
|
listTotal: 0, // 列表总数
|
|
listTotal: 0, // 列表总数
|
|
searchForm: {
|
|
searchForm: {
|
|
keyword: "",
|
|
keyword: "",
|
|
|
|
+ bindUser: "",
|
|
|
|
+ isGroupCompany: "",
|
|
|
|
+ keyword: "",
|
|
|
|
+ region: "",
|
|
|
|
+ websitNumber: "",
|
|
},
|
|
},
|
|
inforList: {},
|
|
inforList: {},
|
|
};
|
|
};
|
|
@@ -96,7 +101,7 @@ export default {
|
|
DealerListDetail,
|
|
DealerListDetail,
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
- await this.getList({ pageNum: 1, pageSize: 10 });
|
|
|
|
|
|
+ await this.getList();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
exParams() {
|
|
exParams() {
|
|
@@ -109,39 +114,41 @@ export default {
|
|
// 提交筛选表单
|
|
// 提交筛选表单
|
|
submitScreenForm() {
|
|
submitScreenForm() {
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
- this.getList({ pageNum: 1, pageSize: 10 });
|
|
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
// 重置筛选表单
|
|
// 重置筛选表单
|
|
resetScreenForm() {
|
|
resetScreenForm() {
|
|
this.$refs.screenForm.resetFields();
|
|
this.$refs.screenForm.resetFields();
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
- this.getList({ pageNum: 1, pageSize: 10 });
|
|
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
// 更改每页数量
|
|
// 更改每页数量
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList({ pageNum: 1, pageSize: this.pageSize });
|
|
|
|
|
|
+
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
// 更改当前页
|
|
// 更改当前页
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|
|
- this.getList({ pageNum: val, pageSize: 10 });
|
|
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
//搜索功能
|
|
//搜索功能
|
|
async searchFn() {
|
|
async searchFn() {
|
|
- console.log(this.searchForm);
|
|
|
|
- await this.getList({ ...this.searchForm, pageNum: 1, pageSize: 10 });
|
|
|
|
|
|
+ await this.getList();
|
|
},
|
|
},
|
|
//重置
|
|
//重置
|
|
clearFn() {
|
|
clearFn() {
|
|
- console.log(this.$refs.searchForm);
|
|
|
|
this.$refs.searchForm.resetFields();
|
|
this.$refs.searchForm.resetFields();
|
|
},
|
|
},
|
|
//获取列表数据
|
|
//获取列表数据
|
|
- async getList(data) {
|
|
|
|
- const res = await getDealerList(data);
|
|
|
|
- console.log(res);
|
|
|
|
|
|
+ async getList() {
|
|
|
|
+ let params = {
|
|
|
|
+ ...this.searchForm,
|
|
|
|
+ pageNum: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ };
|
|
|
|
+ const res = await getDealerList(params);
|
|
this.dataList = res.data.records;
|
|
this.dataList = res.data.records;
|
|
this.listTotal = res.data.total;
|
|
this.listTotal = res.data.total;
|
|
},
|
|
},
|