+
+
+
+
搜索
@@ -123,11 +129,13 @@ import checkPermission from '@/utils/permission'
import initData from '@/mixins/crud'
import { del, onsale } from '@/api/yxStoreProduct'
import eForm from './form'
+import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import comForm from '@/views/activity/combination/form'
import killForm from '@/views/activity/seckill/form'
import bargainForm from '@/views/activity/bargain/form'
+import Treeselect from '@riophae/vue-treeselect'
export default {
- components: { eForm, comForm, killForm, bargainForm },
+ components: { eForm, comForm, Treeselect,killForm, bargainForm },
mixins: [initData],
data() {
return {
@@ -136,7 +144,8 @@ export default {
queryTypeOptions: [
{ key: 'storeName', display_name: '商品名称' }
],
- isAttr: false
+ isAttr: false,
+ cateId: null,
}
},
created() {
@@ -149,7 +158,7 @@ export default {
beforeInit() {
this.url = 'api/yxStoreProduct'
const sort = 'id,desc'
- this.params = { page: this.page, size: this.size, sort: sort, isShow: 1, isDel: 0 }
+ this.params = { page: this.page, size: this.size, sort: sort, isShow: 1, isDel: 0,cateId: this.cateId }
const query = this.query
const type = query.type
const value = query.value
diff --git a/src/views/shop/goods/index2.vue b/src/views/shop/goods/index2.vue
index caf9425..894da6c 100644
--- a/src/views/shop/goods/index2.vue
+++ b/src/views/shop/goods/index2.vue
@@ -7,6 +7,12 @@
+
+
+
搜索
@@ -238,7 +236,9 @@ export default {
this.menuIds = []
// 菜单数据需要特殊处理
val.menus.forEach(function(data, index) {
- _this.menuIds.push(data.id)
+ if(data.pid!=0){
+ _this.menuIds.push(data.id)
+ }
})
}
},