wangning 5 лет назад
Родитель
Сommit
3dfa916c98
3 измененных файлов с 127 добавлено и 3 удалено
  1. 2 2
      pt/src/mock/userInfo.js
  2. 110 0
      pt/src/saas/shop/manage.vue
  3. 15 1
      pt/src/service/auth/index.js

+ 2 - 2
pt/src/mock/userInfo.js

@@ -211,8 +211,8 @@ let menu = {
 			type: 1,
 			type: 1,
 			icon: 'icongongzuotai',
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			orderNum: 1,
-			router: '/saas/merchant/buy-list',
-			viewPath: 'saas/shop/buy',
+			router: '/saas/merchant/manage-list',
+			viewPath: 'saas/shop/manage',
 			keepAlive: 1
 			keepAlive: 1
 		},
 		},
 		{
 		{

+ 110 - 0
pt/src/saas/shop/manage.vue

@@ -0,0 +1,110 @@
+<template>
+	<div class="app-list-content">
+		<x-crud class="liu-crud-wrap" @load="onLoad"> </x-crud>
+	</div>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			// x-crud
+			app: null
+		};
+	},
+	mounted() {},
+	methods: {
+		// crud
+		onLoad({ ctx, app }) {
+			this.app = app;
+			let applyHost = () => {
+				return this.$service.auth.shopAdminList();
+			};
+			ctx.service({
+				page: applyHost
+			})
+				.set('table', {
+					columns: [
+						{
+							prop: 'id',
+							label: 'ID',
+							align: 'center'
+						},
+						{
+							prop: 'avator',
+							label: '头像',
+							align: 'center'
+						},
+						{
+							prop: 'name',
+							label: '名称',
+							align: 'center'
+						},
+						{
+							prop: 'mobile',
+							label: '手机号',
+							align: 'center'
+						},
+						{
+							prop: 'merchanId',
+							label: '商家ID',
+							align: 'center',
+							emptyText: '无'
+						},
+						{
+							prop: 'shopId',
+							label: '门店ID',
+							align: 'center',
+							emptyText: '无'
+						},
+						{
+							prop: 'remid',
+							label: '收款提醒',
+							align: 'center',
+							emptyText: '无'
+						},
+						{
+							prop: 'super',
+							label: '管理员',
+							align: 'center',
+							emptyText: '无'
+						},
+            {
+							prop: 'founder',
+							label: '创始人',
+							align: 'center',
+							emptyText: '无'
+						},
+            {
+							prop: 'addTime',
+							label: '添加时间',
+							align: 'center',
+							emptyText: '无'
+						},
+					],
+					// 操作列
+					op: {
+						visible: true, // 是否显示
+						// 同 element-ui Table-column Attributes
+						props: {
+							width: 150,
+							align: 'center',
+							fixed: 'right',
+							label: '操作'
+						},
+						// 布局,请移步 `layout`
+						layout: []
+					}
+				})
+				.set('layout', [
+					['slot-tabs'],
+					['flex1', 'refresh-btn'],
+					['data-table'],
+					['flex1', 'pagination']
+				])
+				.done();
+			app.refresh();
+		}
+	}
+};
+</script>

+ 15 - 1
pt/src/service/auth/index.js

@@ -26,7 +26,21 @@ export class CommonService extends BaseService {
 			method: 'POST',
 			method: 'POST',
 			data: data
 			data: data
 		});
 		});
-	}
+  }
+
+  	/**
+	 * 员工列表 b
+	 *
+	 * @returns
+	 * @memberof CommonService
+	 */
+     shopAdminList(data) {
+		return this.request({
+			url: '/shop-admin/list',
+			data: data
+		});
+  }
+  
 }
 }
 
 
 export default new CommonService();
 export default new CommonService();