123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import request from '@/utils/request'
- export const props = {
- // 显示选择器
- show: {
- type: Boolean,
- default: false
- },
- // 已选导购的ID集合
- selectedIds: {
- type: Array,
- required: false,
- default: () => ([])
- },
- // 获取导购列表API
- goodsApi: {
- type: String,
- required: true
- },
- // 扩展的导购API参数
- goodsApiParams: {
- type: Object,
- default: () => ({})
- },
- // 请求方法
- request: {
- type: Function,
- required: false,
- default: request
- },
- // 最大可选个数
- limit: {
- type: Number,
- default: -1
- },
- // 扩展列
- columns: {
- type: Array,
- default: () => (generalColumns)
- },
- // 是否是管理端
- isAdmin: {
- type: Boolean,
- default: true
- }
- }
- export const data = {
- }
- // 一般列
- export const generalColumns = [
- { label: '商品编号', prop: 'sn' },
- { label: '商品名称', prop: 'name' },
- { label: '规格型号', prop: 'goods_style' },
- { label: '商品类别', prop: 'category_name' }
- ]
|