diff --git a/src/pages/user/AccountManager.vue b/src/pages/user/AccountManager.vue
index 75e0788..19c938e 100644
--- a/src/pages/user/AccountManager.vue
+++ b/src/pages/user/AccountManager.vue
@@ -27,7 +27,7 @@
-
+
{
+ debugger
+ return h('span', params.index + (this.pageNum- 1) * this.pageSize + 1);
+ }
},
{
title: '用户名',
@@ -178,12 +175,6 @@
},
],
data1: [
- {
- userName: "何永东",
- userCode: "7833",
- roleName: "系统管理员",
- shopName: "全部",
- }
],
roleId: '',
shopId: '',
@@ -256,12 +247,14 @@
//查询所有店铺
listOfShop() {
let that = this;
+ this.loading = true;
that.shopList = [];
let request = {
userId: JSON.parse(sessionStorage.getItem("loginInfo")).userId
};
accountManagement.listAllShopApi(request, function (data) {
data = data.data;
+ that.loading = false;
if (data.code === '0001') {
that.$Message.error("查询店铺失败!");
return;
@@ -278,7 +271,9 @@
that.shopList.push(row);
}
}
- })
+ }, function () {
+ that.loading = false;
+ });
},
//搜索账号内容
listAccountInfoFunction: function () {
diff --git a/src/services/account/AccountManagement.js b/src/services/account/AccountManagement.js
index e6b0f37..d00cc95 100644
--- a/src/services/account/AccountManagement.js
+++ b/src/services/account/AccountManagement.js
@@ -30,8 +30,8 @@ export function removeAccountApi(params, call) {
* @param call
* @returns {Promise}
*/
-export function listAllShopApi(params, call) {
- return http.get('/poi/store/all/list', params).then(call);
+export function listAllShopApi(params, call, errorCallBack) {
+ return http.get('/poi/store/all/list', params).then(call).catch(errorCallBack);
}
/**