From f276f06142fc61fbe681f4e12f65681810c8b6c2 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 18 Jul 2022 10:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96curd=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F=EF=BC=9B=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=90=8E=E5=8F=B0=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=86=85?= =?UTF-8?q?=E5=AE=B9=EF=BC=9B=E4=BC=98=E5=8C=96=E7=89=88=E6=9C=AC=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/index/welcome.html | 152 +++++---------------- app/common/command/Curd.php | 20 ++- app/common/command/admin/Version.php | 15 +- public/static/admin/css/welcome.css | 127 ++++++++++++++--- public/static/admin/js/index.js | 30 ---- public/static/common/css/theme/_sicfi.scss | 4 - public/static/common/css/theme/index.css | 4 +- 7 files changed, 166 insertions(+), 186 deletions(-) diff --git a/app/admin/view/index/welcome.html b/app/admin/view/index/welcome.html index efc6ea0..b09261b 100644 --- a/app/admin/view/index/welcome.html +++ b/app/admin/view/index/welcome.html @@ -106,95 +106,7 @@
-
-
系统公告
-
-
-
修改选项卡样式
-
2019-07-11 23:06
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
新增系统404模板
-
2019-07-11 12:57
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
新增treetable插件和菜单管理样式
-
2019-07-05 14:28
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
修改logo缩放问题
-
2019-07-04 11:02
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
修复左侧菜单缩放tab无法移动
-
2019-06-17 11:55
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
修复多模块菜单栏展开有问题
-
2019-06-13 14:53
-
- 界面足够简洁清爽。
- 一个接口几行代码而已直接初始化整个框架,无需复杂操作。
- 支持多tab,可以打开多窗口。
- 支持无限级菜单和对font-awesome图标库的完美支持。
- 失效以及报错菜单无法直接打开,并给出弹出层提示完美的线上用户体验。
- url地址hash定位,可以清楚看到当前tab的地址信息。
- 刷新页面会保留当前的窗口,并且会定位当前窗口对应左侧菜单栏。
- 移动端的友好支持。
-
-
-
-
+
版本信息
@@ -205,39 +117,49 @@ - - 框架名称 - - ulthon_admin - - - - 当前版本 - v2.0.0 - - - 主要特色 - 零门槛 / 响应式 / 清爽 / 极简 - - - Gitee - -
- star - fork -
- - - + + 框架名称 + + ulthon_admin + + + + 当前版本 + {:\\app\\common\\command\\admin\\Version::VERSION} + + + 最新修改 + {:implode('
',\\app\\common\\command\\admin\\Version::COMMENT)} + + + 主要特色 + 零门槛 / 响应式 / 清爽 / 极简 + + + Gitee + +
+ star + fork +
+ + +
- +
+
系统公告
+
+ +
+
+
作者心语
-

本模板基于layui2.5.4以及font-awesome-4.7.0进行实现。layui开发文档地址:layui文档

+

本模板基于layui2.7.4以及font-awesome-4.7.0进行实现。layui开发文档地址:layui文档

技术交流QQ群:layuimini(加群请备注来源:如gitee、github、官网等)

喜欢此后台模板的可以给我的GitHub和Gitee加个Star支持一下

备注:此后台框架永久开源,但请勿进行出售或者上传到任何素材网站,否则将追究相应的责任。

diff --git a/app/common/command/Curd.php b/app/common/command/Curd.php index db20ccc..62706f9 100644 --- a/app/common/command/Curd.php +++ b/app/common/command/Curd.php @@ -20,8 +20,8 @@ class Curd extends Command ->addOption('controllerFilename', 'c', Option::VALUE_REQUIRED, '控制器文件名', null) ->addOption('modelFilename', 'm', Option::VALUE_REQUIRED, '主表模型文件名', null) # - ->addOption('force', 'f', Option::VALUE_REQUIRED, '强制覆盖模式', 0) - ->addOption('delete', 'd', Option::VALUE_REQUIRED, '删除模式', 0) + ->addOption('force', 'f', Option::VALUE_NONE, '强制覆盖模式') + ->addOption('delete', 'd', Option::VALUE_NONE, '删除模式') ->setDescription('一键curd命令服务'); } @@ -32,8 +32,16 @@ class Curd extends Command $controllerFilename = $input->getOption('controllerFilename'); $modelFilename = $input->getOption('modelFilename'); - $force = $input->getOption('force'); - $delete = $input->getOption('delete'); + $force = 0; + $delete = 0; + + if ($input->hasOption('force')) { + $force = 1; + } + + if ($input->hasOption('delete')) { + $delete = 1; + } if (empty($table)) { $output->error('请设置主表'); @@ -47,10 +55,8 @@ class Curd extends Command $columns = $build->getTableColumns(); - $relations = []; - foreach ($columns as $field => $column) { if (isset($column['formType']) && $column['formType'] == 'relation') { @@ -76,7 +82,7 @@ class Curd extends Command !empty($controllerFilename) && $build = $build->setControllerFilename($controllerFilename); !empty($modelFilename) && $build = $build->setModelFilename($modelFilename); - + foreach ($relations as $relation) { $build = $build->setRelation($relation['table'], $relation['foreignKey'], $relation['primaryKey'], $relation['modelFilename'], $relation['onlyFileds'], $relation['relationBindSelect']); } diff --git a/app/common/command/admin/Version.php b/app/common/command/admin/Version.php index 661a376..4d3ade8 100644 --- a/app/common/command/admin/Version.php +++ b/app/common/command/admin/Version.php @@ -14,10 +14,13 @@ use think\facade\App; class Version extends Command { - const VERSION = 'v2.0.7'; + const VERSION = 'v2.0.8'; const COMMENT = [ - '给版本命令增加自动推送功能', + '优化curd命令的调用方式', + '调整后台工作台内容', + '优化版本命令代码', + ]; protected function configure() @@ -48,12 +51,14 @@ class Version extends Command $is_push_tag = $input->hasOption('push-tag'); if ($is_push_tag) { - $root_path = App::getRootPath(); + $output->writeln('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'); + $version = $this::VERSION; $comment = implode(';', $this::COMMENT); - + $output->info('生成标签:' . $version); + $output->info('标签描述:' . $comment); exec("git tag -a $version -m \"$comment\""); - + $output->info('推送到远程仓库'); exec("git push --tags"); } } diff --git a/public/static/admin/css/welcome.css b/public/static/admin/css/welcome.css index 4d176fd..13bed39 100644 --- a/public/static/admin/css/welcome.css +++ b/public/static/admin/css/welcome.css @@ -1,22 +1,105 @@ -.layui-card {border:1px solid #f2f2f2;border-radius:5px;} -.icon {margin-right:10px;color:#1aa094;} -.icon-cray {color:#ffb800!important;} -.icon-blue {color:#1e9fff!important;} -.icon-tip {color:#ff5722!important;} -.layuimini-qiuck-module {text-align:center;margin-top: 10px} -.layuimini-qiuck-module a i {display:inline-block;width:100%;height:60px;line-height:60px;text-align:center;border-radius:2px;font-size:30px;background-color:#F8F8F8;color:#333;transition:all .3s;-webkit-transition:all .3s;} -.layuimini-qiuck-module a cite {position:relative;top:2px;display:block;color:#666;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;} -.welcome-module {width:100%;height:210px;} -.panel {background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)} -.panel-body {padding:10px} -.panel-title {margin-top:0;margin-bottom:0;font-size:12px;color:inherit} -.label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;} -.layui-red {color:red} -.main_btn > p {height:40px;} -.layui-bg-number {background-color:#F8F8F8;} -.layuimini-notice:hover {background:#f6f6f6;} -.layuimini-notice {padding:7px 16px;clear:both;font-size:12px !important;cursor:pointer;position:relative;transition:background 0.2s ease-in-out;} -.layuimini-notice-title,.layuimini-notice-label { - padding-right: 70px !important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;} -.layuimini-notice-title {line-height:28px;font-size:14px;} -.layuimini-notice-extra {position:absolute;top:50%;margin-top:-8px;right:16px;display:inline-block;height:16px;color:#999;} \ No newline at end of file +.layui-card { + border : 1px solid #f2f2f2; + border-radius: 5px; +} + +.icon { + margin-right: 10px; + color : #1aa094; +} + +.icon-cray { + color: #ffb800 !important; +} + +.icon-blue { + color: #1e9fff !important; +} + +.icon-tip { + color: #ff5722 !important; +} + +.layuimini-qiuck-module { + text-align: center; + margin-top: 10px +} + +.layuimini-qiuck-module a i { + display : inline-block; + width : 100%; + height : 60px; + line-height : 60px; + text-align : center; + border-radius : 2px; + font-size : 30px; + background-color : #F8F8F8; + color : #333; + transition : all .3s; + -webkit-transition: all .3s; +} + +.layuimini-qiuck-module a cite { + position : relative; + top : 2px; + display : block; + color : #666; + text-overflow: ellipsis; + overflow : hidden; + white-space : nowrap; + font-size : 14px; +} + +.welcome-module { + width : 100%; + height: 210px; +} + +.panel { + background-color : #fff; + border : 1px solid transparent; + border-radius : 3px; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); + box-shadow : 0 1px 1px rgba(0, 0, 0, .05) +} + +.panel-body { + padding: 10px +} + +.panel-title { + margin-top : 0; + margin-bottom: 0; + font-size : 12px; + color : inherit +} + +.label { + display : inline; + padding : .2em .6em .3em; + font-size : 75%; + font-weight : 700; + line-height : 1; + color : #fff; + text-align : center; + white-space : nowrap; + vertical-align: baseline; + border-radius : .25em; + margin-top : .3em; +} + +.layui-red { + color: red +} + +.main_btn>p { + height: 40px; +} + +.layui-bg-number { + background-color: #F8F8F8; +} + +.osc_link_color { + color: #9B9B9B !important +} \ No newline at end of file diff --git a/public/static/admin/js/index.js b/public/static/admin/js/index.js index e20ba0f..4444667 100644 --- a/public/static/admin/js/index.js +++ b/public/static/admin/js/index.js @@ -30,36 +30,6 @@ define(["jquery", "easy-admin", "echarts", "echarts-theme", "miniAdmin", "miniTa miniTab.listen(); - /** - * 查看公告信息 - **/ - $('body').on('click', '.layuimini-notice', function () { - var title = $(this).children('.layuimini-notice-title').text(), - noticeTime = $(this).children('.layuimini-notice-extra').text(), - content = $(this).children('.layuimini-notice-content').html(); - var html = '
\n' + - '

' + title + '

\n' + - '
' + content + '
\n' + - '
\n'; - layer.open({ - type: 1, - title: '系统公告' + '' + noticeTime + '', - area: '300px;', - shade: 0.8, - id: 'layuimini-notice', - btn: ['查看', '取消'], - btnAlign: 'c', - moveType: 1, - content: html, - success: function (layero) { - var btn = layero.find('.layui-layer-btn'); - btn.find('.layui-layer-btn0').attr({ - href: 'https://gitee.com/zhongshaofa/layuimini', - target: '_blank' - }); - } - }); - }); /** * 报表功能 diff --git a/public/static/common/css/theme/_sicfi.scss b/public/static/common/css/theme/_sicfi.scss index 286dc12..78ea55f 100644 --- a/public/static/common/css/theme/_sicfi.scss +++ b/public/static/common/css/theme/_sicfi.scss @@ -488,10 +488,6 @@ $box-shape: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, color: $main-color; } -.layuimini-notice:hover { - background-color: $active-color; -} - .layuimini-qiuck-module { cursor: pointer; diff --git a/public/static/common/css/theme/index.css b/public/static/common/css/theme/index.css index 632e924..d1bec26 100644 --- a/public/static/common/css/theme/index.css +++ b/public/static/common/css/theme/index.css @@ -420,9 +420,7 @@ .elem-style-sicfi .layui-text { color: rgb(126, 252, 246); } -.elem-style-sicfi .layuimini-notice:hover { - background-color: rgba(62, 251, 251, 0.5); -} + .elem-style-sicfi .layuimini-qiuck-module { cursor: pointer; }