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

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

上级 c5c59375
......@@ -807,6 +807,14 @@
"viewname": "IBIZOrderTestCLTreeExpView",
"viewtag": "5515A024-BD26-40B2-A13E-932A0DF3E40A"
},
"ibizcustomermpickupview_layout": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerMPickupView_layout",
"viewtag": "55c95540dba6d9b43562beb6ce69d10d"
},
"ibizordersf3gridview": {
"title": "订单表格视图",
"caption": "订单",
......@@ -1271,6 +1279,14 @@
"viewname": "IBIZSample0017FormPickupDataView",
"viewtag": "85b529630528468799b3e6551c92a56d"
},
"ibizcustomerusr2mpickupview_layout": {
"title": "客户实体数据多项选择视图(树视图)",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2MPickupView_layout",
"viewtag": "85c21f769411264bf14f990433fc76ed"
},
"ibizbookusr2meditview9_layout": {
"title": "实体多表单编辑视图",
"caption": "实体多表单编辑视图",
......@@ -1311,6 +1327,14 @@
"viewname": "IBIZOrderTypeEditView",
"viewtag": "8aea047edee2521efed5745419d63553"
},
"ibizcustomerpickupview_layout": {
"title": "客户数据选择视图",
"caption": "客户",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerPickupView_layout",
"viewtag": "8bb68e0800e34b41e92a18ffcf1f7e9f"
},
"ibizsample0001sf6editview": {
"title": "扩展编辑器",
"caption": "扩展编辑器",
......
......@@ -38,6 +38,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
},
editview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
......@@ -50,6 +54,14 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义布局表单多媒体测试",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
},
usr2mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
pickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据选择视图",null),
},
mpickupview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
......
......@@ -38,6 +38,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
},
editview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
......@@ -50,6 +54,14 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义布局表单多媒体测试",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
},
usr2mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
pickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据选择视图",null),
},
mpickupview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
......
......@@ -38,6 +38,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
},
editview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
......@@ -50,6 +54,14 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("自定义布局表单多媒体测试",null),
title: commonLogic.appcommonhandle("客户编辑视图",null),
},
usr2mpickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户实体数据多项选择视图(树视图)",null),
},
pickupview_layout: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据选择视图",null),
},
mpickupview: {
caption: commonLogic.appcommonhandle("客户",null),
title: commonLogic.appcommonhandle("客户数据多项选择视图",null),
......
......@@ -815,6 +815,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderTestCLTreeExpView",
"viewtag": "5515A024-BD26-40B2-A13E-932A0DF3E40A"
},
"ibizcustomermpickupview_layout": {
"title": "客户数据多项选择视图",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerMPickupView_layout",
"viewtag": "55c95540dba6d9b43562beb6ce69d10d"
},
"ibizordersf3gridview": {
"title": "订单表格视图",
"caption": "订单",
......@@ -1279,6 +1287,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0017FormPickupDataView",
"viewtag": "85b529630528468799b3e6551c92a56d"
},
"ibizcustomerusr2mpickupview_layout": {
"title": "客户实体数据多项选择视图(树视图)",
"caption": "客户",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2MPickupView_layout",
"viewtag": "85c21f769411264bf14f990433fc76ed"
},
"ibizbookusr2meditview9_layout": {
"title": "实体多表单编辑视图",
"caption": "实体多表单编辑视图",
......@@ -1319,6 +1335,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderTypeEditView",
"viewtag": "8aea047edee2521efed5745419d63553"
},
"ibizcustomerpickupview_layout": {
"title": "客户数据选择视图",
"caption": "客户",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerPickupView_layout",
"viewtag": "8bb68e0800e34b41e92a18ffcf1f7e9f"
},
"ibizsample0001sf6editview": {
"title": "扩展编辑器",
"caption": "扩展编辑器",
......
......@@ -68,9 +68,6 @@
</template>
<template #container2>
<app-simpleflex-container name="container2" :layoutModelDetails="layoutModelDetails">
<template #button_calluilogic1>
<app-preset-button name="button_calluilogic1" :layoutModelDetails="layoutModelDetails" caption="新建" tooltip="" @itemClick="handleButtonClick" />
</template>
<template #button_calluilogic2>
<app-preset-button name="button_calluilogic2" :layoutModelDetails="layoutModelDetails" caption="编辑" tooltip="" @itemClick="handleButtonClick" />
</template>
......@@ -322,9 +319,8 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['container_scroll2'] , dataRegionType: 'INHERIT' },
view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
button_calluilogic1:{ name: 'button_calluilogic1', 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:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this , buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: '2', dataaccaction: '', visabled: true, disabled: false }, renderMode: '', },
button_calluilogic2:{ name: 'button_calluilogic2', 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:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this , buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: '2', dataaccaction: '', visabled: true, disabled: false }, renderMode: '', },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic1','button_calluilogic2'] , dataRegionType: 'INHERIT' },
button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '编辑', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'PRIMARY', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:120, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this , buttonStyle: 'PRIMARY', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: '2', dataaccaction: '', visabled: true, disabled: false }, renderMode: '', },
container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic2'] , dataRegionType: 'INHERIT' },
container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container1','container2'] , dataRegionType: 'INHERIT' },
container_scroll_header1:{ name: 'container_scroll_header1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'NORTH', layoutHeight:60, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['container_grid1'] , dataRegionType: 'INHERIT' },
container_scroll1:{ name: 'container_scroll1', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['container_scroll_main1','container_scroll_header1'] , dataRegionType: 'INHERIT' }
......@@ -495,13 +491,6 @@ export default class IBIZBOOKGridLoadCustomViewBase extends Vue {
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
if (Object.is(name, 'button_calluilogic1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
}
if (Object.is(name, 'button_calluilogic2')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] && UIService[`IBIZBOOK_panel_Usr1109586119_button_calluilogic2_click`] instanceof Function) {
......
.ibizcustomer-mpickup-view-layout{
position: relative;
}
.pickup-view {
>.translate-contant {
overflow: auto;
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
.translate-buttons {
width: 80px;
display: flex;
align-items: center;
text-align: center;
button {
margin-bottom: 5px;
}
}
.left, .right {
width: 300px;
}
.right {
border: 1px solid #e9e9e9;
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
word-spacing: 10px;
height: 100%;
overflow: auto;
}
.mpicker-select > div {
padding: 3px 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
font-weight: initial;
cursor: pointer;
min-height: 28px;
border: 1px solid #e9e9e9;
margin: 4px 4px;
transition: all .3s;
}
.mpicker-select > div:hover {
background: #ecf6fd;
}
.mpicker-select > .select{
color: #108ee9;
background: #ecf6fd;
}
}
.center{
width: calc(100% - 380px);
.pickupviewpanel {
width: 100%;
height: 100%;
}
}
}
>.footer {
height: 64px;
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerMPickupView_layoutBase from './ibizcustomer-mpickup-view-layout-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer/mpickup-view-layoutpickupviewpanel-pickupviewpanel/mpickup-view-layoutpickupviewpanel-pickupviewpanel.vue';
@Component({
components: {
view_pickupviewpanel,
},
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 IBIZCustomerMPickupView_layout extends IBIZCustomerMPickupView_layoutBase {
}
</script>
\ No newline at end of file
.ibizcustomer-pickup-view-layout{
position: relative;
}
.pickup-view {
>.pickupviewpanel {
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
}
>.footer {
height: 64px;
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerPickupView_layoutBase from './ibizcustomer-pickup-view-layout-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer/pickup-view-layoutpickupviewpanel-pickupviewpanel/pickup-view-layoutpickupviewpanel-pickupviewpanel.vue';
@Component({
components: {
view_pickupviewpanel,
},
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 IBIZCustomerPickupView_layout extends IBIZCustomerPickupView_layoutBase {
}
</script>
\ No newline at end of file
.ibizcustomer-usr2-mpickup-view-layout{
position: relative;
}
.pickup-view {
>.translate-contant {
overflow: auto;
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
.translate-buttons {
width: 80px;
display: flex;
align-items: center;
text-align: center;
button {
margin-bottom: 5px;
}
}
.left, .right {
width: 300px;
}
.right {
border: 1px solid #e9e9e9;
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
word-spacing: 10px;
height: 100%;
overflow: auto;
}
.mpicker-select > div {
padding: 3px 10px;
font-size: 14px;
color: rgba(0, 0, 0, 0.85);
font-weight: initial;
cursor: pointer;
min-height: 28px;
border: 1px solid #e9e9e9;
margin: 4px 4px;
transition: all .3s;
}
.mpicker-select > div:hover {
background: #ecf6fd;
}
.mpicker-select > .select{
color: #108ee9;
background: #ecf6fd;
}
}
.center{
width: calc(100% - 380px);
.pickupviewpanel {
width: 100%;
height: 100%;
}
}
}
>.footer {
height: 64px;
}
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerUsr2MPickupView_layoutBase from './ibizcustomer-usr2-mpickup-view-layout-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer/usr2-mpickup-view-layoutpickupviewpanel-pickupviewpanel/usr2-mpickup-view-layoutpickupviewpanel-pickupviewpanel.vue';
@Component({
components: {
view_pickupviewpanel,
},
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 IBIZCustomerUsr2MPickupView_layout extends IBIZCustomerUsr2MPickupView_layoutBase {
}
</script>
\ No newline at end of file
......@@ -171,7 +171,10 @@ export const PageComponents = {
Vue.component('ibizorder-detail-sgrid-view', () => import('@pages/sample/ibizorder-detail-sgrid-view/ibizorder-detail-sgrid-view.vue'));
Vue.component('ibizcustomer-usr2-pickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-pickup-view-layout/ibizcustomer-usr2-pickup-view-layout.vue'));
Vue.component('ibizcustomer-usr2-pickup-view', () => import('@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'));
Vue.component('ibizcustomer-pickup-view-layout', () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue'));
Vue.component('ibizcustomer-mpickup-view-layout', () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'));
Vue.component('ibizcustomer-mpickup-view', () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'));
Vue.component('ibizorder-f19-edit-view', () => import('@pages/sample/ibizorder-f19-edit-view/ibizorder-f19-edit-view.vue'));
Vue.component('ibizbookedit-view', () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'));
......
......@@ -2635,6 +2635,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizcustomer-usr2-pickup-view/ibizcustomer-usr2-pickup-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/usr2mpickupview_layout/:usr2mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.usr2mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2mpickupview_layout', parameterName: 'usr2mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/usr2mpickupview/:usr2mpickupview?',
meta: {
......@@ -2649,6 +2663,34 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/pickupview_layout/:pickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.pickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'pickupview_layout', parameterName: 'pickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/mpickupview_layout/:mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview_layout', parameterName: 'mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
......@@ -4279,6 +4321,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-test-cltree-exp-view/ibizorder-test-cltree-exp-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/mpickupview_layout/:mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview_layout', parameterName: 'mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'),
},
{
path: '/ibizorders/:ibizorder?/sf3gridview/:sf3gridview?',
meta: {
......@@ -4910,6 +4965,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/usr2mpickupview_layout/:usr2mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.usr2mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2mpickupview_layout', parameterName: 'usr2mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr2meditview9_layout/:usr2meditview9_layout?',
meta: {
......@@ -4962,6 +5030,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-calendar-exp-view-layout/ibizorder-calendar-exp-view-layout.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/pickupview_layout/:pickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.pickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'pickupview_layout', parameterName: 'pickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
......
......@@ -1017,6 +1017,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-test-cltree-exp-view/ibizorder-test-cltree-exp-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/mpickupview_layout/:mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview_layout', parameterName: 'mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'),
},
{
path: '/ibizorders/:ibizorder?/sf3gridview/:sf3gridview?',
meta: {
......@@ -1648,6 +1661,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/usr2mpickupview_layout/:usr2mpickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.usr2mpickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2mpickupview_layout', parameterName: 'usr2mpickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-mpickup-view-layout/ibizcustomer-usr2-mpickup-view-layout.vue'),
},
{
path: '/ibizbooks/:ibizbook?/usr2meditview9_layout/:usr2meditview9_layout?',
meta: {
......@@ -1700,6 +1726,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-calendar-exp-view-layout/ibizorder-calendar-exp-view-layout.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/pickupview_layout/:pickupview_layout?',
meta: {
caption: 'entities.ibizcustomer.views.pickupview_layout.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'pickupview_layout', parameterName: 'pickupview_layout' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-pickup-view-layout/ibizcustomer-pickup-view-layout.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: {
......
......@@ -435,8 +435,11 @@ export const viewstate: any = {
refviews: [
'e7f12b95864b12114256d9c4dbbb559c',
'2dd50b1b88cf8062b625ee8b0b4fa9d7',
'85c21f769411264bf14f990433fc76ed',
'3177e05ee25b4c215c2ce87547fcdc8c',
'8bb68e0800e34b41e92a18ffcf1f7e9f',
'f083dd992abed44bf15a9930b45c3895',
'55c95540dba6d9b43562beb6ce69d10d',
'a9c3b7c4ff10dfd9ccc9dc04531b6db9',
],
},
......@@ -746,6 +749,16 @@ export const viewstate: any = {
'91bbbdfe28764098844c216c826756f4',
],
},
{
viewtag: '55c95540dba6d9b43562beb6ce69d10d',
viewmodule: 'Sample',
viewname: 'IBIZCustomerMPickupView_layout',
viewaction: '',
viewdatachange: false,
refviews: [
'0870b1a6221a37e2994f515dbe77509c',
],
},
{
viewtag: '55f7fd4d93f5f52c0d0ad59cc61ca1e6',
viewmodule: 'Sample',
......@@ -1346,6 +1359,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '85c21f769411264bf14f990433fc76ed',
viewmodule: 'Sample',
viewname: 'IBIZCustomerUsr2MPickupView_layout',
viewaction: '',
viewdatachange: false,
refviews: [
'6a079bac1a6eeb580654cd04e6b1a8b8',
],
},
{
viewtag: '876c361caba385fee259f7a7359de8e3',
viewmodule: 'Sample',
......@@ -1388,6 +1411,16 @@ export const viewstate: any = {
'7f46cd67bcfbeac794fcc5c91d8bcceb',
],
},
{
viewtag: '8bb68e0800e34b41e92a18ffcf1f7e9f',
viewmodule: 'Sample',
viewname: 'IBIZCustomerPickupView_layout',
viewaction: '',
viewdatachange: false,
refviews: [
'0870b1a6221a37e2994f515dbe77509c',
],
},
{
viewtag: '8c29a026990571a81823c5d28a7a65be',
viewmodule: 'Sample',
......@@ -2110,8 +2143,11 @@ export const viewstate: any = {
refviews: [
'e7f12b95864b12114256d9c4dbbb559c',
'2dd50b1b88cf8062b625ee8b0b4fa9d7',
'85c21f769411264bf14f990433fc76ed',
'3177e05ee25b4c215c2ce87547fcdc8c',
'8bb68e0800e34b41e92a18ffcf1f7e9f',
'f083dd992abed44bf15a9930b45c3895',
'55c95540dba6d9b43562beb6ce69d10d',
'a9c3b7c4ff10dfd9ccc9dc04531b6db9',
],
},
......
......@@ -489,26 +489,6 @@ export default class IBIZBOOKUIServiceBase extends UIService {
actionContext.$Notice.error({ title: '错误', desc: '不支持单项数据' });
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
* @memberof IBIZBOOKUIService
*/
public async IBIZBOOK_panel_Usr1109586119_button_calluilogic1_click(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _context: any = Object.assign(context, actionContext.context);
const _params: any = Object.assign(params, actionContext.viewparams);
return this.executeUILogic('CustomEdit', args, _context, _params, $event, xData, actionContext, srfParentDeName);
}
/**
* 编辑
*
......
......@@ -102,9 +102,12 @@ export default class IBIZCustomerUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'usr2pickupview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view'});
this.allViewMap.set(':',{viewname:'usr2mpickupview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view'});
this.allViewMap.set(':',{viewname:'mpickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view-layout'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizcustomers',component:'ibizcustomer-edit-view'});
this.allViewMap.set(':',{viewname:'pickuptreeview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-tree-view'});
this.allViewMap.set(':',{viewname:'mediatesteditview',srfappde:'ibizcustomers',component:'ibizcustomer-media-test-edit-view'});
this.allViewMap.set(':',{viewname:'usr2mpickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-mpickup-view-layout'});
this.allViewMap.set(':',{viewname:'pickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view-layout'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizcustomers',component:'ibizcustomer-mpickup-view'});
this.allViewMap.set(':',{viewname:'usr2pickupview_layout',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-pickup-view-layout'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view'});
......
......@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -1308,7 +1308,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1343,7 +1343,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1404,7 +1404,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1512,7 +1512,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1586,7 +1586,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_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1274,7 +1274,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1309,7 +1309,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1370,7 +1370,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1478,7 +1478,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1552,7 +1552,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_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -1377,7 +1377,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1412,7 +1412,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1473,7 +1473,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1581,7 +1581,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_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1655,7 +1655,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_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -43,7 +43,7 @@
:service="service"
valueitem=''
:acParams="{ }"
:pickupView="{ viewname: 'ibizcustomer-usr2-mpickup-view', title: $t('entities.ibizcustomer.views.usr2mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'usr2mpickupview', parameterName: 'usr2mpickupview' } ], placement:'' }"
:pickupView="{ viewname: 'ibizcustomer-usr2-mpickup-view-layout', title: $t('entities.ibizcustomer.views.usr2mpickupview_layout.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'usr2mpickupview_layout', parameterName: 'usr2mpickupview_layout' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
</app-mpicker>
......@@ -66,7 +66,7 @@
valueitem='borrower2_id'
:value="data.borrower2"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-view', title: $t('entities.ibizcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
:pickupView="{ viewname: 'ibizcustomer-pickup-view-layout', title: $t('entities.ibizcustomer.views.pickupview_layout.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview_layout', parameterName: 'pickupview_layout' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
......@@ -89,7 +89,7 @@
:service="service"
valueitem=''
:acParams="{ }"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view-layout', title: $t('entities.ibizcustomer.views.mpickupview_layout.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview_layout', parameterName: 'mpickupview_layout' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
</app-mpicker>
......
......@@ -46,11 +46,11 @@
<span class="quick-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_quicktoolbarModels.deuiaction1.visabled" :disabled="listviewlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
</div>
</span>
......@@ -61,18 +61,18 @@
<span class="batch-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction1.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction2.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
</div>
</span>
......@@ -362,7 +362,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
......@@ -382,7 +382,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
......@@ -408,7 +408,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
* @memberof IBIZBOOKUsr4ListView_layoutBase
*/
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
......@@ -583,9 +583,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKListView
* @memberof IBIZBOOKUsr4ListView_layout
*/
public listviewlist_quicktoolbarModels: any = {
public usr4listview_layoutlist_quicktoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
};
......@@ -595,9 +595,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKListView
* @memberof IBIZBOOKUsr4ListView_layout
*/
public listviewlist_batchtoolbarModels: any = {
public usr4listview_layoutlist_batchtoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
......@@ -820,7 +820,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/
public load(opt: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -936,7 +936,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -1031,7 +1031,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -1039,7 +1039,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
<template>
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange"
@viewdatasactivated="viewDatasActivated"
@viewload="onViewLoad">
</component>
</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 AppCenterService from "@service/app/app-center-service";
import IBIZCustomerEntityService from '@/service/ibizcustomer/ibizcustomer-service';
import MPickupView_layoutpickupviewpanelService from './mpickup-view-layoutpickupviewpanel-pickupviewpanel-service';
import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service';
import MPickupView_layoutpickupviewpanelModel from './mpickup-view-layoutpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class MPickupView_layoutpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewparams!: any;
/**
* 视图操作参数
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewCtx!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupView_layoutpickupviewpanelService}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public service: MPickupView_layoutpickupviewpanelService = new MPickupView_layoutpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZCustomerService}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public appEntityService: IBIZCustomerEntityService = new IBIZCustomerEntityService({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public transformData(args: any) {
let _this: any = this;
if(_this.service && _this.service.handleRequestData instanceof Function && _this.service.handleRequestData('transform',_this.context,args)){
return _this.service.handleRequestData('transform',_this.context,args)['data'];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
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 {string}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizcustomer-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizcustomername'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupView_layoutpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './mpickup-view-layoutpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
/**
* MPickupView_layoutpickupviewpanel 部件模型
*
* @export
* @class MPickupView_layoutpickupviewpanelModel
*/
export default class MPickupView_layoutpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupView_layoutpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'sn',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'customeruid',
},
{
name: 'ibizcustomer',
prop: 'ibizcustomerid',
},
{
name: 'address',
},
{
name: 'ibizcustomername',
},
{
name: 'updateman',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MPickupView_layoutpickupviewpanel 部件服务对象
*
* @export
* @class MPickupView_layoutpickupviewpanelService
*/
export default class MPickupView_layoutpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MPickupView_layoutpickupviewpanelBase from './mpickup-view-layoutpickupviewpanel-pickupviewpanel-base.vue';
@Component({
components: {
}
})
export default class MPickupView_layoutpickupviewpanel extends MPickupView_layoutpickupviewpanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange"
@viewdatasactivated="viewDatasActivated"
@viewload="onViewLoad">
</component>
</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 AppCenterService from "@service/app/app-center-service";
import IBIZCustomerEntityService from '@/service/ibizcustomer/ibizcustomer-service';
import PickupView_layoutpickupviewpanelService from './pickup-view-layoutpickupviewpanel-pickupviewpanel-service';
import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service';
import PickupView_layoutpickupviewpanelModel from './pickup-view-layoutpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class PickupView_layoutpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public viewparams!: any;
/**
* 视图操作参数
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public viewCtx!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {PickupView_layoutpickupviewpanelService}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public service: PickupView_layoutpickupviewpanelService = new PickupView_layoutpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZCustomerService}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public appEntityService: IBIZCustomerEntityService = new IBIZCustomerEntityService({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof PickupView_layoutpickupviewpanelBase
*/
public transformData(args: any) {
let _this: any = this;
if(_this.service && _this.service.handleRequestData instanceof Function && _this.service.handleRequestData('transform',_this.context,args)){
return _this.service.handleRequestData('transform',_this.context,args)['data'];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof PickupView_layoutpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
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 {string}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizcustomer-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof PickupView_layoutpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof PickupView_layoutpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof PickupView_layoutpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizcustomername'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof PickupView_layoutpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof PickupView_layoutpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PickupView_layoutpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './pickup-view-layoutpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
/**
* PickupView_layoutpickupviewpanel 部件模型
*
* @export
* @class PickupView_layoutpickupviewpanelModel
*/
export default class PickupView_layoutpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PickupView_layoutpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'createman',
},
{
name: 'sn',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'customeruid',
},
{
name: 'ibizcustomer',
prop: 'ibizcustomerid',
},
{
name: 'address',
},
{
name: 'ibizcustomername',
},
{
name: 'updateman',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* PickupView_layoutpickupviewpanel 部件服务对象
*
* @export
* @class PickupView_layoutpickupviewpanelService
*/
export default class PickupView_layoutpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import PickupView_layoutpickupviewpanelBase from './pickup-view-layoutpickupviewpanel-pickupviewpanel-base.vue';
@Component({
components: {
}
})
export default class PickupView_layoutpickupviewpanel extends PickupView_layoutpickupviewpanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange"
@viewdatasactivated="viewDatasActivated"
@viewload="onViewLoad">
</component>
</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 AppCenterService from "@service/app/app-center-service";
import IBIZCustomerEntityService from '@/service/ibizcustomer/ibizcustomer-service';
import Usr2MPickupView_layoutpickupviewpanelService from './usr2-mpickup-view-layoutpickupviewpanel-pickupviewpanel-service';
import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service';
import Usr2MPickupView_layoutpickupviewpanelModel from './usr2-mpickup-view-layoutpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class Usr2MPickupView_layoutpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewparams!: any;
/**
* 视图操作参数
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public viewCtx!: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Usr2MPickupView_layoutpickupviewpanelService}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public service: Usr2MPickupView_layoutpickupviewpanelService = new Usr2MPickupView_layoutpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZCustomerService}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public appEntityService: IBIZCustomerEntityService = new IBIZCustomerEntityService({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public transformData(args: any) {
let _this: any = this;
if(_this.service && _this.service.handleRequestData instanceof Function && _this.service.handleRequestData('transform',_this.context,args)){
return _this.service.handleRequestData('transform',_this.context,args)['data'];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
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 {string}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizcustomer-pickup-tree-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizcustomername'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public initNavParam(){
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* vue 生命周期
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Usr2MPickupView_layoutpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './usr2-mpickup-view-layoutpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Usr2MPickupView_layoutpickupviewpanel 部件服务对象
*
* @export
* @class Usr2MPickupView_layoutpickupviewpanelService
*/
export default class Usr2MPickupView_layoutpickupviewpanelService extends ControlService {
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册