Browse Source

隐藏商品分类

master
杨豪 3 years ago
parent
commit
efad0211e8
  1. 16
      src/views/shop/goods/form.vue
  2. 2
      src/views/shop/goods/index.vue
  3. 2
      vue.config.js

16
src/views/shop/goods/form.vue

@ -9,14 +9,14 @@
<el-input v-model="formValidate.store_name" placeholder="请输入商品名称" />
</el-form-item>
</el-col>
<el-col v-bind="grid2">
<!-- <el-col v-bind="grid2">
<el-form-item label="商品分类:" prop="cate_id">
<el-select v-model="formValidate.cate_id" filterable :filter-method="dataFilter" clearable>
<el-option v-for="item in optionsMetaShow" :disabled="item.disabled === 0"
:value="item.value" :key="item.id" :label="item.label" ></el-option>
</el-select>
</el-form-item>
</el-col>
</el-col> -->
<el-col v-bind="grid2">
<el-form-item label="商品关键字:" prop="">
<el-input v-model="formValidate.keyword" placeholder="请输入商品关键字" />
@ -473,9 +473,9 @@ export default {
store_name: [
{ required: true, message: '请输入商品名称', trigger: 'blur' }
],
cate_id: [
{ required: true, message: '请选择商品分类', trigger: 'change' }
],
// cate_id: [
// { required: true, message: '', trigger: 'change' }
// ],
keyword: [
{ required: true, message: '请输入商品关键字', trigger: 'blur' }
],
@ -491,9 +491,9 @@ export default {
selectRule: [
{ required: true, message: '请选择商品规格属性', trigger: 'change' }
],
temp_id: [
{ required: true, message: '请选择运费模板', trigger: 'change', type: 'number' }
]
// temp_id: [
// { required: true, message: '', trigger: 'change', type: 'number' }
// ]
},
attrs: []
}

2
src/views/shop/goods/index.vue

@ -44,7 +44,7 @@
</template>
</el-table-column>
<el-table-column prop="storeName" label="商品名称" />
<el-table-column prop="storeCategory.cateName" label="分类名称" />
<!-- <el-table-column prop="storeCategory.cateName" label="分类名称" /> -->
<el-table-column prop="price" label="商品价格" />
<el-table-column prop="sales" label="销量" />
<el-table-column prop="stock" label="库存" />

2
vue.config.js

@ -7,7 +7,7 @@ function resolve(dir) {
}
const name = defaultSettings.title // 网址标题
const port = 8013 // 端口配置
const port = 8014 // 端口配置
module.exports = {
publicPath: '/',

Loading…
Cancel
Save