提交 09c0d462 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 7d4d8377
......@@ -4293,6 +4293,44 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc136',
resourcetag: '',
},
{
id: '8A434246-2C87-4473-A2DE-D41BD3BA7812',
name: 'menuitem257',
text: 'vue3视图部件测试',
type: 'MENUITEM',
counterid: '',
tooltip: 'vue3视图部件测试',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: 'DC94D6F9-506A-4AAD-9158-CE32B600FCB3',
name: 'menuitem258',
text: '树视图',
type: 'MENUITEM',
counterid: '',
tooltip: '树视图',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc137',
resourcetag: '',
},
],
},
],
}];
......
......@@ -1073,6 +1073,19 @@ const router = new Router({
},
component: () => import('@pages/sample/app-portal-view2/app-portal-view2.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr3treeview/:usr3treeview?',
meta: {
caption: 'DE.LNAME.IBIZBOOK',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3treeview', parameterName: 'usr3treeview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-tree-view/ibizbookusr3-tree-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usreditview_plugin/:usreditview_plugin?',
meta: {
......
// 基于 @VIEW/实体树视图/VIEW.scss.ftl 生成
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.search-contant {
height: 40px;
.ivu-input-wrapper {
max-width: 400px;
padding-top: 6px;
}
}
.tree-contant {
height: 100%;
margin: 0px 0px 16px 0;
overflow: auto;
}
.ibizbookusr3-tree-view{
position: relative;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKUsr3TreeViewBase from './ibizbookusr3-tree-view-base.vue';
import view_tree from '@widgets/ibizbook/treebasics-treeview/treebasics-treeview.vue';
// 基于 @VIEW/实体树视图/VIEW.vue.ftl 生成
@Component({
components: {
view_tree,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKUsr3TreeView extends IBIZBOOKUsr3TreeViewBase {
}
</script>
\ No newline at end of file
......@@ -163,6 +163,7 @@ export const PageComponents = {
Vue.component('ibizbookusr-grid-view-col-plugin', () => import('@pages/sample/ibizbookusr-grid-view-col-plugin/ibizbookusr-grid-view-col-plugin.vue'));
Vue.component('ibizbookusr-edit-view-action-plugin', () => import('@pages/sample/ibizbookusr-edit-view-action-plugin/ibizbookusr-edit-view-action-plugin.vue'));
Vue.component('ibizbookusr10-edit-view', () => import('@pages/sample/ibizbookusr10-edit-view/ibizbookusr10-edit-view.vue'));
Vue.component('ibizbookusr3-tree-view', () => import('@pages/sample/ibizbookusr3-tree-view/ibizbookusr3-tree-view.vue'));
Vue.component('ibizappviewgrid-view', () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'));
Vue.component('ibizappviewlist-view', () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'));
Vue.component('ibizappctrlgrid-view', () => import('@pages/sample/ibizappctrlgrid-view/ibizappctrlgrid-view.vue'));
......
......@@ -2447,6 +2447,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookusr10-edit-view/ibizbookusr10-edit-view.vue'),
},
{
path: 'ibizbooks/:ibizbook?/usr3treeview/:usr3treeview?',
meta: {
caption: 'DE.LNAME.IBIZBOOK',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3treeview', parameterName: 'usr3treeview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-tree-view/ibizbookusr3-tree-view.vue'),
},
{
path: 'ibizappviews/:ibizappview?/gridview/:gridview?',
meta: {
......@@ -4739,6 +4753,19 @@ const router = new Router({
},
component: () => import('@pages/sample/app-portal-view2/app-portal-view2.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr3treeview/:usr3treeview?',
meta: {
caption: 'DE.LNAME.IBIZBOOK',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3treeview', parameterName: 'usr3treeview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbookusr3-tree-view/ibizbookusr3-tree-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usreditview_plugin/:usreditview_plugin?',
meta: {
......
......@@ -74,9 +74,26 @@
<template #nav_breadcrumb1>
<app-index-nav-breadcrumb name="nav_breadcrumb1" :layoutModelDetails="layoutModelDetails" indexViewTag="app-index-view" />
</template>
<template #appmenu1>
<app-ctrl-pos name="appmenu1" :layoutModelDetails="layoutModelDetails">
<span>部件占位appmenu1</span>
<template #appmenu>
<app-ctrl-pos name="appmenu" :layoutModelDetails="layoutModelDetails">
<view_appmenu
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:pViewCtx="viewCtx"
:showBusyIndicator="true"
v-model="collapseChange"
:mode="mode"
:navModel="navModel"
viewtag="app-index-view"
:selectTheme="selectTheme"
:isDefaultPage="isDefaultPage"
:isBlankMode="isBlankMode"
:defPSAppView="defPSAppView"
name="appmenu"
ref='appmenu'
@closeview="closeView($event)">
</view_appmenu>
</app-ctrl-pos>
</template>
<template #nav_pos1>
......@@ -316,9 +333,9 @@ export default class AppIndexViewBase extends Vue {
button_calluilogic10:{ name: 'button_calluilogic10', type: 'VIEWLAYOUT', caption: '自定义按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DANGER', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DANGER', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'NONE', noprivdisplaymode: 2, dataaccaction: '', visabled: true, disabled: false }, renderMode: '', },
open_yuque:{ name: 'open_yuque', type: 'VIEWLAYOUT', caption: '语雀文档', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZOrder', visabled: true, disabled: false }, renderMode: '', },
nav_breadcrumb1:{ name: 'nav_breadcrumb1', type: 'VIEWLAYOUT', caption: '面包屑导航', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , viewType: 'APPINDEXVIEW', predefinedType: 'NAV_BREADCRUMB', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
appmenu1:{ name: 'appmenu1', type: 'VIEWLAYOUT', caption: '首页菜单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this },
appmenu:{ name: 'appmenu', type: 'VIEWLAYOUT', caption: '首页菜单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this },
nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , viewType: 'APPINDEXVIEW', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['app_apptitle','view_pagecaption','static_label1','static_text1','field_text_dynamic','field_textbox4','field_switch','field_textbox','field_textbox1','field_textbox2','field_textbox3','field_qrcode','button_link1','button_openview','button_calluilogic1','button_calluilogic2','button_calluilogic3','button_calluilogic5','button_calluilogic6','button_calluilogic8','button_calluilogic9','button_calluilogic10','open_yuque','nav_breadcrumb1','appmenu1','nav_pos1'] , dataRegionType: 'INHERIT' }
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['app_apptitle','view_pagecaption','static_label1','static_text1','field_text_dynamic','field_textbox4','field_switch','field_textbox','field_textbox1','field_textbox2','field_textbox3','field_qrcode','button_link1','button_openview','button_calluilogic1','button_calluilogic2','button_calluilogic3','button_calluilogic5','button_calluilogic6','button_calluilogic8','button_calluilogic9','button_calluilogic10','open_yuque','nav_breadcrumb1','appmenu','nav_pos1'] , dataRegionType: 'INHERIT' }
}
/**
......
......@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator';
import AppIndexViewBase from './app-index-view-base.vue';
import view_appmenu from '@widgets/app/app-index-view-appmenu/app-index-view-appmenu.vue';
import view_appmenu from '@widgets/app/main-menu-appmenu/main-menu-appmenu.vue';
// 基于 @VIEW/应用首页视图/VIEW.vue.ftl 生成
@Component({
......
......@@ -632,6 +632,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '406f27bfbbbe3bb0f15d8d77ca63e24c',
viewmodule: 'Sample',
viewname: 'IBIZBOOKUsr3TreeView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '427E25F6-DBD4-451B-B20E-87929E061C95',
viewmodule: 'Sample',
......@@ -1103,6 +1112,7 @@ export const viewstate: any = {
'611B670D-30A4-44D8-A0F7-DD1266265CD6',
'F7892096-9D26-49A7-A1E6-9D49CE5D60EA',
'237aa26a288713e29a1e733394564d3a',
'406f27bfbbbe3bb0f15d8d77ca63e24c',
],
},
{
......@@ -2900,8 +2910,169 @@ export const viewstate: any = {
refviews: [
'96bc1e4d0d5d6b66d639f401966b375b',
'E74D4E6C-CFF5-4CBA-8195-FD943B3B910F',
'bb609fe4b67afe2ec2d2e29112101036',
'cbfcd74d365d562cbfa3ba6deef39e86',
'8c29a026990571a81823c5d28a7a65be',
'13ef3d4d33b09ee1ec5db7ffe4aba7bd',
'fc7153dc2bad2d7b6242bb4e9df1f06a',
'3d5803767cb3743ed92096aff4ca2b72',
'719cc3351f6eb6a08535ae8e2fecd70d',
'37e96c2a2e91cfbb1c2b076eb854a18e',
'e5906164ac1e621f61dc58171942293a',
'8cd3518b09373c8e68a33b07c8b13f24',
'1b7854b9c53e32582b1460c78b9e6a5a',
'a4a4cf34a667f154c69d2875c432174e',
'fe9a43198dae9a3e4c169b82abfc45d9',
'6fc6218fc86e96de517098930877b4e1',
'1537c652f07bf274abca85c3ec73476d',
'0c12587a9c2813dc9cb5768741caaab6',
'5a7f64501efa880864c3fa2dd470afd4',
'231651109e4b11477dcf988577d43c3e',
'7ccb985d6fc6a6795502a2ba742f95b5',
'e03416faeeb9c0c865622b794599cc0e',
'e8271b561f5fcb9e1701252f7cb2e337',
'f102adb54492a593c95a66e09402da81',
'eb7b89e6e628ba9fef4c9a684390b59e',
'c49fda1f55b84da055e850e06093b843',
'24eda604d53b477c9c8446aad6d3eb61',
'e445494f8d658d87d054b1fc51831af1',
'6e838643ecb37eab99428cd3fc5ce15a',
'f607b539780782c46c34643913d06f4b',
'535287f8b07f35be0e294617f6682962',
'c49a553a6cf0eb372176797db3e14b08',
'52aa6409ffc18f950f8a44c5aa025d5e',
'e6b64344b4671dee26c707efa2888c22',
'c575c51d887b8d1cbd6f4440cdba57cc',
'517580eb2dc02c481b306635c52fb1a3',
'976f539a818edcebd5be476bf86dd219',
'36bc83bf45e2fbb5a963ad751cb9a13f',
'55f7fd4d93f5f52c0d0ad59cc61ca1e6',
'4b4b6bbaee54107c3312bf71ec82cdee',
'5e8bc82666968fa3ccaa22e2285ef375',
'0284801f3401351c5ec95ae8daf3ca0a',
'66ec326d0b2e789e37fdabdb41353db2',
'be796b135f7a2f9a83e22a91a0d21db9',
'd54cede78592924ae6725eb401e369b9',
'3631bff49cffd36899f9fc96dcd6486e',
'0c1719540d6f515fa021b477e3990dbf',
'f775b5fa118588587f6f02af5f79ec1f',
'f648af083c8e5e8246f5f36417007fac',
'ead4022bac3aa8cca83057d80db6eeaf',
'51c9c90b36b67d3ae19f5e456d320667',
'f5c0f96d96b00d91622801fbcd628472',
'de45503483d6c321ff4ab1b3baadb4b2',
'928a942475ba1a858fcf2877aa88fdfb',
'f6975355692e6ed98980899d0813e095',
'd0683173aefd706f451cf652552c5dd7',
'1f795e078a81b2f7471a82a86b608d99',
'd4043ce4728d459ec224e5cef99eab35',
'1a196625566103f16d230abf2cd9e014',
'619a134b7e83077c3030001ee8545ddb',
'45dde25611c271bbc1a9004f5512d2a3',
'6dcde5bda8f3535412226799201cdc48',
'133823e606a9f0e07fb347bce9e3cf34',
'4a775e162843247ba343984bd5e7d634',
'1510a1fb1a34b2c8e29ca40fa83a3992',
'c90383785f656c274d33370f2b58cdb7',
'd7f9470512d0d0ad2d4aba7b17e40b05',
'b0c93f3f44b11b2fab1afa559b374b40',
'acfbd095f5b4bf51113864a002dd0018',
'c0427187cee43fa1a1ed01a405514c63',
'0e07bf7a2c175c0505a76c75681e7080',
'e862ffe1a71d815675128622d97c75c4',
'cac88dba02a9043c06f3582f7d1c9ab6',
'8ca31cc35cee7ab74327dadd1dc7915e',
'073574696f84425537f344ed6f043e52',
'7076a8f4eba59f17d7da3104b932a262',
'8441555b835b409a948145aca501cb85',
'6c6c31f0f607d0dec1ddaec0326cf430',
'b2112afe1bfbc19a57ffe46053ee1381',
'9b26cac7654b87c53116eabebece20a1',
'7d8f3c4529fab9a97c562a1d9d9b9a85',
'0df3680d38ec121a94fde0389354a892',
'56b214615acdba5ae643d4d951cc8c74',
'1a7578c0b5f8a1107d0fe9c2dc51f314',
'a9bf3ff5d065c8b7fd383b4d0d4dbcfe',
'979100eb38d3859933d5e0b2c5931d00',
'61178fd42446ff34ea3263088ac2a3f8',
'002aedc17a2bf3187df6bf8d8648283b',
'270a2cdf7072febc156805c6c967c010',
'abe2803e82d60899ed92c9578f0bf9d7',
'0f4df2881b94c291b6e268dd172bdb67',
'C1022CE5-B44E-467C-86F0-6EDD0940B339',
'53757392-B5A2-4E4C-84F6-99DCC4C490AB',
'49E66C2F-237A-415A-B7B9-6B90DF532A83',
'a9ac702e20306caf5a733545d652cfa9',
'F25AC36D-6D69-43FA-89B4-BE7552CE99E2',
'4e142abbc82a33d405dd609368612421',
'9667884b794c6475b8b2473b3986ec26',
'4de43dfcdded2a8e28f2e32a44fa1ebf',
'918f62b79e5333024e3b8e122a36a021',
'fbc25877298bbacf410c4d1a85bb053b',
'9572c5a710d8b9ab714283a1ede5246a',
'b452c4f5138dc61d5ad7491a9095cab0',
'56b686ce7f9c14a18c14ce015f6a9475',
'0161dff61fdbb4955ff92c022acc5fb4',
'bb3b65cf9ba40413db60adce27a94db7',
'f0e584392d060bfef6ad4cec29f73d0d',
'd1e103c50de1fa941638bec77683936c',
'05879876-B0D0-4102-991F-61A0C4608489',
'f9b01dbeb8b738ebeab5e82f892593e3',
'1C3D71C7-D5B8-4937-89F7-F822EA1629F4',
'1A58B21B-2033-4CC4-B3B8-6AB6BFD2F26A',
'7ce3aaf69c0b882631428087b7db6464',
'38b0b453d423e0772822db6be4f02505',
'10945024c5f77c0f1421847bed691ad8',
'c680bdc2306ff1ea39102917225bdade',
'cd8668cf71ef2c2a33882869195d41df',
'8f0dfc041422a40f4038eaf24f34a2a0',
'89f50fe0180852e47ffbb486cdfaf305',
'ca90f2d89734ba48161642abc9d2cbbd',
'6c9e2f980d5916949d3b16944f887a4b',
'5b7402fd99632895f9f6d32d6477cb20',
'880efe9c98faa665c18ad955496112bf',
'1a158d1e7cdd8c8e17b54bfa91846b4c',
'4a0d51e3bca39ffa8dc989e13a1a613f',
'fd181f2767ed6c82915d092a2ff51e01',
'0b688f3a0ebe91bb9415994dbb285f03',
'504c018faa34b2d0fce7c4c56569e02e',
'876c361caba385fee259f7a7359de8e3',
'831cfd00f6b5438f20d2136a68eede3c',
'e7f8129ccc696b1cf45a18d0961705da',
'763A9DA0-DC92-49C9-85B7-647A36C019C9',
'5d5c3fd4426aec2662f6470fba1e564c',
'6f84ab18fce970554e2ea9ea54aa6d4b',
'121A691B-48F2-40B0-AF2A-4399BD5092F7',
'085AFCE3-1192-4CF2-993A-7A4EB1D55A06',
'BD432FCA-7527-48B5-B553-AE51D75438A3',
'9f9b1d63418a9d14b98cb6c7e0e20d74',
'466f7d742867f2fda5380dbd3eb4cd08',
'8a29ee094e2f26c928d26ef24d29401f',
'e9a38c4ae8ee81a86e3f25def14a0dbb',
'250e5b8897b031e2ab4124c51a7efadd',
'1e5f6384a69035a45e28c2552fd485bc',
'c898d7238b770cd5350c8a37c312159b',
'ef0aa2f297f599cdbc14fc8393b78a1d',
'a6d2ee3618dcfb23c3db981c9dbc4340',
'fa2731c1873f3c86aa065e73cff4667b',
'6A0A394B-1B07-4CCE-8DBE-4A571FF09D8F',
'2E76797A-3404-4235-AAC0-1ADBB1930CC7',
'6230296bda88a91a67631daac946281b',
'730EF6B2-038F-4AF2-86DF-E8455B0CBE75',
'8A41D051-1CDD-4050-9B28-822A20EA0D40',
'1983061F-8B13-4ADA-8774-C10B7D962A7A',
'427E25F6-DBD4-451B-B20E-87929E061C95',
'C7C7F318-9BB2-4A0D-BE93-8E211898625E',
'B30A816C-D046-4B05-8AFB-B3B5A3275F4F',
'CA7D75CA-7F3A-40F6-9DF9-587D0DAE8ECF',
'D4BB9A85-DE51-4CB3-810D-D33DF0B1F8AA',
'8779C32C-B962-4AB7-9B90-E3181B16E4E7',
'793FE7EC-5E69-4D5E-85A0-23ED5F868084',
'CBB075E1-BDC9-4F6A-BCF4-09EC4D7370EE',
'611B670D-30A4-44D8-A0F7-DD1266265CD6',
'F7892096-9D26-49A7-A1E6-9D49CE5D60EA',
'237aa26a288713e29a1e733394564d3a',
'406f27bfbbbe3bb0f15d8d77ca63e24c',
],
},
{
......
......@@ -126,6 +126,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'valuerulesgridview',viewType:'DEGRIDVIEW',srfappde:'ibizbooks',component:'ibizbookvalue-rules-grid-view'});
this.allViewMap.set(':',{viewname:'usr2meditview9',viewType:'DEMEDITVIEW9',srfappde:'ibizbooks',component:'ibizbookusr2-medit-view9'});
this.allViewMap.set(':',{viewname:'interfunceditview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookinter-func-edit-view'});
this.allViewMap.set(':',{viewname:'usr3treeview',viewType:'DETREEVIEW',srfappde:'ibizbooks',component:'ibizbookusr3-tree-view'});
this.allViewMap.set(':',{viewname:'usreditview_plugin',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr-edit-view-plugin'});
this.allViewMap.set(':',{viewname:'usr7editview',viewType:'DEEDITVIEW',srfappde:'ibizbooks',component:'ibizbookusr7-edit-view'});
this.allViewMap.set(':',{viewname:'usr4calendarview',viewType:'DECALENDARVIEW',srfappde:'ibizbooks',component:'ibizbookusr4-calendar-view'});
......
......@@ -395,81 +395,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
* 处理菜单默认选中项
*
* @public
* @memberof MainMenuBase
*/
public doMenuSelect(): void {
if (!this.isDefaultPage || this.isBlankMode) {
return;
}
const appFuncs: any[] = this.menuMode.getAppFuncs();
if (this.$route && this.$route.matched && this.$route.matched.length == 2) { // 存在二级路由
const [{ }, matched] = this.$route.matched;
const appfunc: any = appFuncs.find((_appfunc: any) => Object.is(_appfunc.routepath, matched.path) && Object.is(_appfunc.appfuncyype, 'APPVIEW'));
if (appfunc) {
this.computeMenuSelect(this.menus, appfunc.appfunctag);
}
return;
} else if (this.defPSAppView && Object.keys(this.defPSAppView).length > 0) { // 存在默认视图
const appfunc: any = appFuncs.find((_appfunc: any) => Object.is(_appfunc.routepath, this.defPSAppView.routepath) && Object.is(_appfunc.appfuncyype, 'APPVIEW'));
if (appfunc) {
this.computeMenuSelect(this.menus, appfunc.appfunctag);
}
const viewparam: any = {};
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, this.defPSAppView.deResParameters, this.defPSAppView.parameters, [], viewparam);
this.$router.push(path);
return;
}
this.computeMenuSelect(this.menus, '');
let item = this.compute(this.menus, this.defaultActive);
if (Object.keys(item).length === 0) {
return;
}
if(!item.hidden){
this.click(item);
}
}
/**
* 计算菜单选中项
*
* @public
* @param {any[]} items
* @param {string} appfunctag
* @returns {boolean}
* @memberof MainMenuBase
*/
public computeMenuSelect(items: any[], appfunctag: string): boolean {
const appFuncs: any[] = this.menuMode.getAppFuncs();
return items.some((item: any) => {
if (Object.is(appfunctag, '') && !Object.is(item.appfunctag, '') && item.opendefault) {
const appfunc = appFuncs.find((_appfunc: any) => Object.is(_appfunc.appfunctag, item.appfunctag));
if (appfunc.routepath) {
this.defaultActive = item.name;
this.setHideSideBar(item);
return true;
}
}
if (Object.is(item.appfunctag, appfunctag) && item.opendefault) {
this.setHideSideBar(item);
this.defaultActive = item.name;
return true;
}
if (item.items && item.items.length > 0) {
const state = this.computeMenuSelect(item.items, appfunctag);
if (state) {
this.defaultOpeneds.push(item.name);
return true;
}
}
return false;
});
}
/**
* 获取菜单项数据
*
......@@ -507,9 +432,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
* @memberof MainMenuBase
*/
public setHideSideBar(item: any): void {
if (item.hidesidebar) {
this.$emit('collapsechange', true);
}
}
/**
......@@ -1044,6 +966,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc136':
this.clickAppFunc136(item);
return;
case 'AppFunc137':
this.clickAppFunc137(item);
return;
default:
console.warn('未指定应用功能');
}
......@@ -4846,6 +4771,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
this.$router.push(path);
})
}
/**
* vue3树视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc137(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'usr3treeview', parameterName: 'usr3treeview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 数据加载
......@@ -4870,7 +4818,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
this.dataProcess(inputMenus);
this.menus = inputMenus;
this.doMenuSelect();
}
/**
......
......@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1429,7 +1429,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1499,7 +1499,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1607,7 +1607,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -1799,7 +1799,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1395,7 +1395,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1465,7 +1465,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1573,7 +1573,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -1765,7 +1765,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1499,7 +1499,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1569,7 +1569,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1677,7 +1677,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg, { viewparams: this.viewparams });
......@@ -1869,7 +1869,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
// 基于 @CONTROL/树视图/MODEL.ts.ftl 生成
/**
* Treebasics 部件模型
*
* @export
* @class TreebasicsModel
*/
export default class TreebasicsModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TreebasicsModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'ibizbookname',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'updatedate',
},
{
name: 'author',
},
{
name: 'price',
},
{
name: 'press',
},
{
name: 'type',
},
{
name: 'booknumber',
},
{
name: 'subtext',
},
{
name: 'lendouttime',
},
{
name: 'returntime',
},
{
name: 'icon',
},
{
name: 'sailstate',
},
{
name: 'borrowstatus',
},
{
name: 'stepstatus',
},
{
name: 'borrower',
},
{
name: 'borrowway',
},
{
name: 'returnlib',
},
{
name: 'borrowerid',
},
{
name: 'borrower1',
},
{
name: 'borrower1_id',
},
{
name: 'borrower2',
},
{
name: 'borrower2_id',
},
{
name: 'borrower3',
},
{
name: 'borrower3_id',
},
{
name: 'tag',
},
{
name: 'orgid',
},
{
name: 'deptid',
},
]
}
}
\ No newline at end of file
// 基于 @CONTROL/树视图/CONTROL.scss.ftl 生成
.tree-right-menu {
.ivu-divider-horizontal {
width: 100%;
min-width: 100%;
margin: 0 auto;
}
.ivu-dropdown-item {
position: relative;
padding-left: 32px;
> i {
position: absolute;
left: 16px;
top: 10px;
}
.ivu-icon-ios-arrow-forward {
left: initial;
right: 4px;
}
}
.ivu-dropdown {
.ivu-select-dropdown {
margin: 0;
}
}
}
.el-tree .context-menu-component .tree-node{
width: calc(100% - 15px);
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
.icon{
padding-right: 10px;
}
}
// this is scss
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import TreebasicsBase from './treebasics-treeview-base.vue';
// 基于 @CONTROL/树视图/CONTROL.vue.ftl 生成
@Component({
components: {
}
})
export default class Treebasics extends TreebasicsBase {
}
</script>
\ No newline at end of file
......@@ -5608,6 +5608,14 @@
"rTMOSFilePath" : "psmodeldata$psdataentities/Usr3EditView",
"realModelSubType" : "DEEDITVIEW",
"realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "Usr3TreeView",
"logicName" : "树视图基础功能",
"mOSFilePath" : "psmodeldata$psdataentities/Usr3TreeView",
"name" : "树视图基础功能",
"rTMOSFilePath" : "psmodeldata$psdataentities/Usr3TreeView",
"realModelSubType" : "DETREEVIEW",
"realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "NewDefaultValueGridView",
"logicName" : "表格新建默认值",
......
......@@ -7631,6 +7631,10 @@
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKInterFuncEditView.json",
"viewType" : "DEEDITVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr3TreeView.json",
"viewType" : "DETREEVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsrEditView_plugin.json",
......
......@@ -35,18 +35,6 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "借出日期",
"codeName" : "lendouttime",
......@@ -59,6 +47,18 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 200,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
......
......@@ -20,6 +20,18 @@
}
} ],
"getPSDETreeColumns" : [ {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "图书名称",
"codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN",
......@@ -43,18 +55,6 @@
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
}, {
"caption" : "作者",
"codeName" : "author",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author",
"mOSFilePath" : "psdetreecols/author",
"name" : "author",
"rTMOSFilePath" : "psdetreecols/author",
"width" : 50,
"widthUnit" : "px",
"enableExpand" : false,
"enableSort" : false
} ],
"getPSDETreeNodeRSs" : [ {
"getChildPSDETreeNode" : {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册