Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
025f1945
提交
025f1945
编写于
4月 29, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
0a0a83cb
变更
19
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
177 行增加
和
18 行删除
+177
-18
app-file-upload.less
app_web/src/components/app-file-upload/app-file-upload.less
+0
-1
ibzdepartment_en_US.ts
...eb/src/locale/lanres/ibzdepartment/ibzdepartment_en_US.ts
+14
-0
ibzdepartment_zh_CN.ts
...eb/src/locale/lanres/ibzdepartment/ibzdepartment_zh_CN.ts
+14
-0
ibzemployee_en_US.ts
app_web/src/locale/lanres/ibzemployee/ibzemployee_en_US.ts
+38
-0
ibzemployee_zh_CN.ts
app_web/src/locale/lanres/ibzemployee/ibzemployee_zh_CN.ts
+38
-0
ibzorganization_en_US.ts
...rc/locale/lanres/ibzorganization/ibzorganization_en_US.ts
+12
-0
ibzorganization_zh_CN.ts
...rc/locale/lanres/ibzorganization/ibzorganization_zh_CN.ts
+12
-0
interceptor.ts
app_web/src/utils/interceptor/interceptor.ts
+4
-3
pom.xml
ibzou-app/ibzou-app-web/pom.xml
+4
-3
ibzou-app-web.yaml
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
+16
-0
IBZDepartmentServiceImpl.java
...bizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
+1
-1
IBZEmployeeServiceImpl.java
.../ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
+1
-1
IBZOrganizationServiceImpl.java
...zlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
+1
-1
DEPrivs.json
ibzou-core/src/main/resources/deprivs/DEPrivs.json
+3
-3
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+2
-2
IBZOrganizationMapper.xml
...urces/mapper/ou/ibzorganization/IBZOrganizationMapper.xml
+14
-0
IBZDepartmentResource.java
...ain/java/cn/ibizlab/ouapi/rest/IBZDepartmentResource.java
+1
-1
IBZEmployeeResource.java
.../main/java/cn/ibizlab/ouapi/rest/IBZEmployeeResource.java
+1
-1
IBZOrganizationResource.java
...n/java/cn/ibizlab/ouapi/rest/IBZOrganizationResource.java
+1
-1
未找到文件。
app_web/src/components/app-file-upload/app-file-upload.less
浏览文件 @
025f1945
.app-file-upload{
.upload-col{
text-align: center;
.button-preview{
padding: 8px 15px 8.5px 15px;
.ivu-badge{
...
...
app_web/src/locale/lanres/ibzdepartment/ibzdepartment_en_US.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
deptid
:
'部门标识'
,
deptcode
:
'部门代码'
,
deptname
:
'部门名称'
,
orgid
:
'单位'
,
parentdeptid
:
'上级部门'
,
shortname
:
'部门简称'
,
deptlevel
:
'部门级别'
,
showorder
:
'排序'
,
bcode
:
'业务编码'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
"部门"
,
...
...
app_web/src/locale/lanres/ibzdepartment/ibzdepartment_zh_CN.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
deptid
:
'部门标识'
,
deptcode
:
'部门代码'
,
deptname
:
'部门名称'
,
orgid
:
'单位'
,
parentdeptid
:
'上级部门'
,
shortname
:
'部门简称'
,
deptlevel
:
'部门级别'
,
showorder
:
'排序'
,
bcode
:
'业务编码'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
'部门'
,
...
...
app_web/src/locale/lanres/ibzemployee/ibzemployee_en_US.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
userid
:
'用户标示'
,
username
:
'用户全局名'
,
personname
:
'姓名'
,
usercode
:
'用户工号'
,
loginname
:
'登录名'
,
password
:
'密码'
,
domains
:
'区属'
,
mdeptid
:
'主部门'
,
mdeptcode
:
'主部门代码'
,
mdeptname
:
'主部门名称'
,
bcode
:
'业务编码'
,
postid
:
'岗位'
,
postcode
:
'岗位代码'
,
postname
:
'岗位名称'
,
orgid
:
'单位'
,
orgcode
:
'单位代码'
,
orgname
:
'单位名称'
,
nickname
:
'昵称别名'
,
sex
:
'性别'
,
certcode
:
'证件号码'
,
phone
:
'联系方式'
,
birthday
:
'出生日期'
,
email
:
'邮件'
,
avatar
:
'社交账号'
,
addr
:
'地址'
,
usericon
:
'照片'
,
ipaddr
:
'ip地址'
,
theme
:
'样式'
,
lang
:
'语言'
,
fontsize
:
'字号'
,
memo
:
'备注'
,
reserver
:
'保留'
,
showorder
:
'排序'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
"人员"
,
...
...
app_web/src/locale/lanres/ibzemployee/ibzemployee_zh_CN.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
userid
:
'用户标示'
,
username
:
'用户全局名'
,
personname
:
'姓名'
,
usercode
:
'用户工号'
,
loginname
:
'登录名'
,
password
:
'密码'
,
domains
:
'区属'
,
mdeptid
:
'主部门'
,
mdeptcode
:
'主部门代码'
,
mdeptname
:
'主部门名称'
,
bcode
:
'业务编码'
,
postid
:
'岗位'
,
postcode
:
'岗位代码'
,
postname
:
'岗位名称'
,
orgid
:
'单位'
,
orgcode
:
'单位代码'
,
orgname
:
'单位名称'
,
nickname
:
'昵称别名'
,
sex
:
'性别'
,
certcode
:
'证件号码'
,
phone
:
'联系方式'
,
birthday
:
'出生日期'
,
email
:
'邮件'
,
avatar
:
'社交账号'
,
addr
:
'地址'
,
usericon
:
'照片'
,
ipaddr
:
'ip地址'
,
theme
:
'样式'
,
lang
:
'语言'
,
fontsize
:
'字号'
,
memo
:
'备注'
,
reserver
:
'保留'
,
showorder
:
'排序'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
'人员'
,
...
...
app_web/src/locale/lanres/ibzorganization/ibzorganization_en_US.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
orgid
:
'单位标识'
,
orgcode
:
'单位代码'
,
orgname
:
'名称'
,
parentorgid
:
'上级单位'
,
shortname
:
'单位简称'
,
orglevel
:
'单位级别'
,
showorder
:
'排序'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
"单位机构"
,
...
...
app_web/src/locale/lanres/ibzorganization/ibzorganization_zh_CN.ts
浏览文件 @
025f1945
export
default
{
fields
:
{
orgid
:
'单位标识'
,
orgcode
:
'单位代码'
,
orgname
:
'名称'
,
parentorgid
:
'上级单位'
,
shortname
:
'单位简称'
,
orglevel
:
'单位级别'
,
showorder
:
'排序'
,
enable
:
'逻辑有效'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
},
views
:
{
editview
:
{
caption
:
'单位机构'
,
...
...
app_web/src/utils/interceptor/interceptor.ts
浏览文件 @
025f1945
import
{
Store
}
from
'vuex'
;
import
axios
from
'axios'
;
import
Router
from
'vue-router'
;
import
i18n
from
'@/locale'
;
/**
...
...
@@ -81,13 +82,13 @@ export class Interceptors {
appdata
=
this
.
store
.
getters
.
getAppData
();
}
if
(
appdata
&&
appdata
.
context
)
{
config
.
headers
.
srforgsectorid
=
appdata
.
context
.
srforgsectorid
;
//config.headers.srforgsectorname = appdata.context.srforgsectorname;
config
.
headers
[
'srforgsectorid'
]
=
appdata
.
context
.
srforgsectorid
;
}
if
(
window
.
localStorage
.
getItem
(
'token'
))
{
const
token
=
window
.
localStorage
.
getItem
(
'token'
);
config
.
headers
.
Authorization
=
`Bearer
${
token
}
`
;
config
.
headers
[
'Authorization'
]
=
`Bearer
${
token
}
`
;
}
config
.
headers
[
'Accept-Language'
]
=
i18n
.
locale
;
// if (!config.url.startsWith('https://') && !config.url.startsWith('http://')) {
// config.url = Environment.BaseUrl + config.url;
// }
...
...
ibzou-app/ibzou-app-web/pom.xml
浏览文件 @
025f1945
...
...
@@ -22,7 +22,7 @@
</dependencies>
<properties>
<docker.image.prefix>
172.16.100.243:5000/ibiz
</docker.image.prefix>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
...
...
@@ -103,12 +103,13 @@
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.b
uild.directory
}/src/main/docker
</dockerDirectory>
<dockerDirectory>
${project.b
asedir
}/src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<directory>
../../
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
...
...
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
0 → 100644
浏览文件 @
025f1945
version
:
"
3.2"
services
:
ibzou-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzou-app-web:latest
ports
:
-
"
8080:8080"
networks
:
-
agent_network
deploy
:
mode
:
replicated
replicas
:
1
networks
:
agent_network
:
driver
:
overlay
attachable
:
true
\ No newline at end of file
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
浏览文件 @
025f1945
...
...
@@ -146,7 +146,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
public
void
removeByParentdeptid
(
String
deptid
)
{
this
.
remove
(
new
QueryWrapper
<
IBZDepartment
>().
eq
(
"deptid"
,
deptid
));
this
.
remove
(
new
QueryWrapper
<
IBZDepartment
>().
eq
(
"
p
deptid"
,
deptid
));
}
@Override
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
浏览文件 @
025f1945
...
...
@@ -147,7 +147,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
public
void
removeByMdeptid
(
String
deptid
)
{
this
.
remove
(
new
QueryWrapper
<
IBZEmployee
>().
eq
(
"deptid"
,
deptid
));
this
.
remove
(
new
QueryWrapper
<
IBZEmployee
>().
eq
(
"
m
deptid"
,
deptid
));
}
@Override
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
浏览文件 @
025f1945
...
...
@@ -149,7 +149,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
public
void
removeByParentorgid
(
String
orgid
)
{
this
.
remove
(
new
QueryWrapper
<
IBZOrganization
>().
eq
(
"orgid"
,
orgid
));
this
.
remove
(
new
QueryWrapper
<
IBZOrganization
>().
eq
(
"
p
orgid"
,
orgid
));
}
...
...
ibzou-core/src/main/resources/deprivs/DEPrivs.json
浏览文件 @
025f1945
...
...
@@ -6,7 +6,7 @@
"delogicname"
:
"部门"
,
"sysmoudle"
:{
"id"
:
"OU"
,
"name"
:
"组织人事"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"默认数据集"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
_ORG"
,
"name"
:
"当前
部门"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
ORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级
部门"
}],
"deprivs"
:[{
"id"
:
"READ"
,
"name"
:
"READ"
},{
"id"
:
"CREATE"
,
"name"
:
"CREATE"
},{
"id"
:
"UPDATE"
,
"name"
:
"UPDATE"
},{
"id"
:
"DELETE"
,
"name"
:
"DELETE"
}]
}
,
...
...
@@ -15,7 +15,7 @@
"delogicname"
:
"人员"
,
"sysmoudle"
:{
"id"
:
"OU"
,
"name"
:
"组织人事"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"默认数据集"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
_ORG"
,
"name"
:
"当前
部门"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
ORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级
部门"
}],
"deprivs"
:[{
"id"
:
"READ"
,
"name"
:
"READ"
},{
"id"
:
"CREATE"
,
"name"
:
"CREATE"
},{
"id"
:
"UPDATE"
,
"name"
:
"UPDATE"
},{
"id"
:
"DELETE"
,
"name"
:
"DELETE"
}]
}
,
...
...
@@ -24,7 +24,7 @@
"delogicname"
:
"单位机构"
,
"sysmoudle"
:{
"id"
:
"OU"
,
"name"
:
"组织人事"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"默认数据集"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
_ORG"
,
"name"
:
"当前
部门"
}],
"dedatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CUR
ORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级
部门"
}],
"deprivs"
:[{
"id"
:
"READ"
,
"name"
:
"READ"
},{
"id"
:
"CREATE"
,
"name"
:
"CREATE"
},{
"id"
:
"UPDATE"
,
"name"
:
"UPDATE"
},{
"id"
:
"DELETE"
,
"name"
:
"DELETE"
}]
}
]
...
...
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
025f1945
...
...
@@ -2,7 +2,7 @@
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<!--输出实体[IBZORG]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzorg-32
4
-1"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzorg-32
8
-1"
>
<createTable
tableName=
"IBZORG"
>
<column
name=
"ORGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZORG_ORGID"
/>
...
...
@@ -137,7 +137,7 @@
</changeSet>
<!--输出实体[IBZORG]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzorg-32
4
-4"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzorg-32
8
-4"
>
<addForeignKeyConstraint
baseColumnNames=
"PORGID"
baseTableName=
"IBZORG"
constraintName=
"DER1N_IBZORG_IBZORG_PORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBZEMP]外键关系 -->
...
...
ibzou-core/src/main/resources/mapper/ou/ibzorganization/IBZOrganizationMapper.xml
浏览文件 @
025f1945
...
...
@@ -52,6 +52,20 @@
]]>
</sql>
<!--数据查询[SelectPOrg]-->
<sql
id=
"SelectPOrg"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`ENABLE`, t1.`ORGCODE`, t1.`ORGID`, t1.`ORGLEVEL`, t1.`ORGNAME`, t1.`PORGID`, t1.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE` FROM `IBZORG` t1
WHERE t1.ENABLE = 1
]]>
</sql>
<!--数据查询[SelectSOrg]-->
<sql
id=
"SelectSOrg"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`ENABLE`, t1.`ORGCODE`, t1.`ORGID`, t1.`ORGLEVEL`, t1.`ORGNAME`, t1.`PORGID`, t1.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE` FROM `IBZORG` t1
WHERE t1.ENABLE = 1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`ENABLE`, t1.`ORGCODE`, t1.`ORGID`, t1.`ORGLEVEL`, t1.`ORGNAME`, t1.`PORGID`, t1.`SHORTNAME`, t1.`SHOWORDER`, t1.`UPDATEDATE` FROM `IBZORG` t1
...
...
ibzou-provider/ibzou-provider-ouapi/src/main/java/cn/ibizlab/ouapi/rest/IBZDepartmentResource.java
浏览文件 @
025f1945
...
...
@@ -114,7 +114,7 @@ public class IBZDepartmentResource {
@PreAuthorize
(
"hasPermission('','
CREATE
',this.getEntity())"
)
@PreAuthorize
(
"hasPermission('','
READ
',this.getEntity())"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"IBZDepartment"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzdepartments/getdraft"
)
public
ResponseEntity
<
IBZDepartmentDTO
>
getDraft
()
{
...
...
ibzou-provider/ibzou-provider-ouapi/src/main/java/cn/ibizlab/ouapi/rest/IBZEmployeeResource.java
浏览文件 @
025f1945
...
...
@@ -168,7 +168,7 @@ public class IBZEmployeeResource {
@PreAuthorize
(
"hasPermission('','
CREATE
',this.getEntity())"
)
@PreAuthorize
(
"hasPermission('','
READ
',this.getEntity())"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"IBZEmployee"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzemployees/getdraft"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
getDraft
()
{
...
...
ibzou-provider/ibzou-provider-ouapi/src/main/java/cn/ibizlab/ouapi/rest/IBZOrganizationResource.java
浏览文件 @
025f1945
...
...
@@ -155,7 +155,7 @@ public class IBZOrganizationResource {
@PreAuthorize
(
"hasPermission('','
CREATE
',this.getEntity())"
)
@PreAuthorize
(
"hasPermission('','
READ
',this.getEntity())"
)
@ApiOperation
(
value
=
"GetDraft"
,
tags
=
{
"IBZOrganization"
},
notes
=
"GetDraft"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/getdraft"
)
public
ResponseEntity
<
IBZOrganizationDTO
>
getDraft
()
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录