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

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

上级 90b5d332
...@@ -154,6 +154,22 @@ ...@@ -154,6 +154,22 @@
{"type":"appde", {"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR", "appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器", "appName":"扩展编辑器",
"portletCodeName": "appExtenfEditorListView",
"portletName": "扩展编辑器列表",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"VIEW","componentName":"ibizappextendeditor-app-extenf-editor-list-view-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorChart",
"portletName": "扩展编辑器图表",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"CHART","componentName":"ibizappextendeditor-app-extend-editor-chart-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount", "portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"PortletCat7", "groupCodeName":"PortletCat7",
...@@ -326,5 +342,21 @@ ...@@ -326,5 +342,21 @@
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"PortletCat7", "groupCodeName":"PortletCat7",
"groupName":"扩展编辑器", "groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"} "portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorChart",
"portletName": "扩展编辑器图表",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"CHART","componentName":"app-ibizappextendeditor-app-extend-editor-chart-portlet"},
{"type":"app",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtenfEditorListView",
"portletName": "扩展编辑器列表",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"VIEW","componentName":"app-ibizappextendeditor-app-extenf-editor-list-view-portlet"}
] ]
\ No newline at end of file
...@@ -66,6 +66,7 @@ function getLocaleResourceBase(){ ...@@ -66,6 +66,7 @@ function getLocaleResourceBase(){
extendeditorlist_list: { extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappextendeditor_opendocument: commonLogic.appcommonhandle("打开文档",null),
}, },
}, },
extendeditoramount_list: { extendeditoramount_list: {
...@@ -73,6 +74,9 @@ function getLocaleResourceBase(){ ...@@ -73,6 +74,9 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
extendeditorchart_chart: {
nodata:commonLogic.appcommonhandle("",null),
},
default_searchform: { default_searchform: {
details: { details: {
formpage1: commonLogic.appcommonhandle("常规条件",null), formpage1: commonLogic.appcommonhandle("常规条件",null),
......
...@@ -66,6 +66,7 @@ function getLocaleResourceBase(){ ...@@ -66,6 +66,7 @@ function getLocaleResourceBase(){
extendeditorlist_list: { extendeditorlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappextendeditor_opendocument: commonLogic.appcommonhandle("打开文档",null),
}, },
}, },
extendeditoramount_list: { extendeditoramount_list: {
...@@ -73,6 +74,9 @@ function getLocaleResourceBase(){ ...@@ -73,6 +74,9 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
extendeditorchart_chart: {
nodata:commonLogic.appcommonhandle("",null),
},
default_searchform: { default_searchform: {
details: { details: {
formpage1: commonLogic.appcommonhandle("常规条件",null), formpage1: commonLogic.appcommonhandle("常规条件",null),
......
...@@ -72,8 +72,8 @@ function getLocaleResourceBase(){ ...@@ -72,8 +72,8 @@ function getLocaleResourceBase(){
viewlist_list: { viewlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null), ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
}, },
}, },
viewchart_chart: { viewchart_chart: {
......
...@@ -72,8 +72,8 @@ function getLocaleResourceBase(){ ...@@ -72,8 +72,8 @@ function getLocaleResourceBase(){
viewlist_list: { viewlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null), ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
}, },
}, },
viewchart_chart: { viewchart_chart: {
......
...@@ -164,6 +164,22 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => { ...@@ -164,6 +164,22 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
{"type":"appde", {"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR", "appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器", "appName":"扩展编辑器",
"portletCodeName": "appExtenfEditorListView",
"portletName": "扩展编辑器列表",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"VIEW","componentName":"ibizappextendeditor-app-extenf-editor-list-view-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorChart",
"portletName": "扩展编辑器图表",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"CHART","componentName":"ibizappextendeditor-app-extend-editor-chart-portlet"},
{"type":"appde",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorAmount", "portletCodeName": "appExtendEditorAmount",
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"PortletCat7", "groupCodeName":"PortletCat7",
...@@ -336,6 +352,22 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => { ...@@ -336,6 +352,22 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
"portletName": "扩展编辑器数量", "portletName": "扩展编辑器数量",
"groupCodeName":"PortletCat7", "groupCodeName":"PortletCat7",
"groupName":"扩展编辑器", "groupName":"扩展编辑器",
"portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"} "portletTYpe":"LIST","componentName":"app-ibizappextendeditor-app-extend-editor-amount-portlet"},
{"type":"app",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtendEditorChart",
"portletName": "扩展编辑器图表",
"groupCodeName":"PortletCat7",
"groupName":"扩展编辑器",
"portletTYpe":"CHART","componentName":"app-ibizappextendeditor-app-extend-editor-chart-portlet"},
{"type":"app",
"appCodeName":"IBIZAPPEXTENDEDITOR",
"appName":"扩展编辑器",
"portletCodeName": "appExtenfEditorListView",
"portletName": "扩展编辑器列表",
"groupCodeName":"Ungroup",
"groupName":"(未分类)",
"portletTYpe":"VIEW","componentName":"app-ibizappextendeditor-app-extenf-editor-list-view-portlet"}
]]; ]];
}); });
\ No newline at end of file
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizappextendeditoredit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITOREditViewBase from './ibizappextendeditoredit-view-base.vue';
import view_form from '@widgets/ibizappextendeditor/main-form/main-form.vue';
@Component({
components: {
view_form,
},
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 IBIZAPPEXTENDEDITOREditView extends IBIZAPPEXTENDEDITOREditViewBase {
}
</script>
\ No newline at end of file
.ibizappextendeditorgrid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITORGridViewBase from './ibizappextendeditorgrid-view-base.vue';
import view_grid from '@widgets/ibizappextendeditor/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizappextendeditor/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
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 IBIZAPPEXTENDEDITORGridView extends IBIZAPPEXTENDEDITORGridViewBase {
}
</script>
\ No newline at end of file
.ibizappextendeditorlist-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITORListViewBase from './ibizappextendeditorlist-view-base.vue';
import view_list from '@widgets/ibizappextendeditor/extend-editor-list-list/extend-editor-list-list.vue';
import view_searchform from '@widgets/ibizappextendeditor/default-searchform/default-searchform.vue';
@Component({
components: {
view_list,
view_searchform,
},
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 IBIZAPPEXTENDEDITORListView extends IBIZAPPEXTENDEDITORListViewBase {
}
</script>
\ No newline at end of file
...@@ -47,6 +47,7 @@ export const PageComponents = { ...@@ -47,6 +47,7 @@ export const PageComponents = {
Vue.component('ibizsample0003-pickup-view', () => import('@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue')); Vue.component('ibizsample0003-pickup-view', () => import('@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'));
Vue.component('ibizsample0021-edit-view', () => import('@pages/sample/ibizsample0021-edit-view/ibizsample0021-edit-view.vue')); Vue.component('ibizsample0021-edit-view', () => import('@pages/sample/ibizsample0021-edit-view/ibizsample0021-edit-view.vue'));
Vue.component('ibizsample0001-usr2-edit-view', () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue')); Vue.component('ibizsample0001-usr2-edit-view', () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'));
Vue.component('ibizappextendeditorgrid-view', () => import('@pages/sample/ibizappextendeditorgrid-view/ibizappextendeditorgrid-view.vue'));
Vue.component('ibizhardware-sgrid-view', () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue')); Vue.component('ibizhardware-sgrid-view', () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'));
Vue.component('ibizbookwizard-iwith-state-view', () => import('@pages/sample/ibizbookwizard-iwith-state-view/ibizbookwizard-iwith-state-view.vue')); Vue.component('ibizbookwizard-iwith-state-view', () => import('@pages/sample/ibizbookwizard-iwith-state-view/ibizbookwizard-iwith-state-view.vue'));
Vue.component('ibizsample0017-form-pickup-data-view', () => import('@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue')); Vue.component('ibizsample0017-form-pickup-data-view', () => import('@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue'));
...@@ -80,6 +81,7 @@ export const PageComponents = { ...@@ -80,6 +81,7 @@ export const PageComponents = {
Vue.component('ibizsample0017-grid-view', () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue')); Vue.component('ibizsample0017-grid-view', () => import('@pages/sample/ibizsample0017-grid-view/ibizsample0017-grid-view.vue'));
Vue.component('ibizbookusr3-calendar-view', () => import('@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue')); Vue.component('ibizbookusr3-calendar-view', () => import('@pages/sample/ibizbookusr3-calendar-view/ibizbookusr3-calendar-view.vue'));
Vue.component('ibizbookusr5-calendar-view', () => import('@pages/sample/ibizbookusr5-calendar-view/ibizbookusr5-calendar-view.vue')); Vue.component('ibizbookusr5-calendar-view', () => import('@pages/sample/ibizbookusr5-calendar-view/ibizbookusr5-calendar-view.vue'));
Vue.component('ibizappextendeditorlist-view', () => import('@pages/sample/ibizappextendeditorlist-view/ibizappextendeditorlist-view.vue'));
Vue.component('ibizorder-f8-edit-view', () => import('@pages/sample/ibizorder-f8-edit-view/ibizorder-f8-edit-view.vue')); Vue.component('ibizorder-f8-edit-view', () => import('@pages/sample/ibizorder-f8-edit-view/ibizorder-f8-edit-view.vue'));
Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue')); Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue'));
Vue.component('ibizsample0003-f1-tree-exp-view', () => import('@pages/sample/ibizsample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp-view.vue')); Vue.component('ibizsample0003-f1-tree-exp-view', () => import('@pages/sample/ibizsample0003-f1-tree-exp-view/ibizsample0003-f1-tree-exp-view.vue'));
...@@ -163,6 +165,7 @@ export const PageComponents = { ...@@ -163,6 +165,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-list-view', () => import('@pages/sample/ibizorder-detail-list-view/ibizorder-detail-list-view.vue')); Vue.component('ibizorder-detail-list-view', () => import('@pages/sample/ibizorder-detail-list-view/ibizorder-detail-list-view.vue'));
Vue.component('ibizappctrllist-view', () => import('@pages/sample/ibizappctrllist-view/ibizappctrllist-view.vue')); Vue.component('ibizappctrllist-view', () => import('@pages/sample/ibizappctrllist-view/ibizappctrllist-view.vue'));
Vue.component('micro-component-grid-view', () => import('@pages/sample/micro-component-grid-view/micro-component-grid-view.vue')); Vue.component('micro-component-grid-view', () => import('@pages/sample/micro-component-grid-view/micro-component-grid-view.vue'));
Vue.component('ibizappextendeditoredit-view', () => import('@pages/sample/ibizappextendeditoredit-view/ibizappextendeditoredit-view.vue'));
Vue.component('ibizsample0001-sf5-edit-view', () => import('@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue')); Vue.component('ibizsample0001-sf5-edit-view', () => import('@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'));
Vue.component('ibizbookgroup-by-codelist-list-view', () => import('@pages/sample/ibizbookgroup-by-codelist-list-view/ibizbookgroup-by-codelist-list-view.vue')); Vue.component('ibizbookgroup-by-codelist-list-view', () => import('@pages/sample/ibizbookgroup-by-codelist-list-view/ibizbookgroup-by-codelist-list-view.vue'));
Vue.component('ibizbookhas-panel-kan-ban-view', () => import('@pages/sample/ibizbookhas-panel-kan-ban-view/ibizbookhas-panel-kan-ban-view.vue')); Vue.component('ibizbookhas-panel-kan-ban-view', () => import('@pages/sample/ibizbookhas-panel-kan-ban-view/ibizbookhas-panel-kan-ban-view.vue'));
......
...@@ -812,6 +812,20 @@ const router = new Router({ ...@@ -812,6 +812,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'), component: () => import('@pages/sample/ibizsample0001-usr2-edit-view/ibizsample0001-usr2-edit-view.vue'),
}, },
{
path: 'ibizappextendeditors/:ibizappextendeditor?/gridview/:gridview?',
meta: {
caption: 'entities.ibizappextendeditor.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditorgrid-view/ibizappextendeditorgrid-view.vue'),
},
{ {
path: 'ibizhardwares/:ibizhardware?/sgridview/:sgridview?', path: 'ibizhardwares/:ibizhardware?/sgridview/:sgridview?',
meta: { meta: {
...@@ -1304,6 +1318,20 @@ const router = new Router({ ...@@ -1304,6 +1318,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizbookusr5-calendar-view/ibizbookusr5-calendar-view.vue'), component: () => import('@pages/sample/ibizbookusr5-calendar-view/ibizbookusr5-calendar-view.vue'),
}, },
{
path: 'ibizappextendeditors/:ibizappextendeditor?/listview/:listview?',
meta: {
caption: 'entities.ibizappextendeditor.views.listview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditorlist-view/ibizappextendeditorlist-view.vue'),
},
{ {
path: 'ibizorders/:ibizorder?/f8editview/:f8editview?', path: 'ibizorders/:ibizorder?/f8editview/:f8editview?',
meta: { meta: {
...@@ -2555,6 +2583,20 @@ const router = new Router({ ...@@ -2555,6 +2583,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/micro-component-grid-view/micro-component-grid-view.vue'), component: () => import('@pages/sample/micro-component-grid-view/micro-component-grid-view.vue'),
}, },
{
path: 'ibizappextendeditors/:ibizappextendeditor?/editview/:editview?',
meta: {
caption: 'entities.ibizappextendeditor.views.editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditoredit-view/ibizappextendeditoredit-view.vue'),
},
{ {
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?', path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?',
meta: { meta: {
...@@ -2796,6 +2838,19 @@ const router = new Router({ ...@@ -2796,6 +2838,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizsample0003-stab-exp-view/ibizsample0003-stab-exp-view.vue'), component: () => import('@pages/sample/ibizsample0003-stab-exp-view/ibizsample0003-stab-exp-view.vue'),
}, },
{
path: '/ibizappextendeditors/:ibizappextendeditor?/listview/:listview?',
meta: {
caption: 'entities.ibizappextendeditor.views.listview.caption',
info:'',
parameters: [
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'listview', parameterName: 'listview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditorlist-view/ibizappextendeditorlist-view.vue'),
},
{ {
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/smeditview9/:smeditview9?', path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/smeditview9/:smeditview9?',
meta: { meta: {
...@@ -3610,6 +3665,19 @@ const router = new Router({ ...@@ -3610,6 +3665,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'), component: () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'),
}, },
{
path: '/ibizappextendeditors/:ibizappextendeditor?/gridview/:gridview?',
meta: {
caption: 'entities.ibizappextendeditor.views.gridview.caption',
info:'',
parameters: [
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditorgrid-view/ibizappextendeditorgrid-view.vue'),
},
{ {
path: '/ibizsoftwaresuits/:ibizsoftwaresuit?/gridview9/:gridview9?', path: '/ibizsoftwaresuits/:ibizsoftwaresuit?/gridview9/:gridview9?',
meta: { meta: {
...@@ -5137,6 +5205,19 @@ const router = new Router({ ...@@ -5137,6 +5205,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-sgrid-view2/ibizorder-sgrid-view2.vue'), component: () => import('@pages/sample/ibizorder-sgrid-view2/ibizorder-sgrid-view2.vue'),
}, },
{
path: '/ibizappextendeditors/:ibizappextendeditor?/editview/:editview?',
meta: {
caption: 'entities.ibizappextendeditor.views.editview.caption',
info:'',
parameters: [
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizappextendeditoredit-view/ibizappextendeditoredit-view.vue'),
},
{ {
path: '/ibizbooks/:ibizbook?/usr2dataview/:usr2dataview?', path: '/ibizbooks/:ibizbook?/usr2dataview/:usr2dataview?',
meta: { meta: {
......
...@@ -18,6 +18,8 @@ import IBIZBOOKPortalComponentsView from '@/widgets/ibizbook/portal-components-v ...@@ -18,6 +18,8 @@ import IBIZBOOKPortalComponentsView from '@/widgets/ibizbook/portal-components-v
import IBIZAPPCTRLAppCtrlListView from '@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue'; import IBIZAPPCTRLAppCtrlListView from '@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue';
import IBIZAPPCTRLCtrlChart from '@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue'; import IBIZAPPCTRLCtrlChart from '@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue';
import IBIZAPPCTRLAppCtrlAmount from '@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue'; import IBIZAPPCTRLAppCtrlAmount from '@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue';
import IBIZAPPEXTENDEDITORAppExtenfEditorListView from '@/widgets/ibizappextendeditor/app-extenf-editor-list-view-portlet/app-extenf-editor-list-view-portlet.vue';
import IBIZAPPEXTENDEDITORAppExtendEditorChart from '@/widgets/ibizappextendeditor/app-extend-editor-chart-portlet/app-extend-editor-chart-portlet.vue';
import IBIZAPPEXTENDEDITORAppExtendEditorAmount from '@/widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue'; import IBIZAPPEXTENDEDITORAppExtendEditorAmount from '@/widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue';
export const PortletComponent = { export const PortletComponent = {
...@@ -43,6 +45,8 @@ export const PortletComponent = { ...@@ -43,6 +45,8 @@ export const PortletComponent = {
v.component('app-ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount); v.component('app-ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
v.component('app-ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount); v.component('app-ibizappeditor-app-editor-amount-portlet', IBIZAPPEDITORAppEditorAmount);
v.component('app-ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount); v.component('app-ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount);
v.component('app-ibizappextendeditor-app-extend-editor-chart-portlet', IBIZAPPEXTENDEDITORAppExtendEditorChart);
v.component('app-ibizappextendeditor-app-extenf-editor-list-view-portlet', IBIZAPPEXTENDEDITORAppExtenfEditorListView);
v.component('ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList); v.component('ibizappview-app-view-list-portlet', IBIZAPPVIEWAppViewList);
v.component('ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart); v.component('ibizappview-view-chart-portlet', IBIZAPPVIEWViewChart);
v.component('ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount); v.component('ibizappview-app-view-amount-portlet', IBIZAPPVIEWAppViewAmount);
...@@ -62,6 +66,8 @@ export const PortletComponent = { ...@@ -62,6 +66,8 @@ export const PortletComponent = {
v.component('ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView); v.component('ibizappctrl-app-ctrl-list-view-portlet', IBIZAPPCTRLAppCtrlListView);
v.component('ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart); v.component('ibizappctrl-ctrl-chart-portlet', IBIZAPPCTRLCtrlChart);
v.component('ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount); v.component('ibizappctrl-app-ctrl-amount-portlet', IBIZAPPCTRLAppCtrlAmount);
v.component('ibizappextendeditor-app-extenf-editor-list-view-portlet', IBIZAPPEXTENDEDITORAppExtenfEditorListView);
v.component('ibizappextendeditor-app-extend-editor-chart-portlet', IBIZAPPEXTENDEDITORAppExtendEditorChart);
v.component('ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount); v.component('ibizappextendeditor-app-extend-editor-amount-portlet', IBIZAPPEXTENDEDITORAppExtendEditorAmount);
} }
}; };
\ No newline at end of file
...@@ -15,6 +15,16 @@ export const viewstate: any = { ...@@ -15,6 +15,16 @@ export const viewstate: any = {
'841317a57a7a8228124e41c561e01a98', '841317a57a7a8228124e41c561e01a98',
], ],
}, },
{
viewtag: '029cd8673e5bf4681a772c6110467f63',
viewmodule: 'Sample',
viewname: 'IBIZAPPEXTENDEDITORListView',
viewaction: '',
viewdatachange: false,
refviews: [
'e7f67094501adaf9fd3bd9c3ee074450',
],
},
{ {
viewtag: '02ae6ede68dce91a7a9f92070efcb2ba', viewtag: '02ae6ede68dce91a7a9f92070efcb2ba',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -675,6 +685,16 @@ export const viewstate: any = { ...@@ -675,6 +685,16 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '50404c572c0128d7acf24b619beb2a57',
viewmodule: 'Sample',
viewname: 'IBIZAPPEXTENDEDITORGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'e7f67094501adaf9fd3bd9c3ee074450',
],
},
{ {
viewtag: '5147eb94c8aa1cf6ad57b360e0abde28', viewtag: '5147eb94c8aa1cf6ad57b360e0abde28',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -1776,6 +1796,15 @@ export const viewstate: any = { ...@@ -1776,6 +1796,15 @@ export const viewstate: any = {
'f90fa878f2ed0eb4e27353786b10c3f4', 'f90fa878f2ed0eb4e27353786b10c3f4',
], ],
}, },
{
viewtag: 'e7f67094501adaf9fd3bd9c3ee074450',
viewmodule: 'Sample',
viewname: 'IBIZAPPEXTENDEDITOREditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'e9b54ef29b192ecd2da05ff9570eb4d5', viewtag: 'e9b54ef29b192ecd2da05ff9570eb4d5',
viewmodule: 'Sample', viewmodule: 'Sample',
...@@ -1946,8 +1975,10 @@ export const viewstate: any = { ...@@ -1946,8 +1975,10 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'92ba569083866d7476dbada9f26b0371', '92ba569083866d7476dbada9f26b0371',
'029cd8673e5bf4681a772c6110467f63',
'2b2bef1d622cb082cc17c12afe3ed894', '2b2bef1d622cb082cc17c12afe3ed894',
'fb7a06e43dfa51aaa792146e7df29357', 'fb7a06e43dfa51aaa792146e7df29357',
'50404c572c0128d7acf24b619beb2a57',
'64399ac8a26325db562c9ce747a20ccc', '64399ac8a26325db562c9ce747a20ccc',
'e3e4e02474933cacc98d320049dc1646', 'e3e4e02474933cacc98d320049dc1646',
'dbbbaa36390b7c2f2be33b8551b0d137', 'dbbbaa36390b7c2f2be33b8551b0d137',
......
...@@ -117,6 +117,94 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService { ...@@ -117,6 +117,94 @@ export default class IBIZAPPEXTENDEDITORUIServiceBase extends UIService {
public initDeMainStateOPPrivsMap(){ public initDeMainStateOPPrivsMap(){
} }
/**
* 打开文档
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBIZAPPEXTENDEDITOR_openDocument(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { ibizappextendeditor: '%documentaddress%' });
Object.assign(params, { documentaddress: '%documentaddress%' });
Object.assign(params, { documentaddress: '%documentaddress%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
const openPopupApp = (url: string) => {
window.open(url, '_blank');
return null;
}
const url = `${data.documentaddress}`;
openPopupApp(url);
}
/**
* MORE
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async IBIZAPPEXTENDEDITOR_MORE(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'NONE';
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizappextendeditors', parameterName: 'ibizappextendeditor' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
}
/** /**
* 获取指定数据的重定向页面 * 获取指定数据的重定向页面
......
...@@ -164,6 +164,38 @@ ...@@ -164,6 +164,38 @@
</span> </span>
</card> </card>
</i-col> </i-col>
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<card class="portlet-card custom-card" :bordered="false" dis-hover :padding="10">
<span>
<view_db_sysportlet11
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="400"
:width="0"
name="db_sysportlet11"
ref='db_sysportlet11'
@closeview="closeView($event)">
</view_db_sysportlet11>
</span>
</card>
</i-col>
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<card class="portlet-card custom-card" :bordered="false" dis-hover :padding="10">
<span>
<view_db_sysportlet12
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="400"
:width="0"
name="db_sysportlet12"
ref='db_sysportlet12'
@closeview="closeView($event)">
</view_db_sysportlet12>
</span>
</card>
</i-col>
</row> </row>
<row v-if="isHasCustomized" style="width: 100%;min-height: calc(100% - 40px);"> <row v-if="isHasCustomized" style="width: 100%;min-height: calc(100% - 40px);">
<div class="portlet-container" style="position: relative;width:100%;"> <div class="portlet-container" style="position: relative;width:100%;">
......
<script lang='tsx'> <script lang='tsx'>
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import AppPortalView_dbBase from './app-portal-view-db-dashboard-base.vue'; import AppPortalView_dbBase from './app-portal-view-db-dashboard-base.vue';
import view_db_sysportlet12 from '@widgets/ibizappextendeditor/app-extenf-editor-list-view-portlet/app-extenf-editor-list-view-portlet.vue';
import view_db_sysportlet5 from '@widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue'; import view_db_sysportlet5 from '@widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue';
import view_db_sysportlet11 from '@widgets/ibizappextendeditor/app-extend-editor-chart-portlet/app-extend-editor-chart-portlet.vue';
import view_db_sysportlet4 from '@widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue'; import view_db_sysportlet4 from '@widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue';
import view_db_sysportlet3 from '@widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue'; import view_db_sysportlet3 from '@widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue';
import view_db_sysportlet10 from '@widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue'; import view_db_sysportlet10 from '@widgets/ibizappextendeditor/app-extend-editor-amount-portlet/app-extend-editor-amount-portlet.vue';
...@@ -15,7 +17,9 @@ import view_db_sysportlet6 from '@widgets/ibizappctrl/app-ctrl-amount-portlet/ap ...@@ -15,7 +17,9 @@ import view_db_sysportlet6 from '@widgets/ibizappctrl/app-ctrl-amount-portlet/ap
@Component({ @Component({
components: { components: {
view_db_sysportlet12,
view_db_sysportlet5, view_db_sysportlet5,
view_db_sysportlet11,
view_db_sysportlet4, view_db_sysportlet4,
view_db_sysportlet3, view_db_sysportlet3,
view_db_sysportlet10, view_db_sysportlet10,
......
<template> <template>
<div class='portlet app-extend-editor-amount ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}"> <div class='portlet app-extend-editor-amount ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p class='portlet-title'> <div class="portlet-without-title">
<span>
扩展编辑器数量
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<!-- 测试 --> <!-- 测试 -->
<view_db_sysportlet10_list <view_db_sysportlet10_list
:viewState="viewState" :viewState="viewState"
......
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
} }
} }
} }
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{ > .portlet-with-title{
width:100%; width:100%;
height:calc(100% - 58px); height:calc(100% - 58px);
......
<template>
<div class='portlet app-extend-editor-chart ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p class='portlet-title'>
<span>
扩展编辑器图表
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<!-- 测试 -->
<view_db_sysportlet11_chart
:viewState="viewState"
:viewparams="viewparams"
:context="context"
fetchAction="FetchDefault"
:showBusyIndicator="true"
name="db_sysportlet11_chart"
ref='db_sysportlet11_chart'
@closeview="closeView($event)">
</view_db_sysportlet11_chart>
</div>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model,Inject } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util, ViewTool } from '@/utils';
import NavDataService from '@/service/app/navdata-service';
import IBIZAPPEXTENDEDITORService from '@/service/ibizappextendeditor/ibizappextendeditor-service';
import AppExtendEditorChartService from './app-extend-editor-chart-portlet-service';
import IBIZAPPEXTENDEDITORUIService from '@/uiservice/ibizappextendeditor/ibizappextendeditor-ui-service';
import UIService from '@/uiservice/ui-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class IBIZAPPEXTENDEDITORAppExtendEditorChartBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof AppExtendEditorChartBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof AppExtendEditorChartBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof AppExtendEditorChartBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof AppExtendEditorChartBase
*/
@Prop() public viewparams!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof AppExtendEditorChartBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof AppExtendEditorChartBase
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof AppExtendEditorChartBase
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {AppExtendEditorChartService}
* @memberof AppExtendEditorChartBase
*/
public service: AppExtendEditorChartService = new AppExtendEditorChartService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZAPPEXTENDEDITORService}
* @memberof AppExtendEditorChartBase
*/
public appEntityService: IBIZAPPEXTENDEDITORService = new IBIZAPPEXTENDEDITORService({ $store: this.$store });
/**
* 界面UI服务对象
*
* @type {IBIZAPPEXTENDEDITORUIService}
* @memberof AppExtendEditorChartBase
*/
public appUIService:IBIZAPPEXTENDEDITORUIService = new IBIZAPPEXTENDEDITORUIService(this.$store);
/**
* 关闭视图
*
* @param {any} args
* @memberof AppExtendEditorChartBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof AppExtendEditorChartBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof AppExtendEditorChartBase
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof AppExtendEditorChartBase
*/
@Prop() public width?: number;
/**
* 门户部件类型
*
* @type {number}
* @memberof AppExtendEditorChartBase
*/
public portletType: string = 'chart';
/**
* 视图默认使用
*
* @type {string}
* @memberof AppExtendEditorChartBase
*/
@Inject({from:'navModel',default: 'tab'})
public navModel!:string;
/**
* 界面行为模型数据
*
* @memberof AppExtendEditorChartBase
*/
public uiactionModel: any = {
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof AppExtendEditorChartBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof AppExtendEditorChartBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof AppExtendEditorChartBase
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof AppExtendEditorChartBase
*/
get getHeight(){
if(!this.$util.isEmpty(this.height) && !this.$util.isNumberNaN(this.height)){
if(this.height == 0){
return 'auto';
}else{
return this.height+'px';
}
}else{
return '400px';
}
}
/**
* 刷新
*
* @memberof AppExtendEditorChartBase
*/
public refresh(args?: any) {
this.viewState.next({ tag: 'db_sysportlet11_chart', action: 'refresh', data: args });
}
/**
* vue 生命周期
*
* @memberof AppExtendEditorChartBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof AppExtendEditorChartBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if(Object.is(tag, "all-portlet") && Object.is(action,'loadmodel')){
this.calcUIActionAuthState(data);
}
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof AppExtendEditorChartBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AppExtendEditorChartBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 计算界面行为权限
*
* @memberof AppExtendEditorChartBase
*/
public calcUIActionAuthState(data:any = {}) {
// 如果是操作栏,不计算权限
if(this.portletType && Object.is('actionbar', this.portletType)) {
return;
}
let _this: any = this;
let uiservice: any = _this.appUIService ? _this.appUIService : new UIService(_this.$store);
if(_this.uiactionModel){
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,uiservice);
}
}
}
</script>
<style lang='less'>
@import './app-extend-editor-chart-portlet.less';
</style>
/**
* AppExtendEditorChart 部件模型
*
* @export
* @class AppExtendEditorChartModel
*/
export default class AppExtendEditorChartModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AppExtendEditorChartModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'ibizappextendeditorname',
},
{
name: 'ibizappextendeditor',
prop: 'ibizappextendeditorid',
},
{
name: 'extensionflag',
},
{
name: 'documentaddress',
},
{
name: 'extendeditordescription',
},
{
name: 'amount',
},
{
name: 'extendeditortype',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* AppExtendEditorChart 部件服务对象
*
* @export
* @class AppExtendEditorChartService
*/
export default class AppExtendEditorChartService extends ControlService {
}
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 58px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITORAppExtendEditorChartBase from './app-extend-editor-chart-portlet-base.vue';
import view_db_sysportlet11_chart from '@widgets/ibizappextendeditor/extend-editor-chart-chart/extend-editor-chart-chart.vue';
@Component({
components: {
view_db_sysportlet11_chart,
}
})
export default class IBIZAPPEXTENDEDITORAppExtendEditorChart extends IBIZAPPEXTENDEDITORAppExtendEditorChartBase {
}
</script>
/**
* AppExtenfEditorListView 部件模型
*
* @export
* @class AppExtenfEditorListViewModel
*/
export default class AppExtenfEditorListViewModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AppExtenfEditorListViewModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'ibizappextendeditorname',
},
{
name: 'ibizappextendeditor',
prop: 'ibizappextendeditorid',
},
{
name: 'extensionflag',
},
{
name: 'documentaddress',
},
{
name: 'extendeditordescription',
},
{
name: 'amount',
},
{
name: 'extendeditortype',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* AppExtenfEditorListView 部件服务对象
*
* @export
* @class AppExtenfEditorListViewService
*/
export default class AppExtenfEditorListViewService extends ControlService {
}
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 58px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZAPPEXTENDEDITORAppExtenfEditorListViewBase from './app-extenf-editor-list-view-portlet-base.vue';
@Component({
components: {
}
})
export default class IBIZAPPEXTENDEDITORAppExtenfEditorListView extends IBIZAPPEXTENDEDITORAppExtenfEditorListViewBase {
}
</script>
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
/**
* ExtendEditorChart 部件模型
*
* @export
* @class ExtendEditorChartModel
*/
export default class ExtendEditorChartModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ExtendEditorChartDb_sysportlet11_chartMode
*/
public getDataItems(): any[] {
return [
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'page',
prop:'page'
},
{
name:'sort',
prop:'sort'
}
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZAPPEXTENDEDITORService from '@/service/ibizappextendeditor/ibizappextendeditor-service';
import ExtendEditorChartModel from './extend-editor-chart-chart-model';
/**
* ExtendEditorChart 部件服务对象
*
* @export
* @class ExtendEditorChartService
*/
export default class ExtendEditorChartService extends ControlService {
/**
* 扩展编辑器服务对象
*
* @type {IBIZAPPEXTENDEDITORService}
* @memberof ExtendEditorChartService
*/
public appEntityService: IBIZAPPEXTENDEDITORService = new IBIZAPPEXTENDEDITORService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof ExtendEditorChartService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of ExtendEditorChartService.
*
* @param {*} [opts={}]
* @memberof ExtendEditorChartService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new ExtendEditorChartModel();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExtendEditorChartService
*/
@Errorlog
public search(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.FetchDefault(Context,Data, isloading);
}
result.then((response) => {
resolve(response);
}).catch(response => {
reject(response);
});
});
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册