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] =?UTF-8?q?=E5=95=86=E5=93=81=E6=90=9C=E7=B4=A2=E6=B7=BB?= =?UTF-8?q?=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 @@