Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
a5d97ef8
提交
a5d97ef8
编写于
2月 08, 2022
作者:
zhujiamin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:调整数据选择
上级
04f9b188
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
35 行增加
和
34 行删除
+35
-34
auto-complete.hbs
...urces/templ/r7/@macro/front-end/editors/auto-complete.hbs
+5
-3
data-picker.hbs
...sources/templ/r7/@macro/front-end/editors/data-picker.hbs
+9
-13
app-drawer.vue
...empl/r7/app_{{apps}}/src/components/common/app-drawer.vue
+2
-2
app-loading.vue
...mpl/r7/app_{{apps}}/src/components/common/app-loading.vue
+5
-2
app-modal.vue
...templ/r7/app_{{apps}}/src/components/common/app-modal.vue
+2
-2
app-popover.vue
...mpl/r7/app_{{apps}}/src/components/common/app-popover.vue
+2
-2
app-data-picker.vue
...7/app_{{apps}}/src/components/editors/app-data-picker.vue
+10
-10
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/auto-complete.hbs
浏览文件 @
a5d97ef8
...
...
@@ -19,10 +19,12 @@
:localParam=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateParams
}}
"
{{/if}}
{{#if
item
.
psEditor
.
psAppDataEntity
}}
{{!-- deMajorField="getDeMajorField({{item.psEditor.psAppDataEntity.codeName}})" --}}
{{!-- deKeyField="{{item.psEditor.psAppDataEntity.codeName}}" --}}
deMajorField=
"
{{
lowerCase
item
.
psEditor
.
psAppDataEntity
.
majorPSAppDEField
.
codeName
}}
"
deKeyField=
"
{{
lowerCase
item
.
psEditor
.
psAppDataEntity
.
keyPSAppDEField
.
codeName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
acParams
}}
:acParams=
"
{{
item
.
psEditor
.
editorParams
.
acParams
}}
"
{{/if}}
{{!-- :acParams="getAcParams({{item.psEditor}})" --}}
{{#if
item
.
psEditor
.
editorParams
.
sort
}}
sort=
"
{{
item
.
psEditor
.
editorParams
.
sort
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker.hbs
浏览文件 @
a5d97ef8
...
...
@@ -15,24 +15,20 @@
{{/if}}
{{#if
item
.
psEditor
.
psNavigateParams
}}
:localParam=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psEditor
.
psNavigateParams
}}
"
{{!-- :localParam="{{item.psEditor.psNavigateParams}}" --}}
{{/if}}
:context=
"state.context"
:viewParams=
"state.viewParams"
{{#if
item
.
psEditor
.
psAppDataEntity
}}
{{!-- {{#each item.psEditor.psAppDataEntity as | filed |}} --}}
{{!-- {{#if filed.majorField}} --}}
{{!-- deMajorField="{{lowerCase filed.majorField.codeName}}" --}}
{{!-- {{/if}} --}}
{{!-- {{/each}} --}}
{{!-- deKeyField="{{item.psEditor.psAppDataEntity.codeName}}" --}}
{{/if}}
{{!-- {{#if item.psEditor.pickuppsAppView }} --}}
{{!-- :pickupView="{{item.psEditor.pickuppsAppView}}" --}}
{{!-- {{/if}} --}}
pickUpView=
"ChartDataPickupView"
deMajorField=
"
{{
lowerCase
item
.
psEditor
.
psAppDataEntity
.
majorPSAppDEField
.
codeName
}}
"
deKeyField=
"
{{
lowerCase
item
.
psEditor
.
psAppDataEntity
.
keyPSAppDEField
.
codeName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
pickupPSAppView
}}
pickUpView=
"
{{
item
.
psEditor
.
pickupPSAppView
.
codeName
}}
"
{{/if}}
{{!-- :linkView="getLinkView({{item.psEditor}})" --}}
{{!-- :acParams="getAcParams({{item.psEditor}})" --}}
{{#if
item
.
psEditor
.
editorParams
.
acParams
}}
:acParams=
"
{{
item
.
psEditor
.
editorParams
.
acParams
}}
"
{{/if}}
{{#if
item
.
psEditor
.
psAppDEACMode
.
minorSortDir
}}
sort=
"
{{
item
.
psEditor
.
psAppDEACMode
.
minorSortDir
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-drawer.vue
浏览文件 @
a5d97ef8
...
...
@@ -137,7 +137,7 @@ onMounted(() => {
*/
const
close
=
(
result
:
any
)
=>
{
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
isVisible
.
value
=
false
;
};
...
...
@@ -148,7 +148,7 @@ const close = (result: any) => {
const
viewDataChange
=
(
result
:
any
)
=>
{
tempResult
=
{
ret
:
''
};
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
};
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-loading.vue
浏览文件 @
a5d97ef8
...
...
@@ -8,7 +8,7 @@ interface Props{
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{})
let
style
=
reactive
({
width
:
'
6
00px'
,
height
:
'600px'
});
let
style
=
reactive
({
width
:
'
8
00px'
,
height
:
'600px'
});
/**
* Vue生命周期beforeMount
...
...
@@ -16,7 +16,10 @@ let style = reactive({width:'600px',height:'600px'});
onBeforeMount
(()
=>
{
if
(
props
.
width
)
{
style
.
width
=
props
.
width
+
'px'
;
}
else
if
(
props
.
height
){
}
else
{
style
.
width
=
'100%'
;
}
if
(
props
.
height
){
style
.
height
=
props
.
height
+
'px'
;
}
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-modal.vue
浏览文件 @
a5d97ef8
...
...
@@ -131,7 +131,7 @@ onMounted(() => {
*/
const
close
=
(
result
:
any
)
=>
{
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
props
.
subject
?.
next
(
tempResult
);
isVisible
.
value
=
false
;
...
...
@@ -143,7 +143,7 @@ const close = (result: any) => {
const
viewDataChange
=
(
result
:
any
)
=>
{
tempResult
=
{
ret
:
''
};
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
};
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-popover.vue
浏览文件 @
a5d97ef8
...
...
@@ -120,7 +120,7 @@ onBeforeMount(() => {
*/
const
close
=
(
result
:
any
)
=>
{
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
props
.
subject
?.
next
(
tempResult
);
};
...
...
@@ -131,7 +131,7 @@ const close = (result: any) => {
const
viewDataChange
=
(
result
:
any
)
=>
{
tempResult
=
{
ret
:
''
};
if
(
result
&&
Array
.
isArray
(
result
)
&&
result
.
length
>
0
)
{
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
datas
:
JSON
.
parse
(
JSON
.
stringify
(
result
))
});
Object
.
assign
(
tempResult
,
{
ret
:
'OK'
},
{
resultData
:
result
});
}
};
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/editors/app-data-picker.vue
浏览文件 @
a5d97ef8
...
...
@@ -177,20 +177,20 @@ const onSearch = (value: string) => {
// TODO数据服务请求数据
items
.
value
=
[
{
srfkey
:
'4646'
,
srfmajortext
:
'Jack'
,
[
props
.
deKeyField
]
:
'4646'
,
[
props
.
deMajorField
]
:
'Jack'
,
},
{
srfkey
:
'49897'
,
srfmajortext
:
'Lucy'
,
[
props
.
deKeyField
]
:
'49897'
,
[
props
.
deMajorField
]
:
'Lucy'
,
},
{
srfkey
:
'164646'
,
srfmajortext
:
'Disabled'
,
[
props
.
deKeyField
]
:
'164646'
,
[
props
.
deMajorField
]
:
'Disabled'
,
},
{
srfkey
:
'4646'
,
srfmajortext
:
'Yiminghe'
,
[
props
.
deKeyField
]
:
'4646'
,
[
props
.
deMajorField
]
:
'Yiminghe'
,
},
];
};
...
...
@@ -215,8 +215,8 @@ const doEditorEmit = (data: any[]): any => {
let
majorValue
:
any
=
''
;
let
keyValue
:
any
=
''
;
data
.
forEach
((
item
:
any
)
=>
{
majorValue
=
majorValue
+
(
majorValue
?
props
.
separator
:
''
)
+
item
[
props
.
deMajorField
!
];
keyValue
=
keyValue
+
(
keyValue
?
props
.
separator
:
''
)
+
item
[
props
.
deKeyField
];
majorValue
=
item
[
props
.
deMajorField
]
?
majorValue
+
(
majorValue
?
props
.
separator
:
''
)
+
item
[
props
.
deMajorField
]
:
majorValue
+
(
majorValue
?
props
.
separator
:
''
)
+
item
[
'srfmajortext'
];
keyValue
=
item
[
props
.
deKeyField
]
?
keyValue
+
(
keyValue
?
props
.
separator
:
''
)
+
item
[
props
.
deKeyField
]
:
keyValue
+
(
keyValue
?
props
.
separator
:
''
)
+
item
[
'srfkey'
];
});
if
(
props
.
valueItem
)
{
emit
(
'editorEvent'
,
{
tag
:
props
.
valueItem
,
action
:
'valueChange'
,
data
:
keyValue
});
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录