Просмотр исходного кода

[ 平台 ] [ 277 ] 员工管理列表切换分页始终显示第一页数据 (解决)

wangn 5 лет назад
Родитель
Сommit
49b528c5a1
3 измененных файлов с 11 добавлено и 7 удалено
  1. 3 1
      pt/src/cool/request/index.js
  2. 1 6
      pt/src/saas/shop/manage.vue
  3. 7 0
      pt/src/service/shop-admin/index.js

+ 3 - 1
pt/src/cool/request/index.js

@@ -32,6 +32,7 @@ import itemClass from '@/service/item-class/index';
 import item from '@/service/item/index';
 import unit from '@/service/unit/index';
 import merchant from '@/service/merchant/index';
+import shopAdmin from '@/service/shop-admin/index';
 
 export function SET_SERVICE({ store }) {
 	// const files = require.context('@/service/', true, /\.js$/);
@@ -69,7 +70,8 @@ export function SET_SERVICE({ store }) {
 		itemClass,
 		item,
 		unit,
-		merchant
+    merchant,
+    shopAdmin
 	};
 
 	Vue.prototype.$service = modules;

+ 1 - 6
pt/src/saas/shop/manage.vue

@@ -48,12 +48,7 @@ export default {
 		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			let applyHost = () => {
-				return this.$service.auth.shopAdminList();
-			};
-			ctx.service({
-				page: applyHost
-			})
+			ctx.service(this.$service.shopAdmin)
 				.set('table', {
 					columns: [
 						{

+ 7 - 0
pt/src/service/shop-admin/index.js

@@ -0,0 +1,7 @@
+import { BaseService, Service } from '@/cool';
+
+@Service('shop-admin')
+export class shopAdminService extends BaseService {
+
+}
+export default new shopAdminService();