Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
d6d10bc5
提交
d6d10bc5
编写于
12月 29, 2021
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:调整应用路由
上级
2ba62cd4
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
35 行增加
和
82 行删除
+35
-82
index.ts.hbs
...c/page/{{appModules}}/{{pages@APPINDEXVIEW}}/index.ts.hbs
+1
-1
index.ts.hbs
...src/page/{{appModules}}/{{pages@DEEDITVIEW}}/index.ts.hbs
+1
-1
index.ts.hbs
...src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/index.ts.hbs
+1
-1
index.ts.hbs
...n/resources/templ/r7/app_{{apps}}/src/router/index.ts.hbs
+32
-79
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@APPINDEXVIEW}}/index.ts.hbs
浏览文件 @
d6d10bc5
import
{{
page
.
codeName
}}
from "./
{{
spinalCase
page
.
codeName
}}
.vue";
export
{
{{
page
.
codeName
}}
};
export
default
{{
page
.
codeName
}
}
;
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEEDITVIEW}}/index.ts.hbs
浏览文件 @
d6d10bc5
import
{{
page
.
codeName
}}
from "./
{{
spinalCase
page
.
codeName
}}
.vue";
export
{
{{
page
.
codeName
}}
};
export
default
{{
page
.
codeName
}
}
;
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/index.ts.hbs
浏览文件 @
d6d10bc5
import
{{
page
.
codeName
}}
from "./
{{
spinalCase
page
.
codeName
}}
.vue";
export
{
{{
page
.
codeName
}}
};
export
default
{{
page
.
codeName
}
}
;
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/router/index.ts.hbs
浏览文件 @
d6d10bc5
...
...
@@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory } from 'vue-router';
const routes = [
{
path: "/
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
/:
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
?",
path: "/
apps/:app
?",
{{!-- beforeEnter: (to: any, from: any, next: any) => {
next();
}, --}}
...
...
@@ -10,94 +10,47 @@ const routes = [
captionTag: "
{{#if
app
.
defaultPSAppIndexView
.
capPSLanguageRes
}}{{
app
.
defaultPSAppIndexView
.
capPSLanguageRes
.
lanResTag
}}{{/if}}
",
caption: "
{{
app
.
defaultPSAppIndexView
.
caption
}}
",
viewType: "
{{
app
.
defaultPSAppIndexView
.
viewType
}}
",
dynaModelFilePath: "
{{
app
.
defaultPSAppIndexView
.
dynaModelFilePath
}}
",
{{#if
app
.
defaultPSAppIndexView
.
psSysImage
}}
imgPath: "
{{
app
.
defaultPSAppIndexView
.
psSysImage
.
imagePath
}}
",
iconCls: "
{{
app
.
defaultPSAppIndexView
.
psSysImage
.
cssClass
}}
",
{{/if}}
parameters: [
{ pathName: "
views", parameterName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
" },
{ pathName: "
apps", parameterName: "app
" },
],
requireAuth:
{{#
eq
app
.
defaultPSAppIndexView
.
accUserMode
0
}}
false
{{else}}{{#
eq
app
.
defaultPSAppIndexView
.
accUserMode
3
}}
false
{{else}}
true
{{/
eq
}}{{/
eq
}}
,
},
component: () => import("@page/
{{#if
app
.
defaultPSAppIndexView
.
psAppDataEntity
}}{{
spinalCase
app
.
defaultPSAppIndexView
.
psAppDataEntity
.
codeName
}}{{else}}
default
{{/if}}
/
{{
spinalCase
app
.
defaultPSAppIndexView
.
codeName
}}
/
{{
spinalCase
app
.
defaultPSAppIndexView
.
codeName
}}
.vue
"),
component: () => import("@page/
default/
{{
spinalCase
app
.
defaultPSAppIndexView
.
codeName
}}
"),
children: [
{{#
each
app
.
allPSAppViews
as
|
appView
|
}}
{{!-- 实体视图 --}}
{{#if
appView
.
psAppDataEntity
}}
{{!-- 多重路径 --}}
{{#if
appView
.
psAppDataEntity
.
psAppDERSPathCount
}}
{{#if
(
or
(
eq
appView
.
viewType
'DEEDITVIEW'
)
(
eq
appView
.
viewType
'DEGRIDVIEW'
))
}}
{
path: "
{{
lowerCase
(
pluralize
appView
.
psAppDataEntity
.
codeName
)
}}
/:
{{
lowerCase
appView
.
psAppDataEntity
.
codeName
}}
?/
{{
lowerCase
appView
.
codeName
}}
/:
{{
lowerCase
appView
.
codeName
}}
?",
meta: {
captionTag: "
{{#if
appView
.
capPSLanguageRes
}}{{
appView
.
capPSLanguageRes
.
lanResTag
}}{{/if}}
",
caption: "
{{
appView
.
caption
}}
",
viewType: "
{{
appView
.
viewType
}}
",
info:'',
{{#if
appView
.
psSysImage
}}
imgPath: "
{{
appView
.
psSysImage
.
imagePath
}}
",
iconCls: "
{{
appView
.
psSysImage
.
cssClass
}}
",
{{#
each
app
.
appEntityResources
as
|
appEntityResource
|
}}
{{#if
appEntityResource
.
appDataEntity
.
allPSAppViews
}}
{{#
each
appEntityResource
.
appDataEntity
.
allPSAppViews
as
|
appView
|
}}
{{#if
(
or
(
eq
appView
.
viewType
'DEEDITVIEW'
)
(
eq
appView
.
viewType
'DEGRIDVIEW'
))
}}
{
path: "
{{
appEntityResource
.
path
}}
/views/
{{
lowerCase
appView
.
codeName
}}
",
meta: {
{{#if
appView
.
capPSLanguageRes
}}
captionTag: "
{{
appView
.
capPSLanguageRes
.
lanResTag
}}
",
{{/if}}
caption: "
{{
appView
.
caption
}}
",
viewType: "
{{
appView
.
viewType
}}
",
{{#if
appView
.
psSysImage
}}
imgPath: "
{{
appView
.
psSysImage
.
imagePath
}}
",
iconCls: "
{{
appView
.
psSysImage
.
cssClass
}}
",
{{/if}}
parameters: [
{ pathName: "apps", parameterName: "app" },
{{#if
appEntityResource
.
majorCodeName
}}
{ pathName: "
{{
pluralize
appEntityResource
.
majorCodeName
}}
", parameterName: "
{{
appEntityResource
.
majorCodeName
}}
" },
{{/if}}
{ pathName: "
{{
pluralize
appEntityResource
.
curCodeName
}}
", parameterName: "
{{
appEntityResource
.
curCodeName
}}
" }
],
requireAuth: false,
},
component: () => import("@page/
{{#if
psAppDataEntity
}}{{
spinalCase
psAppDataEntity
.
codeName
}}{{else}}
default
{{/if}}
/
{{
spinalCase
appView
.
codeName
}}
"),
},
{{/if}}
parameters: [
{ pathName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
", parameterName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
" },
{ pathName: "
{{
lowerCase
(
pluralize
appView
.
psAppDataEntity
.
codeName
)
}}
", parameterName: "
{{
lowerCase
codeName
}}
" },
{ pathName: "
{{
lowerCase
appView
.
codeName
}}
", parameterName: "
{{
lowerCase
appView
.
codeName
}}
" },
],
resource: "
{{
lowerCase
entity
.
codeName
}}
",
requireAuth: false,
},
component: () => import("@page/
{{#if
appView
.
psAppDataEntity
}}{{
spinalCase
appView
.
psAppDataEntity
.
codeName
}}{{else}}
default
{{/if}}
/
{{
spinalCase
appView
.
codeName
}}
/
{{
spinalCase
appView
.
codeName
}}
.vue"),
},
{{/if}}
{{else}}
{{#if
(
or
(
eq
appView
.
viewType
'DEEDITVIEW'
)
(
eq
appView
.
viewType
'DEGRIDVIEW'
))
}}
{
path: "
{{
lowerCase
(
pluralize
appView
.
psAppDataEntity
.
codeName
)
}}
/:
{{
lowerCase
appView
.
psAppDataEntity
.
codeName
}}
?/
{{
lowerCase
appView
.
codeName
}}
/:
{{
lowerCase
appView
.
codeName
}}
?",
meta: {
captionTag: "
{{#if
appView
.
capPSLanguageRes
}}{{
appView
.
capPSLanguageRes
.
lanResTag
}}{{/if}}
",
caption: "
{{
appView
.
caption
}}
",
viewType: "
{{
appView
.
viewType
}}
",
info:'',
{{#if
appView
.
psSysImage
}}
imgPath: "
{{
appView
.
psSysImage
.
imagePath
}}
",
iconCls: "
{{
appView
.
psSysImage
.
cssClass
}}
",
{{/if}}
parameters: [
{ pathName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
", parameterName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
" },
{ pathName: "
{{
lowerCase
(
pluralize
appView
.
psAppDataEntity
.
codeName
)
}}
", parameterName: "
{{
lowerCase
appView
.
psAppDataEntity
.
codeName
}}
" },
{ pathName: "
{{
lowerCase
appView
.
codeName
}}
", parameterName: "
{{
lowerCase
appView
.
codeName
}}
" },
],
resource: "
{{
lowerCase
entity
.
codeName
}}
",
requireAuth: false,
},
component: () => import("@page/
{{#if
appView
.
psAppDataEntity
}}{{
spinalCase
appView
.
psAppDataEntity
.
codeName
}}{{else}}
default
{{/if}}
/
{{
spinalCase
appView
.
codeName
}}
/
{{
spinalCase
appView
.
codeName
}}
.vue"),
},
{{/if}}
{{/if}}
{{else}}
{{#
neq
app
.
defaultPSAppIndexView
.
codeName
(
appView
.
codeName
)
}}
{
path: "
{{
lowerCase
appView
.
codeName
}}
/:
{{
lowerCase
appView
.
codeName
}}
?",
meta: {
captionTag: "
{{#if
appView
.
capPSLanguageRes
}}{{
appView
.
capPSLanguageRes
.
lanResTag
}}{{/if}}
",
caption: "
{{
appView
.
caption
}}
",
viewType: "
{{
appView
.
viewType
}}
",
info:'',
{{#if
appView
.
psSysImage
}}
imgPath: "
{{
appView
.
psSysImage
.
imagePath
}}
",
iconCls: "
{{
appView
.
psSysImage
.
cssClass
}}
",
{{/if}}
parameters: [
{ pathName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
", parameterName: "
{{
lowerCase
app
.
defaultPSAppIndexView
.
codeName
}}
" },
{ pathName: "
{{
lowerCase
appView
.
codeName
}}
", parameterName: "
{{
lowerCase
appView
.
codeName
}}
" },
],
requireAuth: false,
},
component: () => import("@page/
{{#if
appView
.
psAppDataEntity
}}{{
spinalCase
appView
.
psAppDataEntity
.
codeName
}}{{else}}
default
{{/if}}
/
{{
spinalCase
appView
.
codeName
}}
/
{{
spinalCase
appView
.
codeName
}}
.vue"),
},
{{/
neq
}}
{{/if}}
{{/
each
}}
{{/if}}
{{/
each
}}
]
},
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录