| | |
| | | <a lay-event="edit" shiro:hasPermission="user:update"><i |
| | | class="layui-icon febs-edit-area febs-blue"></i></a> |
| | | </script> |
| | | <style> |
| | | .layui-form-onswitch { |
| | | background-color: #5FB878 !important; |
| | | } |
| | | </style> |
| | | <!-- 表格操作栏 end --> |
| | | <script data-th-inline="none" type="text/javascript"> |
| | | // 引入组件并初始化 |
| | |
| | | {field: 'accountStatus', title: '账号状态', |
| | | templet: function (d) { |
| | | if (d.accountStatus === 1) { |
| | | return '<span style="color:green;">正常</span>' |
| | | return '<input type="checkbox" name="switch" lay-text="正常|禁用" checked lay-skin="switch" lay-event="accountSwitch">' |
| | | } else if (d.accountStatus === 2) { |
| | | return '<span style="color:red;">禁用</span>' |
| | | return '<input type="checkbox" name="switch" lay-text="正常|禁用" lay-skin="switch" lay-event="accountSwitch">' |
| | | }else{ |
| | | return '' |
| | | } |