提交 f52e8c11 编写于 作者: Skyeye云's avatar Skyeye云

表单布局列表信息完成

上级 a7c79f12
...@@ -107,6 +107,10 @@ layui.config({ ...@@ -107,6 +107,10 @@ layui.config({
} }
form.render(); form.render();
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable() { function loadTable() {
table.reloadData("messageTable", {where: getTableParams()}); table.reloadData("messageTable", {where: getTableParams()});
} }
......
...@@ -39,6 +39,9 @@ layui.config({ ...@@ -39,6 +39,9 @@ layui.config({
}, { }, {
title: '属性信息', title: '属性信息',
pageUrl: '../../tpl/attr/attrList.html' pageUrl: '../../tpl/attr/attrList.html'
}, {
title: '表单布局',
pageUrl: '../../tpl/dsFormPage/pageList.html'
}]; }];
if (chooseTreeNode.classMation.flowable) { if (chooseTreeNode.classMation.flowable) {
......
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" /> <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head> </head>
<body> <body>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
</div>
</div>
<div style="margin:auto 10px;"> <div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table> <table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar"> <script type="text/html" id="tableBar">
......
...@@ -39,7 +39,7 @@ layui.config({ ...@@ -39,7 +39,7 @@ layui.config({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformpage001', url: reqBasePath + 'queryDsFormPageList',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
......
var rowId = ""; var rowId = "";
var objectId = "";
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'table', 'jquery', 'winui', 'form', 'soulTable'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
table = layui.table; table = layui.table,
soulTable = layui.soulTable;
authBtn('1567731484858');
objectId = GetUrlParam("objectId");
if (isNull(objectId)) {
winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000});
return false;
}
table.render({ table.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'dsformpage001', url: reqBasePath + 'queryDsFormPageList',
where: getTableParams(), where: getTableParams(),
even: true, even: true,
page: true, page: true,
overflow: {
type: 'tips',
header: true,
total: true
},
limits: getLimits(), limits: getLimits(),
limit: getLimit(), limit: getLimit(),
cols: [[ cols: [[
...@@ -28,6 +40,9 @@ layui.config({ ...@@ -28,6 +40,9 @@ layui.config({
{ field: 'name', title: '名称', align: 'left', width: 120 }, { field: 'name', title: '名称', align: 'left', width: 120 },
{ field: 'remark', title: '简介', align: 'left', width: 350 }, { field: 'remark', title: '简介', align: 'left', width: 350 },
{ field: 'numCode', title: '编号', width: 150 }, { field: 'numCode', title: '编号', width: 150 },
{ field: 'typeName', title: '类型', align: 'left', width: 120, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("dsFormPageType", 'id', d.typeName, 'name');
}},
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 }, { field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 }, { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 }, { field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
...@@ -35,10 +50,8 @@ layui.config({ ...@@ -35,10 +50,8 @@ layui.config({
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar' } { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar' }
]], ]],
done: function(json) { done: function(json) {
soulTable.render(this);
matchingLanguage(); matchingLanguage();
initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入名称", function () {
table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()});
});
} }
}); });
...@@ -114,7 +127,7 @@ layui.config({ ...@@ -114,7 +127,7 @@ layui.config({
} }
function getTableParams() { function getTableParams() {
return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable")); return {className: objectId};
} }
exports('pageList', {}); exports('pageList', {});
......
*.class
# Package Files #
*.war
*.ear
class
.settings
*.classpath
/bin
classes
/target/
/.project/
/logs/
/.idea/
*.iml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>skyeye-web</artifactId>
<groupId>com.skyeye.web</groupId>
<version>1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dsform</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
<module>erp</module> <module>erp</module>
<module>email</module> <module>email</module>
<module>ehr</module> <module>ehr</module>
<module>dsform</module>
<module>disk-cloud</module> <module>disk-cloud</module>
<module>crm</module> <module>crm</module>
<module>common</module> <module>common</module>
......
...@@ -254,13 +254,6 @@ ...@@ -254,13 +254,6 @@
<version>1-SNAPSHOT</version> <version>1-SNAPSHOT</version>
</dependency> </dependency>
<!-- 动态表单模块 -->
<dependency>
<groupId>com.skyeye.web</groupId>
<artifactId>dsform</artifactId>
<version>1-SNAPSHOT</version>
</dependency>
<!-- 云文件模块 --> <!-- 云文件模块 -->
<dependency> <dependency>
<groupId>com.skyeye.web</groupId> <groupId>com.skyeye.web</groupId>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
"contactsAuthEnum": {"name": "联系人权限", "className": "skyeye-pro#com.skyeye.contacts.classenum.ContactsAuthEnum", "pageUrl": "../../tpl/contacts/contactsList.html"}, "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"}, "catalogAuthEnum": {"name": "目录权限", "className": "skyeye-pro#com.skyeye.catalog.classenum.CatalogAuthEnum"},
"documentAuthEnum": {"name": "文档权限", "className": "skyeye-pro#com.skyeye.document.classenum.DocumentAuthEnum"}, "documentAuthEnum": {"name": "文档权限", "className": "skyeye-pro#com.skyeye.document.classenum.DocumentAuthEnum"},
"disCussionAuthEnum": {"name": "讨论帖权限", "className": "skyeye-pro#com.skyeye.discussion.classenum.DisCussionAuthEnum"} "disCussionAuthEnum": {"name": "讨论帖权限", "className": "skyeye-pro#com.skyeye.discussion.classenum.DisCussionAuthEnum"},
"dsFormPageType": {"name": "表单布局类型", "className": "skyeye-pro#com.skyeye.dsform.classenum.DsFormPageType"}
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册