From b56d77c4da671528661f1772e1afd32948452372 Mon Sep 17 00:00:00 2001
From: sgjj <995959152@qq.com>
Date: Thu, 3 Sep 2020 16:40:42 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2?=
=?UTF-8?q?=E5=AD=90=E9=A1=B9=E7=9B=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
index bc375824..89bd6509 100644
--- a/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
+++ b/src/main/java/net/mingsoft/cms/dao/ICategoryDao.xml
@@ -232,7 +232,7 @@
and dict_id=#{dictId}
and category_flag=#{categoryFlag}
and category_path=#{categoryPath}
- and category_parent_id=#{categoryParentId}
+ and find_in_set(#{categoryParentId},category_parent_id)
and create_by=#{createBy}
and create_date=#{createDate}
and update_by=#{updateBy}
From 9be4a1ee172822471d75808e060762f372316fd3 Mon Sep 17 00:00:00 2001
From: luoxj <1227731421@qq.com>
Date: Thu, 3 Sep 2020 16:53:12 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A0=87=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/webapp/WEB-INF/manager/cms/content/index.ftl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl
index 3cbef7d9..44ff7c52 100644
--- a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl
+++ b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl
@@ -62,7 +62,11 @@
that.treeData = [];
} else {
that.emptyText = '';
- that.treeData = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children');
+ // 过滤掉栏目类型为链接属性
+ that.treeData = res.data.rows.filter(function (item) {
+ return item.categoryType =='2' || item.categoryType =='1'
+ })
+ that.treeData = ms.util.treeData(that.treeData, 'id', 'categoryId', 'children');
that.treeData = [{
id: 0,
categoryTitle: '全部',
From 511cad477e5b3b30721a98eda2d6177b4fdc1da9 Mon Sep 17 00:00:00 2001
From: luoxj <1227731421@qq.com>
Date: Thu, 3 Sep 2020 18:07:27 +0800
Subject: [PATCH 3/4] store.js
---
src/main/webapp/WEB-INF/manager/index.ftl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/webapp/WEB-INF/manager/index.ftl b/src/main/webapp/WEB-INF/manager/index.ftl
index cf4e7996..85d3a77d 100644
--- a/src/main/webapp/WEB-INF/manager/index.ftl
+++ b/src/main/webapp/WEB-INF/manager/index.ftl
@@ -6,7 +6,7 @@
<#include '/include/head-file.ftl'/>
-
+