Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
8c19b4a8
提交
8c19b4a8
编写于
5月 22, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_qyk 发布系统代码
上级
41286403
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
11 行删除
+21
-11
ibiz-group-picker.vue
...eb/src/components/ibiz-group-picker/ibiz-group-picker.vue
+6
-4
ibiz-group-select.vue
...eb/src/components/ibiz-group-select/ibiz-group-select.vue
+3
-3
main-form-base.vue
...eb/src/widgets/ibzdepartment/main-form/main-form-base.vue
+12
-4
未找到文件。
app_web/src/components/ibiz-group-picker/ibiz-group-picker.vue
浏览文件 @
8c19b4a8
...
@@ -110,9 +110,10 @@ export default class IBizGroupPicker extends Vue {
...
@@ -110,9 +110,10 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
* @memberof IBizGroupPicker
*/
*/
get
showTree
()
{
get
showTree
()
{
if
(
!
Object
.
is
(
this
.
viewData
.
srforgid
,
this
.
viewParam
.
srforgid
))
{
if
(
this
.
viewParam
.
hasfilter
&&
Object
.
is
(
this
.
viewData
.
srforgid
,
this
.
viewParam
.
filtervalue
))
{
return
tru
e
;
return
fals
e
;
}
}
return
true
;
}
}
/**
/**
...
@@ -144,7 +145,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -144,7 +145,7 @@ export default class IBizGroupPicker extends Vue {
if
(
this
.
showTree
)
{
if
(
this
.
showTree
)
{
this
.
loadTree
();
this
.
loadTree
();
}
else
{
}
else
{
this
.
loadGroupData
(
this
.
viewParam
.
srforgid
);
this
.
loadGroupData
(
this
.
viewParam
.
filtervalue
);
}
}
}
}
...
@@ -155,7 +156,8 @@ export default class IBizGroupPicker extends Vue {
...
@@ -155,7 +156,8 @@ export default class IBizGroupPicker extends Vue {
* @memberof IBizGroupPicker
* @memberof IBizGroupPicker
*/
*/
public
loadTree
()
{
public
loadTree
()
{
let
get
=
Http
.
getInstance
().
get
(
`/ibzorganizations/450000/suborg/ibzdepartments/picker`
,
true
);
let
orgid
=
this
.
viewParam
.
hasfilter
?
this
.
viewParam
.
filtervalue
:
'450000'
;
let
get
=
Http
.
getInstance
().
get
(
`/ibzorganizations/
${
orgid
}
/suborg/ibzdepartments/picker`
,
true
);
get
.
then
((
response
:
any
)
=>
{
get
.
then
((
response
:
any
)
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
this
.
treeItems
=
response
.
data
;
this
.
treeItems
=
response
.
data
;
...
...
app_web/src/components/ibiz-group-select/ibiz-group-select.vue
浏览文件 @
8c19b4a8
...
@@ -62,7 +62,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -62,7 +62,7 @@ export default class IBizGroupSelect extends Vue {
* @type {*}
* @type {*}
* @memberof IBizGroupSelect
* @memberof IBizGroupSelect
*/
*/
@
Prop
(
{
default
:
'orgid'
}
)
filter
?:
string
;
@
Prop
()
filter
?:
string
;
/**
/**
* 是否启用
* 是否启用
...
@@ -157,9 +157,9 @@ export default class IBizGroupSelect extends Vue {
...
@@ -157,9 +157,9 @@ export default class IBizGroupSelect extends Vue {
})
})
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
const
param
:
any
=
{};
const
param
:
any
=
{};
let
orgid
:
any
=
this
.
filter
;
Object
.
assign
(
param
,
{
Object
.
assign
(
param
,
{
orgid
:
this
.
data
[
orgid
],
hasfilter
:
this
.
filter
?
true
:
false
,
filtervalue
:
this
.
filter
?
this
.
data
[
this
.
filter
]
:
''
,
multiple
:
this
.
multiple
,
multiple
:
this
.
multiple
,
selects
:
sels
selects
:
sels
});
});
...
...
app_web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
8c19b4a8
...
@@ -85,10 +85,18 @@
...
@@ -85,10 +85,18 @@
</i-col>
</i-col>
<i-col
v-show=
"detailsModel.leadername.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.leadername.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'leadername'
:itemRules=
"this.rules.leadername"
class=
''
:caption=
"$t('entities.ibzdepartment.main_form.details.leadername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.leadername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'leadername'
:itemRules=
"this.rules.leadername"
class=
''
:caption=
"$t('entities.ibzdepartment.main_form.details.leadername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.leadername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
!!!!模版产生代码错误:----
<ibiz-group-select
FTL stack trace ("~" means nesting-related):
name=
"leadername"
- Failed at: ${editor.getEditorParam("FILTER")} [in template "TEMPLCODE_zh_CN" at line 137, column 56]
:value=
'data.leadername'
----
valueitem=
"leaderid"
:multiple=
"true"
:disabled=
"detailsModel.leadername.disabled"
:data=
"data"
:context=
"context"
@
formitemvaluechange=
"onFormItemValueChange"
>
</ibiz-group-select>
</app-form-item>
</app-form-item>
</i-col>
</i-col>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录