From 00c515c4c7485b5a753391243019cd908dff5189 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Fri, 31 Jul 2020 10:22:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=95=86=E5=93=81=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/crud.js | 2 ++ src/views/shop/goods/index.vue | 17 +++++++++++++---- src/views/shop/goods/index2.vue | 9 ++++++++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/mixins/crud.js b/src/mixins/crud.js index 0ccbde2..8ed7fe1 100644 --- a/src/mixins/crud.js +++ b/src/mixins/crud.js @@ -11,6 +11,7 @@ import checkPermission from '@/utils/permission' export default { data() { return { + cateList: [], // 表格数据 data: [], // 排序规则,默认 id 降序, 支持多字段排序 ['id,desc', 'createTime,asc'] @@ -60,6 +61,7 @@ export default { this.loading = true // 请求数据 initData(this.url, this.getQueryParame()).then(data => { + this.cateList = data.cateList this.total = data.totalElements this.data = data.content // time 毫秒后显示表格 diff --git a/src/views/shop/goods/index.vue b/src/views/shop/goods/index.vue index d3e0290..abcb961 100644 --- a/src/views/shop/goods/index.vue +++ b/src/views/shop/goods/index.vue @@ -4,9 +4,15 @@
- + + + + 搜索
@@ -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 @@ + + + 搜索 Date: Mon, 3 Aug 2020 19:14:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 7a83b80..5d1569b 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -110,8 +110,6 @@ :data="menus" :default-checked-keys="menuIds" :props="defaultProps" - check-strictly - accordion show-checkbox node-key="id" /> @@ -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) + } }) } }, From 4fde52923fddc9980a52427dcba3e38083956171 Mon Sep 17 00:00:00 2001 From: taochengbo <552920369@qq.com> Date: Thu, 6 Aug 2020 23:03:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?bug--=E6=8F=90=E7=8E=B0=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/extract/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/activity/extract/index.vue b/src/views/activity/extract/index.vue index 3ba8e1a..a01ef2f 100644 --- a/src/views/activity/extract/index.vue +++ b/src/views/activity/extract/index.vue @@ -25,7 +25,7 @@