mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
Merge branch 'master' of https://git.oschina.net/yubaolee/OpenAuth.Net
This commit is contained in:
@@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
<label for="Status" class="control-label x90">当前状态:</label>
|
<label for="Status" class="control-label x90">当前状态:</label>
|
||||||
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
|
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
|
||||||
<option value="0">正常</option>
|
<option value="0" @if (Model.Status == 0) { <text> selected="selected" </text> }>正常</option>
|
||||||
<option value="1">禁用</option>
|
<option value="1" @if (Model.Status == 1) { <text> selected="selected" </text> }>禁用</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -38,20 +38,28 @@
|
|||||||
|
|
||||||
<label for="Type" class="control-label x90">角色类型:</label>
|
<label for="Type" class="control-label x90">角色类型:</label>
|
||||||
<select name="Type" id="Type" data-toggle="selectpicker" data-rule="required">
|
<select name="Type" id="Type" data-toggle="selectpicker" data-rule="required">
|
||||||
<option value="0">管理员</option>
|
<option value="0" @if (Model.Type == 0) { <text> selected="selected" </text> }>管理员</option>
|
||||||
<option value="1">普通用户</option>
|
<option value="1" @if (Model.Type == 1) { <text> selected="selected" </text> }>普通角色</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<label for="OrgName" class="control-label x90">所属机构:</label>
|
||||||
|
<input id="OrgId" name="OrgId" value="" style="display: none"/>
|
||||||
|
<input type="text" name="OrgName" id="OrgName"
|
||||||
|
data-toggle="selectztree" size="20" data-tree="#j_select_tree1" value="@Model.OrgName">
|
||||||
|
<ul id="j_select_tree1" class="ztree hide" data-toggle="ztree"></ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label for="OrgName" class="control-label x90">所属机构:</label>
|
|
||||||
<input id="OrgId" name="OrgId" value="" style="display: none" />
|
<label for="OrgCascadeId" class="control-label x90">机构级联ID:</label>
|
||||||
<input type="text" name="OrgName" id="OrgName"
|
<input type="text" name="OrgCascadeId" id="OrgCascadeId" value="@Model.OrgCascadeId"
|
||||||
data-toggle="selectztree" size="20" data-tree="#j_select_tree1" value="@Model.OrgName">
|
data-rule="required" size="20">
|
||||||
<ul id="j_select_tree1" class="ztree hide" data-toggle="ztree"></ul>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -105,20 +113,23 @@
|
|||||||
function zTreeCheck(e, treeId, treeNode) {
|
function zTreeCheck(e, treeId, treeNode) {
|
||||||
var zTree = $.fn.zTree.getZTreeObj(treeId),
|
var zTree = $.fn.zTree.getZTreeObj(treeId),
|
||||||
nodes = zTree.getCheckedNodes(true);
|
nodes = zTree.getCheckedNodes(true);
|
||||||
var ids = '', names = '';
|
var ids = '', names = '', cascadeids='';
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
ids += ',' + nodes[i].Id;
|
ids += ',' + nodes[i].Id;
|
||||||
names += ',' + nodes[i].Name;
|
names += ',' + nodes[i].Name;
|
||||||
|
cascadeids += ',' + nodes[i].CascadeId;
|
||||||
}
|
}
|
||||||
if (ids.length > 0) { //去掉第一个逗号
|
if (ids.length > 0) { //去掉第一个逗号
|
||||||
ids = ids.substr(1);
|
ids = ids.substr(1);
|
||||||
names = names.substr(1);
|
names = names.substr(1);
|
||||||
|
cascadeids = cascadeids.substr(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
var $from = $('#' + treeId).data('fromObj');
|
var $from = $('#' + treeId).data('fromObj');
|
||||||
if ($from && $from.length) $from.val(names);
|
if ($from && $from.length) $from.val(names);
|
||||||
|
|
||||||
$('#OrgId').val(ids);
|
$('#OrgId').val(ids);
|
||||||
|
$('#OrgCascadeId').val(cascadeids);
|
||||||
}
|
}
|
||||||
function zTreeOnClick(event, treeId, treeNode) {
|
function zTreeOnClick(event, treeId, treeNode) {
|
||||||
var zTree = $.fn.zTree.getZTreeObj(treeId);
|
var zTree = $.fn.zTree.getZTreeObj(treeId);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
label: '当前状态',
|
label: '当前状态',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
items:[{'0':'正常'}],
|
items:[{'0':'正常','1':'禁用'}],
|
||||||
width:50
|
width:50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
label: '角色类型',
|
label: '角色类型',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
items: [{ '0': '管理员' }],
|
items: [{ '0': '管理员','1':'普通角色' }],
|
||||||
width:50
|
width:50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
<label for="Status" class="control-label x85">设置状态:</label>
|
<label for="Status" class="control-label x85">设置状态:</label>
|
||||||
|
|
||||||
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
|
<select name="Status" id="Status" data-toggle="selectpicker" data-rule="required">
|
||||||
<option value="0">正常</option>
|
<option value="0" @if (Model.Status == 0) { <text> selected="selected" </text> }>正常</option>
|
||||||
<option value="1">禁用</option>
|
<option value="1" @if (Model.Status == 1) { <text> selected="selected" </text> }>禁用</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -51,8 +51,8 @@
|
|||||||
<label for="Sex" class="control-label x85">性别:</label>
|
<label for="Sex" class="control-label x85">性别:</label>
|
||||||
|
|
||||||
<select name="Sex" id="Sex" data-toggle="selectpicker" data-rule="required">
|
<select name="Sex" id="Sex" data-toggle="selectpicker" data-rule="required">
|
||||||
<option value="0">男</option>
|
<option value="0" @if (Model.Status == 0) { <text> selected="selected" </text> }>男</option>
|
||||||
<option value="1">女</option>
|
<option value="1" @if (Model.Status == 1) { <text> selected="selected" </text> }>女</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user