diff --git a/src/plugin/admin/app/view/admin-rule/insert.html b/src/plugin/admin/app/view/admin-rule/insert.html index 2075bd4..0dd1750 100644 --- a/src/plugin/admin/app/view/admin-rule/insert.html +++ b/src/plugin/admin/app/view/admin-rule/insert.html @@ -112,8 +112,8 @@ data: e.data, value: '0', model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, tree: {show: true,"strict":false,"clickCheck":true,"clickExpand":false}, }) } @@ -131,8 +131,8 @@ data: [{"value":"0","name":"目录"},{"value":"1","name":"菜单"},{"value":"2","name":"权限"}], value: '1', model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, }) }); diff --git a/src/plugin/admin/app/view/admin-rule/update.html b/src/plugin/admin/app/view/admin-rule/update.html index 8fefc3e..cbc097f 100644 --- a/src/plugin/admin/app/view/admin-rule/update.html +++ b/src/plugin/admin/app/view/admin-rule/update.html @@ -135,8 +135,8 @@ toolbar: {show: true, list: ["CLEAR"]}, data: e.data, model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, tree: {show: true,"strict":false,"clickCheck":true,"clickExpand":false}, }) } @@ -153,8 +153,8 @@ initValue: initValue, data: [{"value":"0","name":"目录"},{"value":"1","name":"菜单"},{"value":"2","name":"权限"}], model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, }) }); diff --git a/src/plugin/admin/app/view/table/crud.html b/src/plugin/admin/app/view/table/crud.html index cc1040c..909e4b5 100644 --- a/src/plugin/admin/app/view/table/crud.html +++ b/src/plugin/admin/app/view/table/crud.html @@ -86,8 +86,8 @@ data: e.data, toolbar: {show: true, list: ["CLEAR"]}, model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, tree: {show:true, strict:false, clickCheck:true, clickExpand:false}, }) } diff --git a/src/plugin/admin/app/view/user/index.html b/src/plugin/admin/app/view/user/index.html index f3e222f..0f560b8 100644 --- a/src/plugin/admin/app/view/user/index.html +++ b/src/plugin/admin/app/view/user/index.html @@ -184,11 +184,11 @@ layui.xmSelect.render({ el: '#sex', name: 'sex', - initValue: initValue, - data: [{"value":"男","name":"男"},{"value":"女","name":"女"}], - model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + initValue: initValue, + data: [{"value":"男","name":"男"},{"value":"女","name":"女"}], + model: {"icon":"hidden","label":{"type":"text"}}, + clickClose: true, + radio: true, }) }); @@ -204,7 +204,7 @@ layui.use(['laydate'], function() { layui.laydate.render({ elem: '#last_time', - range: ['#last_time-date-start', '#last_time-date-end'], + range: ['#last_time-date-start', '#last_time-date-end'], type: 'datetime', }); }) @@ -213,7 +213,7 @@ layui.use(['laydate'], function() { layui.laydate.render({ elem: '#join_time', - range: ['#join_time-date-start', '#join_time-date-end'], + range: ['#join_time-date-start', '#join_time-date-end'], type: 'datetime', }); }) @@ -363,7 +363,7 @@ // 获取表格中下拉或树形组件数据 let apiResults = {}; - apiResults['sex'] = {"男":"男","女":"女"}; + apiResults['sex'] = {"男":"男","女":"女"}; // 编辑或删除行事件 table.on('tool(data-table)', function(obj) { diff --git a/src/plugin/admin/app/view/user/insert.html b/src/plugin/admin/app/view/user/insert.html index 8f09057..88a312f 100644 --- a/src/plugin/admin/app/view/user/insert.html +++ b/src/plugin/admin/app/view/user/insert.html @@ -161,12 +161,12 @@ layui.xmSelect.render({ el: '#sex', name: 'sex', - initValue: initValue, - data: [{"value":"男","name":"男"},{"value":"女","name":"女"}], - value: '男', - model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + initValue: initValue, + data: [{"value":"男","name":"男"},{"value":"女","name":"女"}], + value: '男', + model: {"icon":"hidden","label":{"type":"text"}}, + clickClose: true, + radio: true, }) }); @@ -175,8 +175,8 @@ let input = layui.jquery('#avatar').prev(); input.prev().attr('src', input.val()); layui.upload.render({ - elem: '#avatar', - url: '/app/admin/upload/avatar', + elem: '#avatar', + url: '/app/admin/upload/avatar', acceptMime: 'image/gif,image/jpeg,image/jpg,image/png', done: function (res) { if (res.code > 0) return layui.layer.msg(res.msg); @@ -195,7 +195,7 @@ // 字段 登录时间 last_time layui.use(['laydate'], function() { layui.laydate.render({ - elem: '#last_time', + elem: '#last_time', type: 'datetime', }); }) @@ -203,7 +203,7 @@ // 字段 注册时间 join_time layui.use(['laydate'], function() { layui.laydate.render({ - elem: '#join_time', + elem: '#join_time', type: 'datetime', }); }) diff --git a/src/plugin/admin/app/view/user/update.html b/src/plugin/admin/app/view/user/update.html index 05deba6..5de993e 100644 --- a/src/plugin/admin/app/view/user/update.html +++ b/src/plugin/admin/app/view/user/update.html @@ -188,8 +188,8 @@ initValue: initValue, data: [{"value":"男","name":"男"},{"value":"女","name":"女"}], model: {"icon":"hidden","label":{"type":"text"}}, - clickClose: 'true', - radio: 'true', + clickClose: true, + radio: true, }) });