|
|
@ -10,8 +10,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<crudOperation :permission="permission" /> |
|
|
|
<crudOperation :permission="permission" /> |
|
|
|
<!--表单组件--> |
|
|
|
<!--表单组件--> |
|
|
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px"> |
|
|
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="700px"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px"> |
|
|
|
<!-- <el-form-item label="品牌ID">--> |
|
|
|
<!-- <el-form-item label="品牌ID">--> |
|
|
|
<!-- <el-input v-model="form.id" style="width: 370px;" />--> |
|
|
|
<!-- <el-input v-model="form.id" style="width: 370px;" />--> |
|
|
|
<!-- </el-form-item>--> |
|
|
|
<!-- </el-form-item>--> |
|
|
@ -21,15 +21,21 @@ |
|
|
|
<el-form-item label="品牌描述" prop="brandDescription"> |
|
|
|
<el-form-item label="品牌描述" prop="brandDescription"> |
|
|
|
<el-input v-model="form.brandDescription" type="textarea" style="width: 370px;" /> |
|
|
|
<el-input v-model="form.brandDescription" type="textarea" style="width: 370px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="排序"> |
|
|
|
|
|
|
|
<el-input v-model="form.sort" style="width: 370px;" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="图标"> |
|
|
|
<el-form-item label="图标"> |
|
|
|
<MaterialList v-model="picArr" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
<MaterialList v-model="picArr" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="背景图"> |
|
|
|
<el-form-item label="背景图"> |
|
|
|
<MaterialList v-model="picArr1" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
<MaterialList v-model="picArr1" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="虚拟商品数量" prop="goodsNumber"> |
|
|
|
|
|
|
|
<el-input v-model="form.goodsNumber" type="number" style="width: 370px;" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="虚拟销售量(w)" prop="sellNumber"> |
|
|
|
|
|
|
|
<el-input v-model="form.sellNumber" type="number" style="width: 370px;" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="排序"> |
|
|
|
|
|
|
|
<el-input v-model="form.sort" style="width: 370px;" /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="状态"> |
|
|
|
<el-form-item label="状态"> |
|
|
|
<el-radio-group v-model="form.isShow" style="width: 178px"> |
|
|
|
<el-radio-group v-model="form.isShow" style="width: 178px"> |
|
|
|
<el-radio :label="1">显示</el-radio> |
|
|
|
<el-radio :label="1">显示</el-radio> |
|
|
@ -94,7 +100,8 @@ import MaterialList from "@/components/material"; |
|
|
|
|
|
|
|
|
|
|
|
// crud交由presenter持有 |
|
|
|
// crud交由presenter持有 |
|
|
|
const defaultCrud = CRUD({ title: '品牌', url: '/bxg/api/yxStoreBrand', sort: 'id,desc', crudMethod: { ...crudYxStoreBrand }}) |
|
|
|
const defaultCrud = CRUD({ title: '品牌', url: '/bxg/api/yxStoreBrand', sort: 'id,desc', crudMethod: { ...crudYxStoreBrand }}) |
|
|
|
const defaultForm = { id: null, brandName: null, sort: null, pic: null,backgroundImage:null,isShow: null, createTime: null, updateTime: null, isDel: null, tenantId: null } |
|
|
|
const defaultForm = { id: null, brandName: null, sort: 0, goodsNumber:'',sellNumber:'', |
|
|
|
|
|
|
|
pic: null,backgroundImage:null,isShow: null, createTime: null, updateTime: null, isDel: null, tenantId: null } |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'YxStoreBrand', |
|
|
|
name: 'YxStoreBrand', |
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation ,MaterialList}, |
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation ,MaterialList}, |
|
|
|