From d3eb2a23f8367228f4e297fece95612d7ff50ee4 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Thu, 7 Sep 2023 09:03:05 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=EF=BC=9A=E9=87=8D?= =?UTF-8?q?=E6=9E=84=E8=8F=9C=E5=8D=95=E4=BB=A3=E7=A0=81=EF=BC=8C=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=B7=A6=E8=BE=B9=E8=8F=9C=E5=8D=95=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E5=BC=8F=E8=8F=9C=E5=8D=95=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E5=9C=A8=E9=85=8D=E7=BD=AE=E4=B8=AD=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E8=8F=9C=E5=8D=95=E6=A8=A1=E5=BC=8F=EF=BC=88=E7=BB=8F?= =?UTF-8?q?=E5=85=B8=E6=A8=A1=E5=BC=8F=E3=80=81=E5=B1=95=E5=BC=80=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=EF=BC=89=EF=BC=8C=E8=AE=A9=E7=94=A8=E6=88=B7=E6=9B=B4?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E6=8B=A9=E3=80=82=202=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=9A=E8=8F=9C=E5=8D=95=E8=8A=82=E7=82=B9=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=A4=E6=96=AD=EF=BC=8C=E6=9C=80=E5=A4=9A=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E5=A2=9E=E5=8A=A0=E4=B8=89=E4=B8=AA=E7=BA=A7=E5=88=AB?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E8=8F=9C=E5=8D=95=EF=BC=9B=203?= =?UTF-8?q?=E3=80=81=E4=BC=98=E5=8C=96=EF=BC=9A=E4=BC=98=E5=8C=96=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=9A=84=E6=95=B4=E4=BD=93=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E7=AD=89=EF=BC=8C=E5=A2=9E=E5=BC=BA=E4=BA=86?= =?UTF-8?q?=E6=95=B4=E4=BD=93=E7=9A=84UI=E6=95=88=E6=9E=9C=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 1 + app/home/controller/Index.php | 1 + app/home/view/conf/index.html | 2 +- app/home/view/conf/other.html | 10 - app/home/view/conf/web.html | 100 +- app/home/view/index/index.html | 64 +- app/home/view/index/layout_article.html | 2 +- app/home/view/index/layout_chartview.html | 2 +- app/home/view/index/layout_chartyear.html | 2 +- app/home/view/index/layout_count.html | 2 +- app/home/view/index/layout_event.html | 2 +- app/home/view/index/layout_note.html | 2 +- app/home/view/index/layout_project.html | 2 +- app/home/view/index/layout_task.html | 2 +- app/home/view/index/mail_list.html | 6 +- app/home/view/index/main.html | 15 +- app/home/view/index/menu_classical.html | 47 + app/home/view/index/menu_expand.html | 70 + app/home/view/module/index.html | 2 +- app/home/view/rule/add.html | 44 +- app/install/data/gouguoa.sql | 4 +- app/oa/view/approve/index.html | 6 +- config/database.php | 2 +- public/index.php | 4 +- public/static/assets/gougu/css/gougu.css | 32 +- public/static/assets/gougu/css/layout.css | 392 +++--- public/static/assets/gougu/module/admin.js | 95 +- public/static/assets/gougu/module/tool.js | 6 +- public/static/assets/icon/demo.css | 27 +- public/static/assets/icon/index.html | 1403 +++++++------------- public/static/home/images/syslogo.png | Bin 15424 -> 10387 bytes 31 files changed, 1025 insertions(+), 1324 deletions(-) create mode 100644 app/home/view/index/menu_classical.html create mode 100644 app/home/view/index/menu_expand.html diff --git a/app/common.php b/app/common.php index fd497ac..bb08414 100644 --- a/app/common.php +++ b/app/common.php @@ -1026,6 +1026,7 @@ function set_recursion($result, $pid = 0, $level=-1) if ($v['pid'] == $pid) { if ($pid != 0) { $v['title'] = $space[$level] . $v['title']; + $v['level'] = $level+1; } /*将该类别的数据放入list中*/ $list[] = $v; diff --git a/app/home/controller/Index.php b/app/home/controller/Index.php index a53282a..27ed64f 100644 --- a/app/home/controller/Index.php +++ b/app/home/controller/Index.php @@ -95,6 +95,7 @@ class Index extends BaseController } View::assign('menu', $list); View::assign('theme',$admin['theme']); + View::assign('web',get_system_config('web')); return View(); } } diff --git a/app/home/view/conf/index.html b/app/home/view/conf/index.html index 90ac2ee..20b5e91 100644 --- a/app/home/view/conf/index.html +++ b/app/home/view/conf/index.html @@ -1,7 +1,7 @@ {extend name="../../base/view/common/base" /} {block name="body"} -
+
diff --git a/app/home/view/conf/other.html b/app/home/view/conf/other.html index fbac5ce..75e18fc 100644 --- a/app/home/view/conf/other.html +++ b/app/home/view/conf/other.html @@ -5,16 +5,6 @@

