Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
de9fa3ce
提交
de9fa3ce
编写于
5月 27, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
f6ffd920
变更
14
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
218 行增加
和
82 行删除
+218
-82
ibzdepartment_en_US.ts
...eb/src/locale/lanres/ibzdepartment/ibzdepartment_en_US.ts
+6
-1
ibzdepartment_zh_CN.ts
...eb/src/locale/lanres/ibzdepartment/ibzdepartment_zh_CN.ts
+6
-1
ibzorganization_en_US.ts
...rc/locale/lanres/ibzorganization/ibzorganization_en_US.ts
+1
-0
ibzorganization_zh_CN.ts
...rc/locale/lanres/ibzorganization/ibzorganization_zh_CN.ts
+1
-0
page-register.ts
app_web/src/pages/ou/ouindex-view/page-register.ts
+2
-2
router.ts
app_web/src/pages/ou/ouindex-view/router.ts
+23
-23
state.ts
app_web/src/store/modules/view-action/state.ts
+2
-0
edit-grid-grid-base.vue
...gets/ibzdepartment/edit-grid-grid/edit-grid-grid-base.vue
+114
-39
edit-grid-grid-model.ts
...gets/ibzdepartment/edit-grid-grid/edit-grid-grid-model.ts
+22
-7
main-form-base.vue
...eb/src/widgets/ibzdepartment/main-form/main-form-base.vue
+1
-1
default-searchform-base.vue
...ganization/default-searchform/default-searchform-base.vue
+25
-3
default-searchform-model.ts
...ganization/default-searchform/default-searchform-model.ts
+5
-0
main-grid-model.ts
.../src/widgets/ibzorganization/main-grid/main-grid-model.ts
+5
-0
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+5
-5
未找到文件。
app_web/src/locale/lanres/ibzdepartment/ibzdepartment_en_US.ts
浏览文件 @
de9fa3ce
...
...
@@ -128,15 +128,20 @@ export default {
},
editgrid_grid
:
{
columns
:
{
deptid
:
"部门标识"
,
deptcode
:
"部门代码"
,
deptname
:
"部门名称"
,
orgname
:
"单位"
,
pdeptname
:
"上级部门"
,
shortname
:
"部门简称"
,
deptlevel
:
"部门级别"
,
bcode
:
"业务编码"
,
leadername
:
"分管领导"
,
showorder
:
"排序"
,
createdate
:
"创建时间"
,
updatedate
:
"最后修改时间"
,
leaderid
:
"分管领导标识"
,
orgid
:
"单位"
,
pdeptid
:
"上级部门"
,
},
uiactions
:
{
},
...
...
app_web/src/locale/lanres/ibzdepartment/ibzdepartment_zh_CN.ts
浏览文件 @
de9fa3ce
...
...
@@ -127,15 +127,20 @@ export default {
},
editgrid_grid
:
{
columns
:
{
deptid
:
'部门标识'
,
deptcode
:
'部门代码'
,
deptname
:
'部门名称'
,
orgname
:
'单位'
,
pdeptname
:
'上级部门'
,
shortname
:
'部门简称'
,
deptlevel
:
'部门级别'
,
bcode
:
'业务编码'
,
leadername
:
'分管领导'
,
showorder
:
'排序'
,
createdate
:
'创建时间'
,
updatedate
:
'最后修改时间'
,
leaderid
:
'分管领导标识'
,
orgid
:
'单位'
,
pdeptid
:
'上级部门'
,
},
uiactions
:
{
},
...
...
app_web/src/locale/lanres/ibzorganization/ibzorganization_en_US.ts
浏览文件 @
de9fa3ce
...
...
@@ -108,6 +108,7 @@ export default {
orgcode
:
"单位代码(文本左包含(%#))"
,
n_orgname_like
:
"名称(%)"
,
n_porgid_eq
:
"上级单位(=)"
,
porgname
:
"上级单位(等于(=))"
,
},
uiactions
:
{
},
...
...
app_web/src/locale/lanres/ibzorganization/ibzorganization_zh_CN.ts
浏览文件 @
de9fa3ce
...
...
@@ -107,6 +107,7 @@ export default {
orgcode
:
'单位代码(文本左包含(%#))'
,
n_orgname_like
:
'名称(%)'
,
n_porgid_eq
:
'上级单位(=)'
,
porgname
:
'上级单位(等于(=))'
,
},
uiactions
:
{
},
...
...
app_web/src/pages/ou/ouindex-view/page-register.ts
浏览文件 @
de9fa3ce
export
const
PageComponents
=
{
install
(
Vue
:
any
,
opt
:
any
)
{
Vue
.
component
(
'ibzdepartment-option-view'
,
()
=>
import
(
'@pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.vue'
));
Vue
.
component
(
'ibzemployee-edit-view'
,
()
=>
import
(
'@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'
));
Vue
.
component
(
'ibzdepartment-option-view'
,
()
=>
import
(
'@pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.vue'
));
Vue
.
component
(
'ibzdepartment-pickup-grid-view'
,
()
=>
import
(
'@pages/ou/ibzdepartment-pickup-grid-view/ibzdepartment-pickup-grid-view.vue'
));
Vue
.
component
(
'ibzemployee-grid-view'
,
()
=>
import
(
'@pages/ou/ibzemployee-grid-view/ibzemployee-grid-view.vue'
));
Vue
.
component
(
'ibzorganization-option-view'
,
()
=>
import
(
'@pages/ou/ibzorganization-option-view/ibzorganization-option-view.vue'
));
...
...
app_web/src/pages/ou/ouindex-view/router.ts
浏览文件 @
de9fa3ce
...
...
@@ -35,39 +35,40 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/ou/ouindex-view/ouindex-view.vue'
),
children
:
[
{
path
:
'ibzorganizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/
optionview/:option
view?'
,
path
:
'ibzorganizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/
ibzemployees/:ibzemployee?/editview/:edit
view?'
,
meta
:
{
caption
:
'entities.ibz
department.views.option
view.caption'
,
caption
:
'entities.ibz
employee.views.edit
view.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibzorganizations'
,
parameterName
:
'ibzorganization'
},
{
pathName
:
'ibzdepartments'
,
parameterName
:
'ibzdepartment'
},
{
pathName
:
'optionview'
,
parameterName
:
'optionview'
},
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/ou/ibz
department-option-view/ibzdepartment-option
-view.vue'
),
component
:
()
=>
import
(
'@pages/ou/ibz
employee-edit-view/ibzemployee-edit
-view.vue'
),
},
{
path
:
'ibz
departments/:ibzdepartment?/optionview/:option
view?'
,
path
:
'ibz
organizations/:ibzorganization?/ibzemployees/:ibzemployee?/editview/:edit
view?'
,
meta
:
{
caption
:
'entities.ibz
department.views.option
view.caption'
,
caption
:
'entities.ibz
employee.views.edit
view.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibzdepartments'
,
parameterName
:
'ibzdepartment'
},
{
pathName
:
'optionview'
,
parameterName
:
'optionview'
},
{
pathName
:
'ibzorganizations'
,
parameterName
:
'ibzorganization'
},
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/ou/ibz
department-option-view/ibzdepartment-option
-view.vue'
),
component
:
()
=>
import
(
'@pages/ou/ibz
employee-edit-view/ibzemployee-edit
-view.vue'
),
},
{
path
:
'ibz
organizations/:ibzorganization?/ibz
departments/:ibzdepartment?/ibzemployees/:ibzemployee?/editview/:editview?'
,
path
:
'ibzdepartments/:ibzdepartment?/ibzemployees/:ibzemployee?/editview/:editview?'
,
meta
:
{
caption
:
'entities.ibzemployee.views.editview.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibzorganizations'
,
parameterName
:
'ibzorganization'
},
{
pathName
:
'ibzdepartments'
,
parameterName
:
'ibzdepartment'
},
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
...
...
@@ -77,12 +78,11 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'
),
},
{
path
:
'ibz
organizations/:ibzorganization?/ibz
employees/:ibzemployee?/editview/:editview?'
,
path
:
'ibzemployees/:ibzemployee?/editview/:editview?'
,
meta
:
{
caption
:
'entities.ibzemployee.views.editview.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibzorganizations'
,
parameterName
:
'ibzorganization'
},
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
],
...
...
@@ -91,31 +91,31 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'
),
},
{
path
:
'ibz
departments/:ibzdepartment?/ibzemployees/:ibzemployee?/editview/:edit
view?'
,
path
:
'ibz
organizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/optionview/:option
view?'
,
meta
:
{
caption
:
'entities.ibz
employee.views.edit
view.caption'
,
caption
:
'entities.ibz
department.views.option
view.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibzorganizations'
,
parameterName
:
'ibzorganization'
},
{
pathName
:
'ibzdepartments'
,
parameterName
:
'ibzdepartment'
},
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
{
pathName
:
'optionview'
,
parameterName
:
'optionview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/ou/ibz
employee-edit-view/ibzemployee-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/ou/ibz
department-option-view/ibzdepartment-option
-view.vue'
),
},
{
path
:
'ibz
employees/:ibzemployee?/editview/:edit
view?'
,
path
:
'ibz
departments/:ibzdepartment?/optionview/:option
view?'
,
meta
:
{
caption
:
'entities.ibz
employee.views.edit
view.caption'
,
caption
:
'entities.ibz
department.views.option
view.caption'
,
parameters
:
[
{
pathName
:
'ouindexview'
,
parameterName
:
'ouindexview'
},
{
pathName
:
'ibz
employees'
,
parameterName
:
'ibzemployee
'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
{
pathName
:
'ibz
departments'
,
parameterName
:
'ibzdepartment
'
},
{
pathName
:
'
optionview'
,
parameterName
:
'option
view'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/ou/ibz
employee-edit-view/ibzemployee-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/ou/ibz
department-option-view/ibzdepartment-option
-view.vue'
),
},
{
path
:
'ibzorganizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/pickupgridview/:pickupgridview?'
,
...
...
app_web/src/store/modules/view-action/state.ts
浏览文件 @
de9fa3ce
...
...
@@ -97,6 +97,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'9e25d15d43ff644fa008c9cf7d063ac3'
,
],
},
{
...
...
@@ -167,6 +168,7 @@ export const viewstate: any = {
viewdatachange
:
false
,
refviews
:
[
'12cffa053a1d3e22ab397b1164338cfb'
,
'9e25d15d43ff644fa008c9cf7d063ac3'
,
'995d26f289a30e31573d557a5f5ba254'
,
],
},
...
...
app_web/src/widgets/ibzdepartment/edit-grid-grid/edit-grid-grid-base.vue
浏览文件 @
de9fa3ce
...
...
@@ -22,33 +22,6 @@
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
<
template
v-if=
"getColumnState('deptid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'deptid'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.deptid')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.deptid'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
v-if=
"actualIsOpenEdit"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<input-box
:disabled=
"row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'deptid'
editorType=
"TEXTBOX"
:value=
"row.deptid"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('deptcode')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'deptcode'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.deptcode')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
...
...
@@ -103,6 +76,30 @@
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('orgname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'orgname'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.orgname')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.orgname'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
orgname
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('pdeptname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'pdeptname'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.pdeptname')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.pdeptname'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
pdeptname
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('shortname')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'shortname'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.shortname')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
...
...
@@ -184,6 +181,18 @@
</template>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('leadername')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'leadername'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.leadername')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.leadername'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
leadername
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('showorder')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'showorder'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.showorder')"
:width=
"150"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
...
...
@@ -235,6 +244,42 @@
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('leaderid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'leaderid'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.leaderid')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.leaderid'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
leaderid
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('orgid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'orgid'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.orgid')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.orgid'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
orgid
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('pdeptid')"
>
<el-table-column
show-overflow-tooltip
:prop=
"'pdeptid'"
:label=
"$t('entities.ibzdepartment.editgrid_grid.columns.pdeptid')"
:width=
"100"
:align=
"'left'"
:sortable=
"'custom'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.ibzdepartment.editgrid_grid.columns.pdeptid'
)
}}
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
pdeptid
}}
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</
template
>
...
...
@@ -712,13 +757,6 @@ export default class EditGridBase extends Vue implements ControlInterface {
* @memberof EditGrid
*/
public
allColumns
:
any
[]
=
[
{
name
:
'deptid'
,
label
:
'部门标识'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.deptid'
,
show
:
true
,
util
:
'px'
},
{
name
:
'deptcode'
,
label
:
'部门代码'
,
...
...
@@ -733,6 +771,20 @@ export default class EditGridBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'px'
},
{
name
:
'orgname'
,
label
:
'单位'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.orgname'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'pdeptname'
,
label
:
'上级部门'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.pdeptname'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'shortname'
,
label
:
'部门简称'
,
...
...
@@ -754,6 +806,13 @@ export default class EditGridBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'px'
},
{
name
:
'leadername'
,
label
:
'分管领导'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.leadername'
,
show
:
true
,
util
:
'PX'
},
{
name
:
'showorder'
,
label
:
'排序'
,
...
...
@@ -775,6 +834,27 @@ export default class EditGridBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'px'
},
{
name
:
'leaderid'
,
label
:
'分管领导标识'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.leaderid'
,
show
:
false
,
util
:
'PX'
},
{
name
:
'orgid'
,
label
:
'单位'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.orgid'
,
show
:
false
,
util
:
'PX'
},
{
name
:
'pdeptid'
,
label
:
'上级部门'
,
langtag
:
'entities.ibzdepartment.editgrid_grid.columns.pdeptid'
,
show
:
false
,
util
:
'PX'
},
]
/**
...
...
@@ -793,7 +873,6 @@ export default class EditGridBase extends Vue implements ControlInterface {
*/
public
getGridRowModel
(){
return
{
deptid
:
new
FormItemModel
(),
bcode
:
new
FormItemModel
(),
deptcode
:
new
FormItemModel
(),
showorder
:
new
FormItemModel
(),
...
...
@@ -811,10 +890,6 @@ export default class EditGridBase extends Vue implements ControlInterface {
* @memberof EditGrid
*/
public
rules
:
any
=
{
deptid
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'部门标识 值不能为空'
,
trigger
:
'blur'
},
],
bcode
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'业务编码 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'业务编码 值不能为空'
,
trigger
:
'blur'
},
...
...
app_web/src/widgets/ibzdepartment/edit-grid-grid/edit-grid-grid-model.ts
浏览文件 @
de9fa3ce
...
...
@@ -26,6 +26,11 @@ export default class EditGridModel {
]
}
else
{
return
[
{
name
:
'leaderid'
,
prop
:
'leaderid'
,
dataType
:
'TEXT'
,
},
{
name
:
'bcode'
,
prop
:
'bcode'
,
...
...
@@ -47,25 +52,25 @@ export default class EditGridModel {
dataType
:
'TEXT'
,
},
{
name
:
'srf
key
'
,
name
:
'srf
dataaccaction
'
,
prop
:
'deptid'
,
dataType
:
'TEXT'
,
},
{
name
:
'srf
dataaccaction
'
,
name
:
'srf
key
'
,
prop
:
'deptid'
,
dataType
:
'TEXT'
,
},
{
name
:
'leadername'
,
prop
:
'leadername'
,
dataType
:
'TEXT'
,
},
{
name
:
'pdeptid'
,
prop
:
'parentdeptid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'deptid'
,
prop
:
'deptid'
,
dataType
:
'TEXT'
,
},
{
name
:
'orgid'
,
prop
:
'orgid'
,
...
...
@@ -76,6 +81,16 @@ export default class EditGridModel {
prop
:
'deptcode'
,
dataType
:
'TEXT'
,
},
{
name
:
'orgname'
,
prop
:
'orgname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'pdeptname'
,
prop
:
'parentdeptname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'shortname'
,
prop
:
'shortname'
,
...
...
app_web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
de9fa3ce
...
...
@@ -52,7 +52,7 @@
:value=
'data.leadername'
valueitem=
"leaderid"
url=
"/ibzorganizations/$
{selected-orgid}/ibzemployees/picker"
treeurl="/ibzorganizations/${orgid}/suborg/picker"
:multiple="true"
filter="orgid"
:fillmap="{'id':'leaderid','label':'leadername'}"
...
...
app_web/src/widgets/ibzorganization/default-searchform/default-searchform-base.vue
浏览文件 @
de9fa3ce
...
...
@@ -16,9 +16,9 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.
n_porgid_eq
.visible"
:style=
"
{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'
n_porgid_eq'
:itemRules=
"this.rules.n_porgid_eq"
class=
''
:caption=
"$t('entities.ibzorganization.default_searchform.details.n_porgid_eq')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_porgid_eq
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-org-select
:data=
"data"
:context=
"JSON.parse(JSON.stringify(context))"
:fillMap=
"
{'id':'n_porgid_eq','label':'
n_porgid_eq'}" url="/ibzorganizations/alls/suborg/picker" filter="srforgid" :multiple="false" style="
" @select-change="onFormItemValueChange">
</app-org-select>
<i-col
v-show=
"detailsModel.
porgname
.visible"
:style=
"
{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item
name=
'
porgname'
:itemRules=
"this.rules.porgname"
class=
''
:caption=
"$t('entities.ibzorganization.default_searchform.details.porgname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.porgname
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-org-select
:data=
"data"
:context=
"JSON.parse(JSON.stringify(context))"
:fillMap=
"
{'id':'n_porgid_eq','label':'
porgname'}" url="/ibzorganizations/alls/suborg/picker" filter="srforgid" :multiple="false" style="width:100px;
" @select-change="onFormItemValueChange">
</app-org-select>
</app-form-item>
</i-col>
...
...
@@ -265,6 +265,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
orgcode
:
null
,
n_orgname_like
:
null
,
n_porgid_eq
:
null
,
porgname
:
null
,
};
/**
...
...
@@ -292,6 +293,12 @@ export default class DefaultBase extends Vue implements ControlInterface {
{
required
:
false
,
type
:
'string'
,
message
:
'上级单位(=) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'上级单位(=) 值不能为空'
,
trigger
:
'blur'
},
],
porgname
:
[
{
type
:
'string'
,
message
:
'上级单位(等于(=)) 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'上级单位(等于(=)) 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'上级单位(等于(=)) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'上级单位(等于(=)) 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
@@ -308,6 +315,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
n_orgname_like
:
new
FormItemModel
({
caption
:
'名称(%)'
,
detailType
:
'FORMITEM'
,
name
:
'n_orgname_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
n_porgid_eq
:
new
FormItemModel
({
caption
:
'上级单位(=)'
,
detailType
:
'FORMITEM'
,
name
:
'n_porgid_eq'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
porgname
:
new
FormItemModel
({
caption
:
'上级单位(等于(=))'
,
detailType
:
'FORMITEM'
,
name
:
'porgname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
};
...
...
@@ -347,6 +356,18 @@ export default class DefaultBase extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'n_porgid_eq'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 porgname 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@
Watch
(
'data.porgname'
)
onPorgnameChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'porgname'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 重置表单项值
...
...
@@ -371,6 +392,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
}
/**
...
...
app_web/src/widgets/ibzorganization/default-searchform/default-searchform-model.ts
浏览文件 @
de9fa3ce
...
...
@@ -40,6 +40,11 @@ export default class DefaultModel {
prop
:
'parentorgid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'porgname'
,
prop
:
'parentorgname'
,
dataType
:
'PICKUPTEXT'
,
},
]
}
...
...
app_web/src/widgets/ibzorganization/main-grid/main-grid-model.ts
浏览文件 @
de9fa3ce
...
...
@@ -110,6 +110,11 @@ export default class MainModel {
prop
:
'n_porgid_eq'
,
dataType
:
'PICKUP'
,
},
{
name
:
'porgname'
,
prop
:
'porgname'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'size'
,
...
...
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
de9fa3ce
...
...
@@ -4,7 +4,7 @@
<!--输出实体[IBZORG]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzorg-43
7
-1"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzorg-43
9
-1"
>
<createTable
tableName=
"IBZORG"
>
<column
name=
"ORGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZORG_ORGID"
/>
...
...
@@ -126,7 +126,7 @@
<!--输出实体[IBZDEPT]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzdept-68
2
-4"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzdept-68
4
-4"
>
<createTable
tableName=
"IBZDEPT"
>
<column
name=
"DEPTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZDEPT_DEPTID"
/>
...
...
@@ -161,7 +161,7 @@
</changeSet>
<!--输出实体[IBZORG]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzorg-43
7
-5"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzorg-43
9
-5"
>
<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]外键关系 -->
...
...
@@ -179,10 +179,10 @@
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_IBZDEPTMEMBER_IBZEMP_USE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBZDEPT]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzdept-68
2
-10"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzdept-68
4
-10"
>
<addForeignKeyConstraint
baseColumnNames=
"PDEPTID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_IBZDEPT_IBZDEPT_PDEPTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzdept-68
2
-11"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzdept-68
4
-11"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_IBZDEPT_IBZORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录