| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:shop:create', 'business:shop:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaShopWindow.open('新建店铺')" icon="el-icon-plus" v-permissions="['business:shop:create']">新建</el-button></li> |
| | | <li><el-button type="primary" @click="$refs.operaShopWindow.open('新建经销商')" icon="el-icon-plus" v-permissions="['business:shop:create']">新建</el-button></li> |
| | | <!-- <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:shop:delete']">删除</el-button></li> --> |
| | | </ul> |
| | | <el-table |
| | |
| | | </template> |
| | | <!-- 新建/修改 --> |
| | | <OperaShopWindow ref="operaShopWindow" @success="handlePageChange"/> |
| | | <OperaShopDetailWindow ref="operaShopDetailWindow" /> |
| | | <OperaShopInfoWindow ref="OperaShopInfoWindow" /> |
| | | <ResetPwdShopWindow ref="resetPwdWindow"/> |
| | | </TableLayout> |
| | | </template> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaShopWindow from '@/components/business/OperaShopWindow' |
| | | import OperaShopDetailWindow from '@/components/business/OperaShopDetailWindow' |
| | | import OperaShopInfoWindow from '@/components/business/OperaShopInfoWindow' |
| | | import { resetPwd, updateIsRecById } from '@/api/business/shop' |
| | | import ResetPwdShopWindow from '@/components/business/ResetPwdShopWindow' |
| | | export default { |
| | | name: 'Shop', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopDetailWindow, ResetPwdShopWindow }, |
| | | components: { TableLayout, Pagination, OperaShopWindow, OperaShopInfoWindow, ResetPwdShopWindow }, |
| | | data () { |
| | | return { |
| | | |
| | |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: '店铺基本信息表', |
| | | module: '经销商基本信息表', |
| | | api: '/business/shop', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | |
| | | }) |
| | | }, |
| | | showDetail (row) { |
| | | this.$refs.operaShopDetailWindow.open('店铺详情', row) |
| | | this.$refs.OperaShopInfoWindow.open('经销商详情', row) |
| | | } |
| | | } |
| | | } |