其他配置

- - - + + + + - - + - - - - - - - - - - - - - - - - - - + - - + - - + + + + + + + + + + + + +
系统主题 - {empty name="$config.theme"} - - - {else/} - - - {/empty} - 开发者 diff --git a/app/home/view/conf/web.html b/app/home/view/conf/web.html index 1619948..492fc29 100644 --- a/app/home/view/conf/web.html +++ b/app/home/view/conf/web.html @@ -11,55 +11,38 @@ 网站名称* + 左侧菜单模式 + {empty name="$config.menu_mode"} + + + {else/} + + + {/empty} +
系统域名* - + 系统大LOGO -
-
系统大LOGO +
+
网站域名* - - - ICP备案号 - -
SEO关键词* - - - 公安备案号 - -
SEO描述* - - - 系统小LOGO -
-
系统小LOGO +
+ @@ -67,21 +50,40 @@
统计代码 - + ICP备案号 +
版权信息 - + 公安备案号 +
系统关键词* + +
系统描述* + + +
代码版本号* 版权信息 + +
@@ -104,7 +106,9 @@ let callback = function (e) { layer.msg(e.msg); if (e.code == 0) { - tool.sideClose(1000); + setTimeout(function(){ + parent.parent.location.reload(); + },1000) } } tool.post("/home/conf/edit", data.field, callback); diff --git a/app/home/view/index/index.html b/app/home/view/index/index.html index c81bbc0..d5aa6c8 100644 --- a/app/home/view/index/index.html +++ b/app/home/view/index/index.html @@ -6,7 +6,7 @@ {block name="body"}
-
+
@@ -69,51 +69,15 @@
-
-
- - - -
-
- + {empty name="$web.menu_mode"} + {include file="/index/menu_classical" /} + {else/} + {if ($web.menu_mode == 'expand') } + {include file="/index/menu_expand" /} + {else/} + {include file="/index/menu_classical" /} + {/if} + {/empty}
@@ -139,7 +103,7 @@
-
+
@@ -171,11 +135,7 @@ } } admin.loading(); - $('.layui-side-scroll').hover(function(){ - $(this).removeClass('no-scroll'); - },function(){ - $(this).addClass('no-scroll'); - }); + menuInit(); $('#GouguApp').on("click",'[gg-event="logout"]',function () { layer.confirm('确认注销登录吗?', { icon: 7, title: '警告' }, function (index) { diff --git a/app/home/view/index/layout_article.html b/app/home/view/index/layout_article.html index 72f89b3..c3b8e0a 100644 --- a/app/home/view/index/layout_article.html +++ b/app/home/view/index/layout_article.html @@ -1,4 +1,4 @@ -
+
知识列表
diff --git a/app/home/view/index/layout_chartview.html b/app/home/view/index/layout_chartview.html index 22f4339..dbed63c 100644 --- a/app/home/view/index/layout_chartview.html +++ b/app/home/view/index/layout_chartview.html @@ -1,4 +1,4 @@ -
+
diff --git a/app/home/view/index/layout_chartyear.html b/app/home/view/index/layout_chartyear.html index 58bca31..56dd851 100644 --- a/app/home/view/index/layout_chartyear.html +++ b/app/home/view/index/layout_chartyear.html @@ -1,4 +1,4 @@ -
+
diff --git a/app/home/view/index/layout_count.html b/app/home/view/index/layout_count.html index c4108a6..3bfe90b 100644 --- a/app/home/view/index/layout_count.html +++ b/app/home/view/index/layout_count.html @@ -1,4 +1,4 @@ -
+
diff --git a/app/home/view/index/layout_event.html b/app/home/view/index/layout_event.html index 403a878..bbbff97 100644 --- a/app/home/view/index/layout_event.html +++ b/app/home/view/index/layout_event.html @@ -1,4 +1,4 @@ -
+

快捷申请

更多
diff --git a/app/home/view/index/layout_note.html b/app/home/view/index/layout_note.html index f232ce2..1d3301a 100644 --- a/app/home/view/index/layout_note.html +++ b/app/home/view/index/layout_note.html @@ -1,4 +1,4 @@ -
+
公告列表
diff --git a/app/home/view/index/layout_project.html b/app/home/view/index/layout_project.html index 4063e2d..76f1239 100644 --- a/app/home/view/index/layout_project.html +++ b/app/home/view/index/layout_project.html @@ -1,4 +1,4 @@ -
+
项目列表
diff --git a/app/home/view/index/layout_task.html b/app/home/view/index/layout_task.html index fc92827..bc8fca7 100644 --- a/app/home/view/index/layout_task.html +++ b/app/home/view/index/layout_task.html @@ -1,4 +1,4 @@ -
+
任务列表
diff --git a/app/home/view/index/mail_list.html b/app/home/view/index/mail_list.html index fd1c248..edcd27d 100644 --- a/app/home/view/index/mail_list.html +++ b/app/home/view/index/mail_list.html @@ -3,10 +3,10 @@ {/block} {block name="body"} -
-
+
+
{volist name="$layout_selected" id="layout"} @@ -75,8 +75,7 @@ {/volist}
- {volist name="$layout_selected" id="layout"} - + {volist name="$layout_selected" id="layout"} {if ( $layout.row == 2) AND ( $layout.name == 'fastentry') } {include file="/index/layout_fastentry" /} {/if} diff --git a/app/home/view/index/menu_classical.html b/app/home/view/index/menu_classical.html new file mode 100644 index 0000000..39a6754 --- /dev/null +++ b/app/home/view/index/menu_classical.html @@ -0,0 +1,47 @@ +
+ + + +
+ \ No newline at end of file diff --git a/app/home/view/index/menu_expand.html b/app/home/view/index/menu_expand.html new file mode 100644 index 0000000..ab9a51a --- /dev/null +++ b/app/home/view/index/menu_expand.html @@ -0,0 +1,70 @@ +
+ + +
+ \ No newline at end of file diff --git a/app/home/view/module/index.html b/app/home/view/module/index.html index 579d3fd..d4e5384 100644 --- a/app/home/view/module/index.html +++ b/app/home/view/module/index.html @@ -1,7 +1,7 @@ {extend name="../../base/view/common/base" /} {block name="body"} -
+
diff --git a/app/home/view/rule/add.html b/app/home/view/rule/add.html index af6262d..9b1c152 100644 --- a/app/home/view/rule/add.html +++ b/app/home/view/rule/add.html @@ -9,10 +9,10 @@ @@ -52,8 +52,7 @@ - + + + +
模块名称父级菜单/节点* - + {volist name=":set_recursion(admin_rule())" id="v"} - + {/volist}
左侧菜单显示* - 左侧菜单显示* @@ -65,6 +64,9 @@ 如:icon-jichupeizhi[查看图标]
注意:作为菜单显示类型时最多展示三级菜单,所以父级菜单/节点选项最大只能选择到2级,非菜单显示类型无限制;一级菜单需要填写菜单图标。
{else/} @@ -72,10 +74,10 @@ @@ -116,8 +118,7 @@ - + + + +
父级菜单/节点* - + {volist name=":set_recursion(admin_rule())" id="v"} - + {/volist}
左侧菜单显示* - 左侧菜单显示* @@ -128,6 +129,9 @@ [查看图标]
注意:作为菜单显示类型时最多展示三级菜单,所以父级菜单/节点选项最大只能选择到2级,非菜单显示类型无限制;一级菜单需要填写菜单图标。
{/if}
@@ -144,18 +148,34 @@ - - - - +