评测进行更改

This commit is contained in:
sj
2022-10-27 18:47:32 +08:00
parent 46437af817
commit 8118ddcf4b
4 changed files with 188 additions and 123 deletions
+8 -5
View File
@@ -19,7 +19,7 @@
<el-input v-model="form.brandName" style="width: 370px;" />
</el-form-item>
<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" maxlength="190" show-word-limit style="width: 370px;" />
</el-form-item>
<el-form-item label="图标">
<MaterialList v-model="picArr" type="image" :num="1" :width="150" :height="150" />
@@ -52,8 +52,8 @@
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column v-if="columns.visible('id')" prop="id" label="品牌ID" width="150" />
<el-table-column v-if="columns.visible('brandName')" prop="brandName" label="品牌名称" />
<el-table-column v-if="columns.visible('brandDescription')" prop="brandDescription" label="品牌描述" />
<el-table-column v-if="columns.visible('brandName')" prop="brandName" label="品牌名称" width="150" />
<el-table-column v-if="columns.visible('brandDescription')" prop="brandDescription" label="品牌描述" width="300"/>
<el-table-column v-if="columns.visible('sort')" prop="sort" label="排序" width="55" />
<!-- <el-table-column v-if="columns.visible('pic')" prop="pic" label="图标" />-->
<el-table-column v-if="columns.visible('isShow')" label="状态" align="center" prop="isShow">
@@ -100,7 +100,7 @@ import MaterialList from "@/components/material";
// crud交由presenter持有
const defaultCrud = CRUD({ title: '品牌', url: '/bxg/api/yxStoreBrand', sort: 'id,desc', crudMethod: { ...crudYxStoreBrand }})
const defaultForm = { id: null, brandName: null, sort: 0, goodsNumber:'',sellNumber:'',
const defaultForm = { id: null, brandName: null, sort: 0, goodsNumber:'',sellNumber:'',brandDescription:null,
pic: null,backgroundImage:null,isShow: null, createTime: null, updateTime: null, isDel: null, tenantId: null }
export default {
name: 'YxStoreBrand',
@@ -118,7 +118,10 @@ export default {
rules: {
brandName: [
{ required: true, message: '品牌名称不能为空', trigger: 'blur' }
]
],
// brandDescription:[
// {max:190, message: '品牌描述不能超过190个字符', trigger: 'blur'}
// ]
} }
},
watch: {