Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
3d51716a
提交
3d51716a
编写于
7月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
a1ab0f80
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
50 行删除
+34
-50
ibzteam-member-grid-view-base.vue
...bzteam-member-grid-view/ibzteam-member-grid-view-base.vue
+25
-40
state.ts
app_web/src/store/modules/view-action/state.ts
+0
-1
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+9
-9
未找到文件。
app_web/src/pages/ou/ibzteam-member-grid-view/ibzteam-member-grid-view-base.vue
浏览文件 @
3d51716a
...
...
@@ -1058,48 +1058,33 @@ export default class IBZTeamMemberGridViewBase extends Vue {
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
let
batchAddPSAppViews
:
Array
<
any
>=
[];
batchAddPSAppViews
=
[
{
view
:{
viewname
:
'ibzemployee-mpickup-view'
,
height
:
0
,
width
:
0
,
title
:
'人员数据多项选择视图'
},
res
:[
'IBZEmployee'
],
'resAppKey'
:
'userid'
}
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
ibzteammember
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
let
deResParameters
:
any
[]
=
[];
if
(
tempContext
.
ibzemployee
&&
true
){
deResParameters
=
[
{
pathName
:
'ibzemployees'
,
parameterName
:
'ibzemployee'
},
]
}
const
parameters
:
any
[]
=
[
{
pathName
:
'ibzteammembers'
,
parameterName
:
'ibzteammember'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
if
(
batchAddPSAppViews
.
length
==
0
||
!
this
.
context
.
srfparentdename
){
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'批量添加需添加N:N关系'
});
return
;
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
}
let
openViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
!==
this
.
context
.
srfparentdename
));
})
let
otherViewModel
:
any
=
batchAddPSAppViews
.
find
((
item
:
any
)
=>
{
return
(
item
.
res
&&
(
item
.
res
[
0
]
==
this
.
context
.
srfparentdename
));
})
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
openViewModel
.
view
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
args
[
0
]);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
result
.
datas
&&
result
.
datas
.
length
==
0
){
return
;
}
let
requestParam
:
Array
<
any
>
=
[];
result
.
datas
.
forEach
((
record
:
any
)
=>
{
let
tempParam
:
any
=
{};
tempParam
[
otherViewModel
.
resAppKey
]
=
this
.
context
[
'srfparentkey'
];
tempParam
[
openViewModel
.
resAppKey
]
=
record
.
srfkey
;
requestParam
.
push
(
tempParam
);
});
this
.
appEntityService
.
createBatch
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
requestParam
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'批处理操作失败'
});
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
});
openIndexViewTab
(
data
);
}
...
...
app_web/src/store/modules/view-action/state.ts
浏览文件 @
3d51716a
...
...
@@ -64,7 +64,6 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'5ef90c56e30ba698e1ba1fc05f426725'
,
'89b1f5e74703dab0fca756ece369b57d'
,
],
},
...
...
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
3d51716a
...
...
@@ -34,7 +34,7 @@
<!--输出实体[IBZTEAM]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzteam-5
0
-2"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzteam-5
1
-2"
>
<createTable
tableName=
"IBZTEAM"
>
<column
name=
"TEAMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZTEAM_TEAMID"
/>
...
...
@@ -50,7 +50,7 @@
<!--输出实体[IBZEMP]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzemp-66
1
-3"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzemp-66
2
-3"
>
<createTable
tableName=
"IBZEMP"
>
<column
name=
"USERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZEMP_USERID"
/>
...
...
@@ -204,7 +204,7 @@
<!--输出实体[IBZTEAMMEMBER]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzteammember-
49
-7"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-ibzteammember-
53
-7"
>
<createTable
tableName=
"IBZTEAMMEMBER"
>
<column
name=
"TEAMMEMBERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZTEAMMEMBER_TEAMMEMBERID"
/>
...
...
@@ -226,13 +226,13 @@
</changeSet>
<!--输出实体[IBZTEAM]外键关系 -->
<!--输出实体[IBZEMP]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
1
-9"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
2
-9"
>
<addForeignKeyConstraint
baseColumnNames=
"MDEPTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_IBZEMP_IBZDEPT_MDEPTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
1
-10"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
2
-10"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_IBZEMP_IBZORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
1
-11"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzemp-66
2
-11"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_IBZEMP_IBZPOST_POSTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBZPOST]外键关系 -->
...
...
@@ -254,13 +254,13 @@
<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>
<!--输出实体[IBZTEAMMEMBER]外键关系 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
49
-17"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
53
-17"
>
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_IBZTEAMMEMBER_IBZEMP_USE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
49
-18"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
53
-18"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_IBZTEAMMEMBER_IBZPOST_PO"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
49
-19"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"fk-ibzteammember-
53
-19"
>
<addForeignKeyConstraint
baseColumnNames=
"TEAMID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_IBZTEAMMEMBER_IBZTEAM_TE"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TEAMID"
referencedTableName=
"IBZTEAM"
validate=
"true"
/>
</changeSet>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录