|
|
@@ -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>
|