39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
@model WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkRoleVMs.FrameworkRoleMDVM
|
|
|
|
<wt:form vm="@Model">
|
|
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
|
<wt:display field="Entity.RoleCode" />
|
|
<wt:display field="Entity.RoleName" />
|
|
</wt:row>
|
|
<wt:grid vm="ListVM" height=500 hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" multi-line="true" use-local-data="true" />
|
|
<wt:hidden field="Entity.ID" />
|
|
<wt:hidden field="Entity.RoleCode" />
|
|
<wt:row align="AlignEnum.Right">
|
|
<wt:submitbutton />
|
|
<wt:closebutton />
|
|
</wt:row>
|
|
</wt:form>
|
|
<script>
|
|
$().ready(function () {
|
|
var $selectAll = $('input[do-not-use-selectall]+div');
|
|
$selectAll.each(function (index, dom) {
|
|
var existUnchecked = $(dom).nextAll('div:not(.layui-form-checked)').length;
|
|
if (existUnchecked == 0) {
|
|
$(dom).click();
|
|
}
|
|
});
|
|
|
|
$selectAll.on('click', function (value) {
|
|
var $el = $(this);
|
|
|
|
if ($el.hasClass('layui-form-checked')) {
|
|
$el.nextAll('div:not(.layui-form-checked)').click();
|
|
}
|
|
else {
|
|
$el.nextAll('div.layui-form-checked').click();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<!-- WTM默认页面 Wtm buidin page-->
|