Compare commits

...

3 Commits

Author SHA1 Message Date
Anyon
db3aa8f529 修改菜单管理 2022-03-04 16:00:52 +08:00
Anyon
d46f23f3d3 Update _layout_1.less 2022-03-04 10:19:18 +08:00
Anyon
7ba7ddab94 修改后台样式 2022-03-04 10:18:12 +08:00
5 changed files with 8 additions and 9 deletions

View File

@ -72,7 +72,6 @@ class Menu extends Controller
if ($vo['url'] !== '#' && !preg_match('/^(https?:)?(\/\/|\\\\)/i', $vo['url'])) {
$vo['url'] = trim(url($vo['url']) . ($vo['params'] ? "?{$vo['params']}" : ''), '\\/');
}
$vo['ids'] = arr2str(DataExtend::getArrSubIds($data, $vo['id']));
}
}

View File

@ -42,7 +42,7 @@
});
},
cols: [[
{checkbox: true, field: 'ids'},
{checkbox: true, field: 'sps'},
{field: 'sort', title: '排序权重', width: 100, align: 'center', sort: true, templet: '#SortInputTpl'},
{
field: 'icon', title: '图标', width: 80, align: 'center', templet: function (d) {
@ -81,7 +81,7 @@
<script type="text/html" id="StatusSwitchTpl">
<!--{if auth("state")}-->
{{# if( "{$type|default='index'}"==='index' || (d.spc<1 || d.status<1)){ }}
<input type="checkbox" value="{{d.ids}}" data-path="{{d.path}}" lay-skin="switch" lay-text="已激活|已禁用" lay-filter="StatusSwitch" {{d.status>0?'checked':''}}>
<input type="checkbox" value="{{d.sps}}" data-path="{{d.path}}" lay-skin="switch" lay-text="已激活|已禁用" lay-filter="StatusSwitch" {{d.status>0?'checked':''}}>
{{# }else{ }}
{{d.status ? '<b class="color-green">已激活</b>' : '<b class="color-red">已禁用</b>'}}
{{# } }}
@ -113,7 +113,7 @@
{if auth('remove')}
{{# if( (d.spc<1 || d.status<1)){ }}
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除菜单吗?" data-action="{:url('remove')}" data-value="id#{{d.ids}}"> </a>
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除菜单吗?" data-action="{:url('remove')}" data-value="id#{{d.sps}}"> </a>
{{# }else{ }}
<a class="layui-btn layui-btn-disabled layui-btn-sm"> </a>

View File

@ -74,9 +74,9 @@
}
}
.help-label b {
color: @mainActiveBack
}
//.help-label b {
// color: @mainActiveBack
//}
.layui-btn-group {
border-color: @mainActiveBack;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long