提交 5332268c 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 d612298f
......@@ -5,7 +5,7 @@
{{#if item.enableRowEdit}}
<div v-if="state.rowEditState" class="editor-cell">
{{#each ctrl.pSDEGridEditItems as | editColumn | }}
{{#eq editColumn.codeName . item.codeName}}
{{#eq editColumn.codeName (item.codeName)}}
{{#if item.psEditor}}
{{>(lookup . 'item.psEditor.editorType') item=item}}
{{/if}}
......
......@@ -3,5 +3,5 @@
{{>(lookup 'SUMMARYCOLUMN') item=column ctrl=ctrl}}
{{/each}}
{{else}}
<a-table-summary-cell>\{{state.dataAgg}}</a-table-summary-cell>
<a-table-summary-cell>\{{state.dataAgg}}.{{item.codeName.lowerCase}}</a-table-summary-cell>
{{/eq}}
import {{page.codeName}} from "./{{page.codeName.spinalCase}}.vue";
export { {{page.codeName}} };
import {{page.codeName}} from "./{{page.codeName.spinalCase}}.vue";
export { {{page.codeName}} };
import { createRouter, createWebHashHistory } from 'vue-router';
import { JobsInfoEditView } from '@page/jobs-info/jobs-info-edit-view';
import { JobsRegistryGridView } from '@page/jobs-registry/jobs-registry-grid-view';
const routes = [
{
path: '/JobsInfoEditView',
component: JobsInfoEditView
},
{
path: '/JobsRegistryGridView',
component: JobsRegistryGridView
},
{
path: '/',
redirect: 'JobsInfoEditView'
},
]
const router = createRouter({
history: createWebHashHistory(),
routes,
})
/**
* 全局路由守卫
*/
router.beforeEach((to, from, next) => {
next();
})
export default router;
\ No newline at end of file
import { createRouter, createWebHashHistory } from 'vue-router';
const routes = [
{
path: "/{{lowerCase app.defaultPSAppIndexView.codeName}}/:{{lowerCase app.defaultPSAppIndexView.codeName}}?",
{{!-- beforeEnter: (to: any, from: any, next: any) => {
next();
}, --}}
meta: {
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}}" },
],
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}}"),
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 codeName}}?/views/:view?",
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 codeName}}" },
{ pathName: 'views', parameterName: 'view' },
],
resource: "{{entity.codeName.lowerCase}}",
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
},
{{/if}}
{{else}}
{{#if (or (eq appView.viewType 'DEEDITVIEW') (eq appView.viewType 'DEGRIDVIEW'))}}
{
path: "{{lowerCase (pluralize appView.pSAppDataEntity.codeName)}}/:{{lowerCase codeName}}?/views/:view?",
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: 'views', parameterName: 'view' },
],
resource: "{{entity.codeName.lowerCase}}",
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
},
{{/if}}
{{/if}}
{{else}}
{{#neq app.defaultPSAppIndexView.codeName (appView.codeName)}}
{
path: 'views/:view?',
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: 'views', parameterName: 'view' },
],
requireAuth: false,
},
component: () => import("@page/{{#if appView.pSAppDataEntity}}{{spinalCase appView.pSAppDataEntity.codeName}}{{else}}default{{/if}}/{{spinalCase appView.codeName}}"),
},
{{/neq}}
{{/if}}
{{/each}}
]
},
{
path: "/",
redirect: "/{{lowerCase app.defaultPSAppIndexView.codeName}}"
},
]
const router = createRouter({
history: createWebHashHistory(),
routes,
})
/**
* 全局路由守卫
*/
router.beforeEach((to, from, next) => {
next();
})
export default router;
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册