|
|
@ -1,5 +1,5 @@ |
|
|
|
let layer, orgTree, gtable, globalTree, tag, listPage, form, element; |
|
|
|
let layer, orgTree, gtable, globalTree, tag, listPage, form, element; |
|
|
|
layui.use(['layer', 'orgTree', 'gtable', 'globalTree', 'tag', 'listPage', 'form', 'element'], function () { |
|
|
|
layui.use(['layer', 'orgTree', 'gtable', 'globalTree', 'tag', 'listPage', 'form', 'element', 'dict'], function () { |
|
|
|
layer = layui.layer; |
|
|
|
layer = layui.layer; |
|
|
|
orgTree = layui.orgTree; |
|
|
|
orgTree = layui.orgTree; |
|
|
|
gtable = layui.gtable; |
|
|
|
gtable = layui.gtable; |
|
|
@ -36,9 +36,14 @@ function openDirectoryEditLayer(data, callback, view) { |
|
|
|
<input type="hidden" name="directoryType" value="DIRECTORY" /> |
|
|
|
<input type="hidden" name="directoryType" value="DIRECTORY" /> |
|
|
|
<input type="hidden" name="basicDir" value="${data.basicDir || bus_type}" /> |
|
|
|
<input type="hidden" name="basicDir" value="${data.basicDir || bus_type}" /> |
|
|
|
<input type="hidden" name="createTime" value="${data.createTime || ''}" /> |
|
|
|
<input type="hidden" name="createTime" value="${data.createTime || ''}" /> |
|
|
|
<label style="color: #555;">目录名称:</label> |
|
|
|
<label style="color: #555;"><label style="color: red">*</label>目录名称:</label> |
|
|
|
<input class="layui-input" type="text" name="directoryName" autocomplete="off" value="${data.directoryName || ''}" ${readOnly} placeholder="请输入目录名称" lay-verify="required" style="margin-top: 5px; width: 380px;"> |
|
|
|
<input class="layui-input" type="text" name="directoryName" autocomplete="off" value="${data.directoryName || ''}" ${readOnly} placeholder="请输入目录名称" lay-verify="required" style="margin-top: 5px; width: 380px;"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="layui-inline" style="width: calc(100% - 30px); margin:15px 15px 0 15px;display: flex;align-items: center;"> |
|
|
|
|
|
|
|
<label style="color: #555;"><label style="color: red">*</label>数据密级:</label> |
|
|
|
|
|
|
|
<div dict-component="radio" dict-type="secret_level" dict-name="secretLevel" |
|
|
|
|
|
|
|
id="dict-secret-level"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="layui-inline" style="width: calc(100% - 30px); margin:15px 15px 0 15px"> |
|
|
|
<div class="layui-inline" style="width: calc(100% - 30px); margin:15px 15px 0 15px"> |
|
|
|
<label style="color: #555">目录归属${data.ownerType === 'org' ? '单位' : '用户'}:</label><span style="color: #000" id="ownerNameSpan">${data.owner || user.userName}</span> |
|
|
|
<label style="color: #555">目录归属${data.ownerType === 'org' ? '单位' : '用户'}:</label><span style="color: #000" id="ownerNameSpan">${data.owner || user.userName}</span> |
|
|
|
<button class="layui-btn layui-btn-primary layui-btn-xs ${disablePermisBtn ? 'layui-disabled' : ''}" id="ownerChooseBtn" ${disablePermisBtn} style="border:0; color: #009688">变更</button> |
|
|
|
<button class="layui-btn layui-btn-primary layui-btn-xs ${disablePermisBtn ? 'layui-disabled' : ''}" id="ownerChooseBtn" ${disablePermisBtn} style="border:0; color: #009688">变更</button> |
|
|
@ -113,9 +118,9 @@ function openDirectoryEditLayer(data, callback, view) { |
|
|
|
<a lay-submit lay-filter="directoryEditForm" id="directoryEditFormSubmit" style=""></a> |
|
|
|
<a lay-submit lay-filter="directoryEditForm" id="directoryEditFormSubmit" style=""></a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="layui-inline" style="width: calc(100% - 30px); margin:15px 15px 0 15px"> |
|
|
|
<div class="layui-inline" style="width: calc(100% - 30px); margin:15px 15px 0 15px"> |
|
|
|
<label style="color: #555">目录创建人:</label><span style="color: #000" >${data.createUserName}</span> |
|
|
|
<label style="color: #555">目录创建人:</label><span style="color: #000" >${data.createUserName || user.userName}</span> |
|
|
|
<input type="hidden" name="createUserName" value="${data.createUserName}" /> |
|
|
|
<input type="hidden" name="createUserName" value="${data.createUserName || user.userName}" /> |
|
|
|
<input type="hidden" name="createUser" value="${data.createUser}" /> |
|
|
|
<input type="hidden" name="createUser" value="${data.createUser || user.userId}" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>`, |
|
|
|
</div>`, |
|
|
@ -131,6 +136,13 @@ function openDirectoryEditLayer(data, callback, view) { |
|
|
|
style: 'border: 1px solid #d3d3d3;', |
|
|
|
style: 'border: 1px solid #d3d3d3;', |
|
|
|
click: dirOwnerChangeCallback |
|
|
|
click: dirOwnerChangeCallback |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
layui.dict.render(); |
|
|
|
|
|
|
|
if(!data || !data.secretLevel){ |
|
|
|
|
|
|
|
data['secretLevel'] = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
layui.dict.setData('dict-secret-level', data) |
|
|
|
|
|
|
|
$('div.dict-component').css({'margin-top': '5px', 'width': '380px', 'margin-left': '4px'}) |
|
|
|
|
|
|
|
|
|
|
|
// 目录成员管理事件
|
|
|
|
// 目录成员管理事件
|
|
|
|
$('#memberManageBtn').on('click', () => { |
|
|
|
$('#memberManageBtn').on('click', () => { |
|
|
|
let formVal = form.val('directoryEditForm'); |
|
|
|
let formVal = form.val('directoryEditForm'); |
|
|
|