|
@@ -81,12 +81,12 @@
|
|
|
<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.sps}}|{{d.spp}}" lay-text="已激活|已禁用" lay-filter="StatusSwitch" lay-skin="switch" {{d.status>0?'checked':''}}>
|
|
|
+ <input type="checkbox" value="{{d.sps}}|{{d.spp}}" lay-text="已激活|已禁用" lay-filter="StatusSwitch" lay-skin="switch" {{-d.status>0?'checked':''}}>
|
|
|
{{# }else{ }}
|
|
|
- {{d.status ? '<b class="color-green">已激活</b>' : '<b class="color-red">已禁用</b>'}}
|
|
|
+ {{-d.status ? '<b class="color-green">已激活</b>' : '<b class="color-red">已禁用</b>'}}
|
|
|
{{# } }}
|
|
|
<!--{else}-->
|
|
|
- {{d.status ? '<b class="color-green">已激活</b>' : '<b class="color-red">已禁用</b>'}}
|
|
|
+ {{-d.status ? '<b class="color-green">已激活</b>' : '<b class="color-red">已禁用</b>'}}
|
|
|
<!--{/if}-->
|
|
|
</script>
|
|
|
|