美化切换开关

master
RuoYi 6 years ago committed by Limy
parent ea0a1f3d0a
commit 26be7a7bd1

@ -468,7 +468,7 @@ label.error {
.toggle-switch input:checked~span:after { .toggle-switch input:checked~span:after {
left: -webkit-calc(100% - 20px); left: -webkit-calc(100% - 20px);
left: calc(100% - 20px); left: calc(100% - 20px);
background-color: #15c377 background-color: #33cabb
} }
.toggle-switch.switch-solid span { .toggle-switch.switch-solid span {
@ -478,12 +478,12 @@ label.error {
top: -2px; top: -2px;
} }
.switch-solid input:checked~span { .switch-solid input:checked~span {
background-color: #15c377; background-color: #33cabb;
border-color: #15c377 border-color: #33cabb
} }
.switch-solid input:checked~span:after { .switch-solid input:checked~span:after {
background-color: #fff; background-color: #fff;
color: #15c377 color: #33cabb
} }
/** 遮罩层 **/ /** 遮罩层 **/

@ -120,7 +120,7 @@
var roleName = $("input[name='roleName']").val(); var roleName = $("input[name='roleName']").val();
var roleKey = $("input[name='roleKey']").val(); var roleKey = $("input[name='roleKey']").val();
var roleSort = $("input[name='roleSort']").val(); var roleSort = $("input[name='roleSort']").val();
var status = $("input[name='status']").is(':checked') == true ? 0 : 1; var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
var remark = $("input[name='remark']").val(); var remark = $("input[name='remark']").val();
var menuIds = $.tree.getCheckedNodes(); var menuIds = $.tree.getCheckedNodes();
$.ajax({ $.ajax({

@ -122,7 +122,7 @@
var roleName = $("input[name='roleName']").val(); var roleName = $("input[name='roleName']").val();
var roleKey = $("input[name='roleKey']").val(); var roleKey = $("input[name='roleKey']").val();
var roleSort = $("input[name='roleSort']").val(); var roleSort = $("input[name='roleSort']").val();
var status = $("input[name='status']").is(':checked') == true ? 0 : 1; var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
var remark = $("input[name='remark']").val(); var remark = $("input[name='remark']").val();
var menuIds = $.tree.getCheckedNodes(); var menuIds = $.tree.getCheckedNodes();
$.ajax({ $.ajax({

Loading…
Cancel
Save