提交 722ca774 编写于 作者: doc_wei's avatar doc_wei

业务对象详情信息完成

上级 8b3da275
......@@ -26,18 +26,19 @@ layui.config({
// 异步加载的方法
function onClickTree(event, treeId, treeNode) {
console.log(treeNode);
if (treeNode.level != 3) {
return false;
}
tabPageUtil.init({
id: 'tab',
prefixData: [{
title: '详情',
pageUrl: '../../tpl/customerManage/customerDetails.html'
pageUrl: '../../tpl/classServer/classServerDetails.html'
}],
suffixData: null,
element: layui.element,
objectType: "1",
object: {
objectId: objectId,
objectKey: objectKey,
objectId: treeNode.id
}
});
}
......
var objectId = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
objectId = GetUrlParam("objectId");
if (isNull(objectId)) {
winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000});
return false;
}
showGrid({
id: "showForm",
url: reqBasePath + "queryServiceClass",
params: {className: objectId},
pagination: false,
method: 'GET',
template: $("#beanTemplate").html(),
ajaxSendLoadBefore: function (hdb, json) {
json.bean.tenantName = skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("tenantEnum", 'enumFiledName', json.bean.tenant, 'name');
},
ajaxSendAfter: function (json) {
matchingLanguage();
form.render();
}
});
});
\ No newline at end of file
......@@ -10,7 +10,7 @@
</head>
<body>
<div class="manage-console">
<div style="width: 270px;" class="manage-console-left">
<div style="width: 250px; padding: 0px 5px" class="manage-console-left">
<input type="text" id="name" name="name" placeholder="请输入要搜索的节点" class="layui-input" />
<ul id="treeDemo" class="ztree fsTree" method="get" isRoot="1"
treeIdKey="id" inputs="parentId" treePIdKey="parentId" clickCallbackInputs="parentId:$id" treeName="name"></ul>
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin: 0 auto; padding: 20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<script type="text/x-handlebars-template" id="beanTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">基本信息</span>
<hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">服务名称</label>
<div class="layui-input-block ver-center">
{{name}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">分组</label>
<div class="layui-input-block ver-center">
{{groupName}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">服务编码</label>
<div class="layui-input-block ver-center">
{{className}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">对象编码</label>
<div class="layui-input-block ver-center">
{{entityClassName}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">所属应用</label>
<div class="layui-input-block ver-center">
{{appId}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">租户类型</label>
<div class="layui-input-block ver-center">
{{tenantName}}
</div>
</div>
{{/bean}}
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/classServer/'}).use('classServerDetails');
</script>
</body>
</html>
\ No newline at end of file
......@@ -781,6 +781,9 @@ var tabPageUtil = {
init: function (_config) {
tabPageUtil.config = $.extend(true, tabPageUtil.config, _config);
if (_config.suffixData == null) {
tabPageUtil.config.suffixData = [];
}
// 获取页面信息
var pageList = teamObjectPermissionUtil.getPageUrl(tabPageUtil.config.objectType);
......
......@@ -3,7 +3,7 @@
color: white;
padding: 0px;
margin-top: 10px;
height: calc(100% - 10px);
height: calc(100% - 45px);
overflow-y: auto;
overflow-x: hidden;
}
......
......@@ -23,6 +23,8 @@
"skyeyeView": {"name": "视图枚举", "className": "skyeye-pro#com.skyeye.common.SkyeyeViewEnum"},
"tenantEnum": {"name": "租户枚举", "className": "skyeye-pro#com.skyeye.common.enumeration.TenantEnum"},
"teamObjectType": {"name": "团队适用对象枚举", "className": "skyeye-pro#com.skyeye.team.classenum.TeamObjectTypeEnum"},
"contactsAuthEnum": {"name": "联系人权限", "className": "skyeye-pro#com.skyeye.contacts.classenum.ContactsAuthEnum", "pageUrl": "../../tpl/contacts/contactsList.html"},
"catalogAuthEnum": {"name": "目录权限", "className": "skyeye-pro#com.skyeye.catalog.classenum.CatalogAuthEnum"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册