Commit b3aabed1 by 无尘

fix: 修改分配接口

parent 319bbb4e
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-08-13 14:02:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-17 11:34:17
* @LastEditTime: 2020-09-17 14:46:39
* @FilePath : haoban-4\src\components\app\my-customer\store-list.vue
-->
<!--
......@@ -26,7 +26,7 @@
</div>
<div class="depart-children-list border-box m-t-18">
<div class="m-t-20">
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table-column class="cursor-pointer" label="门店名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.storeName || '--' }}</template>
</el-table-column>
......@@ -130,7 +130,8 @@ export default {
currentPage: 1,
pageSize: 20,
total: 0,
tableData: []
tableData: [],
loading: false
};
},
mounted() {
......@@ -188,7 +189,6 @@ export default {
that.pageSize = val;
that.getTableList();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
......@@ -205,7 +205,8 @@ export default {
*/
getTableList() {
const that = this;
let para = {
that.loading = true;
const para = {
wxEnterpriseId: that.wxEnterpriseId,
storeGroupId: that.departObj.storeGroupId,
enterpriseId: that.brandId,
......@@ -216,11 +217,12 @@ export default {
};
getStoreList( para)
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount;
})
.catch(function(error) {
that.loading = false;
});
}
},
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-17 11:44:10
* @LastEditTime: 2020-09-17 14:45:11
-->
<template>
<div class="customer-assign-wrap">
......@@ -675,6 +675,7 @@ export default {
*/
getTableList() {
const that = this;
that.loading = true;
const para = {
enterpriseId: that.brandId,
wxEnterpriseId: that.wxEnterpriseId,
......@@ -689,11 +690,14 @@ export default {
};
getMemberList(para)
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount;
})
.catch(function(error) {
that.loading = false;
that.tableData = [];
that.total = 0;
});
}
},
......@@ -704,12 +708,16 @@ export default {
that.showMember = false;
that.currentPage = 1;
that.tableData = [];
that.total = 0;
that.clerkOptions = [];
that.clerkId = ''; // 导购
that.searchInput = '';
that.selectRadio = 0;
that.multipleSelection = [];
that.storeObj = {};
that.departObj = {};
that.gicData = [];
that.gicDataCopy = [];
that.getGicData();
that.getSetData();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment