Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

update #28

Open
wants to merge 97 commits into
base: use-jta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
50431c5
皮肤bug修复
tworry Apr 28, 2018
e6dcdee
Merge remote-tracking branch 'origin/master'
zhou-hao Apr 28, 2018
7d1fc83
皮肤bug修复
tworry Apr 28, 2018
9c0443f
Merge remote-tracking branch 'origin/master'
zhou-hao Apr 28, 2018
469d908
皮肤bug修复
tworry Apr 28, 2018
69ca75a
Merge remote-tracking branch 'origin/master'
zhou-hao Apr 28, 2018
d6ae68d
皮肤bug修复
tworry Apr 28, 2018
731752d
Merge remote-tracking branch 'origin/master'
zhou-hao Apr 28, 2018
2083325
优化动态表单
zhou-hao Apr 28, 2018
60bba7b
优化动态表单
zhou-hao Apr 28, 2018
c81025d
优化文件上传
zhou-hao May 2, 2018
a6781dc
remove jta
zhou-hao May 2, 2018
b9122b3
修复高度问题
zhou-hao May 3, 2018
6e6ee9a
增加主题参数设置
zhou-hao May 3, 2018
215370e
修复样式错误
zhou-hao May 3, 2018
ce3d9f4
优化动态表单
zhou-hao May 3, 2018
5ae3783
add layui
zhou-hao May 4, 2018
b7acbd8
优化代码生成器
zhou-hao May 4, 2018
7188f07
add data table
zhou-hao May 6, 2018
a187ac3
增加数据源配置
zhou-hao May 9, 2018
216bf40
全新的首页
zhou-hao May 12, 2018
3254e2e
优化
zhou-hao May 12, 2018
e6ce90a
update always
zhou-hao May 12, 2018
35c78ff
#17 更新miniui.js和miniui.css版本;修复tab关闭按钮,采用字体文件。
tworry May 15, 2018
3b84cce
优化表单设计器
zhou-hao May 16, 2018
69267ba
修复隐藏bug
zhou-hao May 16, 2018
2e192d8
#17 修复更换版本带来的button样式错误.
tworry May 17, 2018
8233edc
#17 修复更换版本带来的button样式错误.
tworry May 21, 2018
c38ad81
#17 修复更换版本带来的button样式错误.
tworry May 21, 2018
c447522
优化表单设计器
zhou-hao May 26, 2018
3305cde
Delete 93345825771341.jpg
zhou-hao May 30, 2018
c88b534
Delete 9224b9d9a7ba0e606ca5f83a89681e33
zhou-hao May 30, 2018
48db135
Delete c2443131007849c3a959d0132474de1a
zhou-hao May 30, 2018
da8440f
Delete 2813fd35203a12dcd6bbeb9e7dbb4e52
zhou-hao May 30, 2018
c4dc1dc
Delete ac2604ccec8fd4fd4208e6d9fd8b9cb2
zhou-hao May 30, 2018
73ab280
Delete b166470237a4ed80b55fbcca46b578f8
zhou-hao May 30, 2018
aff73e1
升级hsweb
zhou-hao Jun 4, 2018
2474194
hsweb-flowable-modeler 3.0
zhou-hao Jun 4, 2018
ecd3754
删除弃用的依赖
zhou-hao Jun 4, 2018
1a0b5d0
修复包错误
zhou-hao Jun 4, 2018
e7b33e3
优化配置
zhou-hao Jun 4, 2018
2053c30
#17 修复更换版本带来的button样式错误.
tworry Jun 13, 2018
28bf7e7
增加数据字典
zhou-hao Jul 13, 2018
dab615c
优化动态表单配置
zhou-hao Jul 13, 2018
bb4f11e
修复无法设置高度
zhou-hao Jul 15, 2018
1950367
增加工作流
zhou-hao Jul 15, 2018
6cdb65d
Merge remote-tracking branch 'origin/master'
zhou-hao Jul 15, 2018
c705c55
Merge remote-tracking branch 'origin/master'
zhou-hao Jul 16, 2018
2a0a8ae
优化
zhou-hao Jul 19, 2018
29305da
修改designer的部分样式
tworry Jul 24, 2018
b326b91
优化文字描述
zhou-hao Jul 27, 2018
0c5f45c
Merge remote-tracking branch 'origin/master'
zhou-hao Jul 27, 2018
db1639c
Update list.js
zhou-hao Jul 30, 2018
432517d
优化文件上传
zhou-hao Aug 8, 2018
172854f
Merge remote-tracking branch 'origin/master'
zhou-hao Aug 8, 2018
309391f
增加数据源管理
zhou-hao Sep 18, 2018
23569c4
增加文件预览demo
zhou-hao Sep 19, 2018
63ebf8b
3.0.0
zhou-hao Sep 19, 2018
b70b68d
增加useIdForName
zhou-hao Sep 26, 2018
798dac2
useIdForName
zhou-hao Sep 26, 2018
c889718
修改高度
zhou-hao Oct 10, 2018
6b5c6c6
升级hsweb到3.0.1
zhou-hao Oct 10, 2018
90694ee
fix bug #24
zhou-hao Oct 10, 2018
0b667f3
优化复制失败的逻辑
zhou-hao Oct 16, 2018
526a6d8
升级hsweb依赖
zhou-hao Oct 16, 2018
22e1b46
尝试优化卡顿
zhou-hao Oct 17, 2018
058fc01
修复若干bug
zhou-hao Nov 2, 2018
db72132
一些列页面优化
zhou-hao Nov 28, 2018
b1131f7
增加docker
zhou-hao Nov 28, 2018
f1807bc
docker run -d
zhou-hao Nov 28, 2018
41bb773
增加双重验证demo
zhou-hao Dec 4, 2018
0def860
优化配置
zhou-hao Jan 21, 2019
7e42669
ignore data
zhou-hao Jan 21, 2019
f05ca86
优化配置
zhou-hao Jan 21, 2019
151c804
validationQuery
zhou-hao Jan 21, 2019
08dbc1a
优化配置
zhou-hao Jan 22, 2019
b9e0920
postgresql
zhou-hao Jan 24, 2019
b964c40
3.0.7-SNAPSHOT
zhou-hao Feb 20, 2019
10e3669
3.0.7
zhou-hao Feb 27, 2019
8bac671
优化表单设计器
zhou-hao Mar 5, 2019
7e9cf39
Merge remote-tracking branch 'origin/master'
zhou-hao Mar 15, 2019
f28174b
增加docker-compose.yml
zhou-hao Mar 15, 2019
b7041a6
3.0.8-SNAPSHOT
zhou-hao Mar 18, 2019
94be3b8
Merge remote-tracking branch 'origin/master'
zhou-hao Mar 18, 2019
b6f4fab
修复获取表单配置时没有删掉被删除的控件
zhou-hao Apr 24, 2019
c0451e5
优化加载逻辑
zhou-hao Apr 24, 2019
8f14a76
Merge remote-tracking branch 'origin/master'
zhou-hao Apr 24, 2019
74d026d
优化子表单多层结构
zhou-hao Apr 24, 2019
f42981d
优化子表单多层结构
zhou-hao Apr 24, 2019
780a07b
修复错误
zhou-hao Apr 24, 2019
644578f
优化标题居中
zhou-hao May 2, 2019
8174cfd
修复复制表单样式问题
zhou-hao May 2, 2019
bd16a38
3.0.8
zhou-hao May 2, 2019
5305a31
加载时移除无用配置
zhou-hao May 11, 2019
4a91a6d
fix #30
zhou-hao May 17, 2019
4d5d5c0
修复占位符高度问题
zhou-hao May 21, 2019
0754b0a
hsweb3.0.9, 优化页面
zhou-hao Sep 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM java:8
FROM openjdk:8

COPY target/hsweb-demo.jar /app.jar
COPY hsweb-ui /hsweb-ui
COPY docker-entrypoint.sh /
#COPY data /data
COPY config /config
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT ["/docker-entrypoint.sh"]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ http://cdn-blog.jetbrains.org.cn/doc/all.html
$ ./mvnw spring-boot:run
```

docker:
```bash
$ docker run -d --name hsweb3-demo -p 8089:8089 hsweb/hsweb-demo:3.0.1
```

或者导入ide,等待maven依赖下载完后执行:
``org.hswebframework.web.demo.Application.main``

启动成功后打开: http://localhost:8089 ,帐号:admin 密码:admin
启动成功后打开: http://localhost:8089 ,帐号:admin 密码:admin.

## 数据库
demo默认使用h2作为数据库,可直接修改`application-dev.yml`配置中的:`spring.datasource.url`,
启动服务会自动初始化数据.目前支持:`h2`,`oracle`,`mysql`,`postgresql`.

## 无法下载依赖?
查看maven的settings.xml是否配置了私服,删掉或者mirrorOf不要为*
Expand Down
Binary file added config/font/FZLTCXHJW.TTF
Binary file not shown.
Binary file added config/font/YaHei.Consolas.1.12.ttf
Binary file not shown.
Binary file added config/font/simfang.ttf
Binary file not shown.
Binary file added config/font/simhei.ttf
Binary file not shown.
Binary file added config/font/simkai.ttf
Binary file not shown.
Binary file added config/font/simsun.ttc
Binary file not shown.
47 changes: 47 additions & 0 deletions config/fop-configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<fop version="1.0">
<!-- Strict user configuration -->
<strict-configuration>true</strict-configuration>

<!-- Strict FO validation -->
<strict-validation>true</strict-validation>

<!-- Base URL for resolving relative URLs -->
<base>./config</base>

<!-- Font Base URL for resolving relative font URLs -->
<font-base>./config/font</font-base>

<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>

<!-- default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in"/>

<!-- Use file name nl_Bel instead of the default nl_BE -->
<hyphenation-pattern lang="nl" country="BE">nl_Bel</hyphenation-pattern>

<!-- etc. etc..... -->
<fonts>
<font kerning="yes" embed-url="config/font/YaHei.Consolas.1.12.ttf">
<font-triplet name="YaHei Consolas Hybrid" style="normal" weight="normal"/>
<font-triplet name="Microsoft YaHei" style="normal" weight="normal"/>
<font-triplet name="微软雅黑" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="config/font/FZLTCXHJW.TTF">
<font-triplet name="FZLanTingHeiS" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="config/font/simfang.ttf">
<font-triplet name="宋体" style="normal" weight="normal"/>
<font-triplet name="仿宋" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="config/font/simhei.ttf">
<font-triplet name="黑体" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="config/font/simkai.ttf">
<font-triplet name="楷体" style="normal" weight="normal"/>
</font>
</fonts>
</fop>
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '2'
services:
# redis:
# image: redis
# ports:
# - "6379:6379"
mysql:
image: mysql:5.7
volumes:
- "database:/var/lib/mysql"
restart: always
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
TZ: Asia/Shanghai
MYSQL_USER: root
MYSQL_HOST: "%"
MYSQL_ROOT_PASSWORD: 12345
MYSQL_DATABASE: hsweb
ports:
- "3306:3306"
volumes:
database:
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
java -jar $JAVA_OPTS -server \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseCGroupMemoryLimitForHeap \
-XX:-OmitStackTraceInFastThrow \
-Djava.security.egd=file:/dev/./urandom \
/app.jar
147 changes: 147 additions & 0 deletions hsweb-ui/admin/autz-settings/permission-setting.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>权限设置</title>
<script data-main="permission-setting.js" src="../boot.js" type="text/javascript"></script>
</head>
<body style="display: none">
<div id="layout" class="mini-layout" style="width:100%;height:92%;">

<div title="快捷导航" expanded="false" showProxyText="true" width="220" region="east"
showCloseButton="true" showSplitIcon="true">
<ul id="permission-tree" class="mini-tree" style="width:100%;padding:5px;height: 100%" showTreeIcon="true" textField="name" idField="id">
</ul>
</div>
<div title="center" region="center">
<div class="mini-fit" id="permission-container">

</div>
</div>
</div>

<div style="width: 100px;margin: 10px auto auto;">
<a class="mini-button save-button">保存</a>
<a class="mini-button close-button" plain="true">关闭</a>
</div>

<div class="mini-window" allowResize="true" showToolbar="true" id="fieldWindow" style="width: 600px;height: 400px"
title="字段权限">
<div property="toolbar" style="padding:5px;">
<a class="mini-button save-field-access">保存</a>
<a class="mini-button" plain="true" onclick="mini.get('fieldWindow').hide()">关闭</a>
</div>
<div class="mini-fit" id="field-access-container">
</div>
</div>

<div class="mini-window" allowResize="true" showToolbar="true" id="dataAccessWindow" style="width: 600px;height: 400px"
title="数据权限">
<div property="toolbar" style="padding:5px;">
<a class="mini-button save-data-access">保存</a>
<a class="mini-button" plain="true" onclick="mini.get('dataAccessWindow').hide()">关闭</a>
</div>
<div class="mini-fit" id="data-access-container">
<div class="data-access-group OWN_USER">
<div class="data-access-title ">
<span>仅限本人的数据</span>
</div>
<div class="data-access-action-list">
<input id="OWN_USER" class="mini-checkboxlist">
</div>
</div>

<div class="data-access-group POSITION_SCOPE">
<div class="data-access-title ">
<span>仅限本人和下属的数据</span>
</div>
<div class="data-access-action-list">
<input id="POSITION_SCOPE" class="mini-checkboxlist">
</div>
</div>

<div class="data-access-group DEPARTMENT_SCOPE">
<div class="data-access-title ">
<span>仅限所在部门的数据</span>
</div>
<div class="data-access-action-list">
<input id="DEPARTMENT_SCOPE" class="mini-checkboxlist">
</div>
</div>

<div class="data-access-group ORG_SCOPE">
<div class="data-access-title ">
<span>仅限所在机构的数据</span>
</div>
<div class="data-access-action-list">
<input id="ORG_SCOPE" class="mini-checkboxlist">
</div>
</div>

</div>
</div>

</body>
</html>
<style type="text/css">
.mini-panel-toolbar {
background: white;
padding: 4px;
}

.field-access-group, .data-access-group {
width: 95%;
margin: auto;
min-height: 30px;
border-bottom: 1px solid #c9c9c9;
font-size: 16px;
}

.field-access-title, .data-access-title {
float: left;
height: 25px;
line-height: 25px;
width: 150px;
}

.data-access-title span {
cursor: pointer;
}


span.mini-tools-edit {
width: 16px;
height: 16px;
background: url(../../plugins/miniui/themes/icons/edit.gif) no-repeat;
}

.mini-panel-border {
border: 1px solid white;
}

.mini-list-icon {
font-size: 18px;
height: 13px;
}

.mini-checkboxlist table {
width: 100%;
}

.mini-checkboxlist-td {
width: 24.99999%;
}

.mini-checkboxlist table label, .mini-radiobuttonlist table label {
font-size: 16px;
cursor: pointer;
}

.panel-button {
margin-right: 10px;
color: #0b93d9;
text-decoration: none;
font-size: 14px;
font-weight: bold;
}
</style>
Loading