| | |
| | | <template> |
| | | <el-bus-crud ref="crud" v-bind="tableConfig" /> |
| | | <el-bus-crud ref="crud" v-bind="tableConfig" ></el-bus-crud> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getSortConfig } from '@/utils/form-item-config' |
| | | import { getSortConfig,getGoodsCategoryListConfig} from '@/utils/form-item-config' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | span: 24, |
| | | searchImmediately: true, |
| | | }, |
| | | // { |
| | | // label: '商品分类:', |
| | | // id: 'category', |
| | | // component: 'cascader-filter', |
| | | // el: { |
| | | // otherInterfaceUri: 'flower/api/flower/category/tree', |
| | | // props: { |
| | | // label: 'name', |
| | | // value: 'id', |
| | | // checkStrictly: true, |
| | | // }, |
| | | // emitPath: false, |
| | | // style: 'width:100%', |
| | | // clearable: true, |
| | | // hasAll: true, |
| | | // childType: 'el-radio-button', |
| | | // }, |
| | | // span: 24, |
| | | // searchImmediately: true, |
| | | // }, |
| | | { |
| | | label: '商品分类:', |
| | | label: '商品分类', |
| | | id: 'category', |
| | | component: 'cascader-filter', |
| | | type: 'bus-cascader', |
| | | el: { |
| | | otherInterfaceUri: 'flower/api/flower/category/tree', |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | | emitPath: false, |
| | | checkStrictly: true, |
| | | }, |
| | | emitPath: false, |
| | | style: 'width:100%', |
| | | clearable: true, |
| | | hasAll: true, |
| | | childType: 'el-radio-button', |
| | | filterable: true, |
| | | style: 'width:100%', |
| | | }, |
| | | span: 24, |
| | | searchImmediately: true, |
| | | }, |
| | | // { |
| | | // ...getGoodsCategoryListConfig(), |
| | | // id: 'category', |
| | | // }, |
| | | { label: '商品名称:', id: 'name', type: 'input' }, |
| | | { label: '供应商:', id: 'supplierName', type: 'input' }, |
| | | ], |