yshop3.0-alpha版本

This commit is contained in:
hupeng
2020-06-27 16:46:04 +08:00
parent 37abf9f073
commit 329d1e1de3
33 changed files with 721 additions and 223 deletions

View File

@ -66,9 +66,9 @@
</div>
</template>
</el-table-column>
<el-table-column v-if="columns.visible('addTime')" prop="addTime" label="添加时间" >
<el-table-column v-if="columns.visible('createTime')" prop="createTime" label="添加时间" >
<template slot-scope="scope">
<span>{{ parseTime(scope.row.addTime) }}</span>
<span>{{ formatTimeTwo(scope.row.createTime) }}</span>
</template>
</el-table-column>
<el-table-column v-permission="['admin','yxSystemStoreStaff:edit','yxSystemStoreStaff:del']" label="操作" width="150px" align="center">
@ -95,6 +95,7 @@ import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import cuser from '@/views/components/user'
import crudYxSystemStore from '@/api/yxSystemStore'
import { formatTimeTwo } from '@/utils/index'
// crud交由presenter持有
const defaultCrud = CRUD({ title: '门店店员', url: 'api/yxSystemStoreStaff', sort: 'id,desc', crudMethod: { ...crudYxSystemStoreStaff }})
@ -141,6 +142,7 @@ export default {
}
},
methods: {
formatTimeTwo,
// 获取数据前设置好接口地址
[CRUD.HOOK.beforeRefresh]() {
const query = this.query