提交 4e53074e 编写于 作者: doc_wei's avatar doc_wei

表格布局新增数据权限控制以及数据权限编号的属性

上级 4e7a913f
...@@ -22,6 +22,18 @@ layui.config({ ...@@ -22,6 +22,18 @@ layui.config({
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" id="searchTips" name="searchTips" win-verify="required" placeholder="请输入提示语" class="layui-input"/> <input type="text" id="searchTips" name="searchTips" win-verify="required" placeholder="请输入提示语" class="layui-input"/>
</div> </div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">是否开启数据权限<i class="red">*</i></label>
<div class="layui-input-block" id="isDataAuth">
</div>
</div>`,
'isDataAuth': `<div class="layui-form-item layui-col-xs6" id="dataAuthPointNumBox">
<label class="layui-form-label">数据权限点编号<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="dataAuthPointNum" name="dataAuthPointNum" win-verify="required" placeholder="请输入数据权限点编号" class="layui-input"/>
</div>
</div>` </div>`
}; };
...@@ -64,12 +76,28 @@ layui.config({ ...@@ -64,12 +76,28 @@ layui.config({
if (type == 'simpleTable') { if (type == 'simpleTable') {
$('#otherDom').html(pageHtml[type]); $('#otherDom').html(pageHtml[type]);
skyeyeClassEnumUtil.showEnumDataListByClassName("whetherEnum", 'radio', "isPage", data.isPage, form); skyeyeClassEnumUtil.showEnumDataListByClassName("whetherEnum", 'radio', "isPage", data.isPage, form);
// 数据权限信息
skyeyeClassEnumUtil.showEnumDataListByClassName("whetherEnum", 'radio', "isDataAuth", data.isDataAuth, form);
if (dataShowType.getData("isDataAuth") == 1) {
$('#otherDom').append(pageHtml['isDataAuth']);
} else {
$('#dataAuthPointNumBox').remove();
}
$("#searchTips").val(data.searchTips); $("#searchTips").val(data.searchTips);
} else { } else {
$('#otherDom').html(''); $('#otherDom').html('');
} }
} }
form.on('radio(isDataAuthFilter)', function(data) {
if (dataShowType.getData("isDataAuth") == 1) {
$('#otherDom').append(pageHtml['isDataAuth']);
} else {
$('#dataAuthPointNumBox').remove();
}
});
matchingLanguage(); matchingLanguage();
form.render(); form.render();
form.on('submit(formWriteBean)', function (data) { form.on('submit(formWriteBean)', function (data) {
...@@ -80,12 +108,17 @@ layui.config({ ...@@ -80,12 +108,17 @@ layui.config({
remark: $("#remark").val(), remark: $("#remark").val(),
type: $("#type").val(), type: $("#type").val(),
className: parent.objectId, className: parent.objectId,
operateIdList: isNull($('#operateIdList').attr('value')) ? [] : $('#operateIdList').attr('value') isDataAuth: dataShowType.getData("isDataAuth"),
operateIdList: isNull($('#operateIdList').attr('value')) ? [] : $('#operateIdList').attr('value'),
dataAuthPointNum: ''
}; };
if (params.type == 'simpleTable') { if (params.type == 'simpleTable') {
params['isPage'] = $("#isPage input:radio:checked").val(); params['isPage'] = dataShowType.getData("isPage");
params['searchTips'] = $("#searchTips").val(); params['searchTips'] = $("#searchTips").val();
if (params.isDataAuth == 1) {
params.dataAuthPointNum = $('#dataAuthPointNum').val();
}
} }
var businessApi = { var businessApi = {
......
...@@ -345,7 +345,7 @@ function authBtn(urlNum) { ...@@ -345,7 +345,7 @@ function authBtn(urlNum) {
} }
/** /**
* 加载列表接口的数据权限菜单,因为要和表格搜索结合到一起,所以监听事件是要去initTableSearchUtil.js中查看 * 加载列表接口的数据权限菜单,因为要和表格搜索结合到一起,所以监听事件是要去 initTableSearchUtil.js中查看
* *
* @param tableId 表格id * @param tableId 表格id
* @param urlNum 权限点id * @param urlNum 权限点id
......
...@@ -47,5 +47,7 @@ ...@@ -47,5 +47,7 @@
"operatePosition": {"name": "操作按钮展示位置", "className": "skyeye-pro#com.skyeye.operate.classenum.OperatePosition"}, "operatePosition": {"name": "操作按钮展示位置", "className": "skyeye-pro#com.skyeye.operate.classenum.OperatePosition"},
"crmContractStateEnum": {"name": "CRM客户合同状态", "className": "skyeye-crm#com.skyeye.contract.classenum.CrmContractStateEnum"}, "crmContractStateEnum": {"name": "CRM客户合同状态", "className": "skyeye-crm#com.skyeye.contract.classenum.CrmContractStateEnum"},
"crmContractAuthEnum": {"name": "CRM客户合同权限", "className": "skyeye-crm#com.skyeye.contract.classenum.CrmContractAuthEnum"} "crmContractAuthEnum": {"name": "CRM客户合同权限", "className": "skyeye-crm#com.skyeye.contract.classenum.CrmContractAuthEnum"},
"crmOpportunityStateEnum": {"name": "CRM客户商机状态", "className": "skyeye-crm#com.skyeye.opportunity.classenum.CrmOpportunityStateEnum"},
"crmOpportunityAuthEnum": {"name": "CRM客户商机权限", "className": "skyeye-crm#com.skyeye.opportunity.classenum.CrmOpportunityAuthEnum"}
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册