diff --git a/src/pages/shop/IncreaseStoreManager.vue b/src/pages/shop/IncreaseStoreManager.vue
index 1754e8d..30c966f 100644
--- a/src/pages/shop/IncreaseStoreManager.vue
+++ b/src/pages/shop/IncreaseStoreManager.vue
@@ -17,14 +17,14 @@
-
-
+
+
-
+
@@ -171,6 +171,7 @@
inject: ['setMenuName'],
data() {
return {
+ loading: false,
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId,
searchShop: null,
total: 0,
@@ -233,6 +234,11 @@
key: 'companyName',
className: 'table-width-200'
},
+ {
+ title: '零售公司编码',
+ key: 'companyCode',
+ className: 'table-width-100'
+ },
{
title: '员工数',
key: 'staffNum',
@@ -337,6 +343,8 @@
},
listOfStore() {
let that = this;
+ this.loading = true;
+
let request = {
userId: that.userId,
regionId: that.changeData(that.regionId),
@@ -348,6 +356,7 @@
};
http.storeList(request, function (data) {
data = data.data;
+ that.loading = false;
if (data.code == "0000") {
that.data1 = [];
let datas = data.results;
@@ -362,7 +371,9 @@
}
that.data1 = datas.list;
}
- })
+ }, function (error) {
+ that.loading = false;
+ });
},
addStoreWX: function (request) {
let that = this;
diff --git a/src/services/store/IncreaseStoreManager.js b/src/services/store/IncreaseStoreManager.js
index d45c01c..dc263e6 100644
--- a/src/services/store/IncreaseStoreManager.js
+++ b/src/services/store/IncreaseStoreManager.js
@@ -15,8 +15,8 @@ import axios from "axios";
export function uploadUser(params, call) {
return http.post('/store/emp/import', params).then(call);
}
-export function storeList(params, call) {
- return http.post('/store/emp/list', params).then(call);
+export function storeList(params, call, errorCallBack) {
+ return http.post('/store/emp/list', params).then(call).catch(errorCallBack);
}
export function addStoreWX(params, call) {
return http.post('/user/add', params).then(call);