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

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

上级 efd1a44d
......@@ -791,6 +791,14 @@
"viewname": "IBIZOrderSF2EditView",
"viewtag": "b8ae19200ec9d4e8e588bc31e3f9bcb4"
},
"ibizsample0002mpickupview": {
"title": "首页图表数据源数据多项选择视图",
"caption": "示例实体02",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZSample0002MPickupView",
"viewtag": "ba34a828f898eefac5a98e7b25d9aef4"
},
"ibizbookroweditgridview": {
"title": "图书表格视图(行编辑)",
"caption": "图书",
......
......@@ -110,6 +110,8 @@ export default {
f27: "数据选择(无AC、数据链接)",
f28: "数据选择(下拉)",
f29: "数据选择(下拉、数据链接)",
formitem5: "数据链接",
formitem6: "地址框(支持选择、AC)",
formitem: "地址栏(选择)",
ibizsample0002id: "值项表单项",
f30: "自动填充",
......
......@@ -109,6 +109,8 @@ export default {
f27: "数据选择(无AC、数据链接)",
f28: "数据选择(下拉)",
f29: "数据选择(下拉、数据链接)",
formitem5: "数据链接",
formitem6: "地址框(支持选择、AC)",
formitem: "地址栏(选择)",
ibizsample0002id: "值项表单项",
f30: "自动填充",
......
......@@ -23,6 +23,10 @@ export default {
caption: "示例实体02",
title: "首页图表数据源选择表格视图",
},
mpickupview: {
caption: "示例实体02",
title: "首页图表数据源数据多项选择视图",
},
},
main_form: {
details: {
......
......@@ -22,6 +22,10 @@ export default {
caption: "示例实体02",
title: "首页图表数据源选择表格视图",
},
mpickupview: {
caption: "示例实体02",
title: "首页图表数据源数据多项选择视图",
},
},
main_form: {
details: {
......
......@@ -799,6 +799,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderSF2EditView",
"viewtag": "b8ae19200ec9d4e8e588bc31e3f9bcb4"
},
"ibizsample0002mpickupview": {
"title": "首页图表数据源数据多项选择视图",
"caption": "示例实体02",
"viewtype": "DEMPICKUPVIEW",
"viewmodule": "Sample",
"viewname": "IBIZSample0002MPickupView",
"viewtag": "ba34a828f898eefac5a98e7b25d9aef4"
},
"ibizbookroweditgridview": {
"title": "图书表格视图(行编辑)",
"caption": "图书",
......
.ibizsample0002-mpickup-view{
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;
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZSample0002MPickupViewBase from './ibizsample0002-mpickup-view-base.vue';
import view_pickupviewpanel from '@widgets/ibizsample0002/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-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 IBIZSample0002MPickupView extends IBIZSample0002MPickupViewBase {
}
</script>
\ No newline at end of file
......@@ -112,6 +112,7 @@ export const PageComponents = {
Vue.component('ibizsample0017-f20-edit-view', () => import('@pages/sample/ibizsample0017-f20-edit-view/ibizsample0017-f20-edit-view.vue'));
Vue.component('ibizorder-odsp-w-wfgrid-view', () => import('@pages/sample/ibizorder-odsp-w-wfgrid-view/ibizorder-odsp-w-wfgrid-view.vue'));
Vue.component('ibizbookvalue-rules-grid-view', () => import('@pages/sample/ibizbookvalue-rules-grid-view/ibizbookvalue-rules-grid-view.vue'));
Vue.component('ibizsample0002-mpickup-view', () => import('@pages/sample/ibizsample0002-mpickup-view/ibizsample0002-mpickup-view.vue'));
Vue.component('ibizcustomer-pickup-grid-view', () => import('@pages/sample/ibizcustomer-pickup-grid-view/ibizcustomer-pickup-grid-view.vue'));
Vue.component('ibizorder-sf7-edit-view', () => import('@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'));
Vue.component('ibizbookedit-view', () => import('@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'));
......
......@@ -1648,6 +1648,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbookvalue-rules-grid-view/ibizbookvalue-rules-grid-view.vue'),
},
{
path: 'ibizsample0002s/:ibizsample0002?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizsample0002.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0002-mpickup-view/ibizsample0002-mpickup-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/pickupgridview/:pickupgridview?',
meta: {
......@@ -3073,6 +3087,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-sf2-edit-view/ibizorder-sf2-edit-view.vue'),
},
{
path: '/ibizsample0002s/:ibizsample0002?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizsample0002.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0002-mpickup-view/ibizsample0002-mpickup-view.vue'),
},
{
path: '/ibizbooks/:ibizbook?/roweditgridview/:roweditgridview?',
meta: {
......
......@@ -44,6 +44,7 @@ export const viewstate: any = {
refviews: [
'2dd64fdd5e7303cc73090d949bc91d9b',
'581e6727bc5983c238cc9990ba5fdcac',
'ba34a828f898eefac5a98e7b25d9aef4',
],
},
{
......@@ -995,6 +996,16 @@ export const viewstate: any = {
'f7ce60a7707de1ef9f926b3f9d5d6954',
],
},
{
viewtag: 'ba34a828f898eefac5a98e7b25d9aef4',
viewmodule: 'Sample',
viewname: 'IBIZSample0002MPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'7a334494f71d4328c743657a6429ee03',
],
},
{
viewtag: 'bc76c982dd2264463427eb57e9ed3fba',
viewmodule: 'Sample',
......
......@@ -99,6 +99,7 @@ export default class IBIZSample0002UIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizsample0002s',component:'ibizsample0002-edit-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizsample0002s',component:'ibizsample0002-pickup-grid-view'});
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',srfappde:'ibizsample0002s',component:'ibizsample0002-mpickup-view'});
}
/**
......
......@@ -509,9 +509,75 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.formitem5.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem5' :itemRules="this.rules().formitem5" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem5')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem5.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem5.disabled"
name='formitem5'
deMajorField='ibizsample0002name'
deKeyField='ibizsample0002'
valueitem='ibizsample0002id'
:value="data.formitem5"
editortype="linkonly"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width: 0, height: 0, placement: '', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem6.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem6' :itemRules="this.rules().formitem6" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem6')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem6.error" :isEmptyCaption="false" labelPos="LEFT">
<app-mpicker
:activeData="data"
:disabled="detailsModel.formitem6.disabled"
:curvalue="data.formitem6"
name="formitem6"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:service="service"
valueitem=''
:acParams="{ }"
:pickupView="{ viewname: 'ibizsample0002-mpickup-view', title: $t('entities.ibizsample0002.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
</app-mpicker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :sm="{ span: 8, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizsample0001.main4_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-mpicker
:activeData="data"
:disabled="detailsModel.formitem.disabled"
:curvalue="data.formitem"
name="formitem"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:service="service"
valueitem=''
deMajorField='ibizsample0002name'
deKeyField='ibizsample0002'
:acParams="{ serviceName: 'IBIZSample0002Service', interfaceName: 'FetchDefault'}"
:pickupView="{ viewname: 'ibizsample0002-mpickup-view', title: $t('entities.ibizsample0002.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
</app-mpicker>
</app-form-item>
......@@ -990,6 +1056,8 @@ export default class Main4Base extends Vue implements ControlInterface {
f27: null,
f28: null,
f29: null,
formitem5: null,
formitem6: null,
formitem: null,
ibizsample0002id: null,
f30: null,
......@@ -1200,6 +1268,14 @@ export default class Main4Base extends Vue implements ControlInterface {
{ required: this.detailsModel.f29.required, type: 'string', message: '数据选择(下拉、数据链接) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.f29.required, type: 'string', message: '数据选择(下拉、数据链接) 值不能为空', trigger: 'blur' },
],
formitem5: [
{ required: this.detailsModel.formitem5.required, type: 'string', message: '数据链接 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem5.required, type: 'string', message: '数据链接 值不能为空', trigger: 'blur' },
],
formitem6: [
{ required: this.detailsModel.formitem6.required, type: 'string', message: '地址框(支持选择、AC) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem6.required, type: 'string', message: '地址框(支持选择、AC) 值不能为空', trigger: 'blur' },
],
formitem: [
{ required: this.detailsModel.formitem.required, type: 'string', message: '地址栏(选择) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '地址栏(选择) 值不能为空', trigger: 'blur' },
......@@ -1420,6 +1496,10 @@ export default class Main4Base extends Vue implements ControlInterface {
f28: new FormItemModel({ caption: '数据选择(下拉)', detailType: 'FORMITEM', name: 'f28', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
f29: new FormItemModel({ caption: '数据选择(下拉、数据链接)', detailType: 'FORMITEM', name: 'f29', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem5: new FormItemModel({ caption: '数据链接', detailType: 'FORMITEM', name: 'formitem5', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem6: new FormItemModel({ caption: '地址框(支持选择、AC)', detailType: 'FORMITEM', name: 'formitem6', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '地址栏(选择)', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -1989,6 +2069,30 @@ export default class Main4Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'f29', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem5 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem5')
onFormitem5Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem5', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem6 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main4Base
*/
@Watch('data.formitem6')
onFormitem6Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem6', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem 值
*
......@@ -2185,6 +2289,8 @@ export default class Main4Base extends Vue implements ControlInterface {
......
......@@ -216,9 +216,19 @@ export default class Main4Model {
dataType: 'PICKUPTEXT',
},
{
name: 'formitem',
name: 'formitem5',
prop: 'ibizsample0002name',
dataType: 'PICKUPTEXT',
},
{
name: 'formitem6',
dataType:'FORMITEM',
},
{
name: 'formitem',
prop: 'ibizsample0002name',
dataType: 'PICKUPTEXT',
},
{
name: 'ibizsample0002id',
prop: 'ibizsample0001id',
......
<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 IBIZSample0002Service from '@/service/ibizsample0002/ibizsample0002-service';
import MPickupViewpickupviewpanelService from './mpickup-viewpickupviewpanel-pickupviewpanel-service';
import IBIZSample0002UIService from '@/uiservice/ibizsample0002/ibizsample0002-ui-service';
import MPickupViewpickupviewpanelModel from './mpickup-viewpickupviewpanel-pickupviewpanel-model';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof MPickupViewpickupviewpanelBase
*/
public getControlType(): string {
return 'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {MPickupViewpickupviewpanelService}
* @memberof MPickupViewpickupviewpanelBase
*/
public service: MPickupViewpickupviewpanelService = new MPickupViewpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IBIZSample0002Service}
* @memberof MPickupViewpickupviewpanelBase
*/
public appEntityService: IBIZSample0002Service = new IBIZSample0002Service({ $store: this.$store });
/**
* 转化数据
*
* @param {any} args
* @memberof MPickupViewpickupviewpanelBase
*/
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 MPickupViewpickupviewpanelBase
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof MPickupViewpickupviewpanelBase
*/
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 MPickupViewpickupviewpanelBase
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public view: any = {
viewname: 'ibizsample0002-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof MPickupViewpickupviewpanelBase
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof MPickupViewpickupviewpanelBase
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item.srfmajortext?item.srfmajortext:item['ibizsample0002name'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof MPickupViewpickupviewpanelBase
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof MPickupViewpickupviewpanelBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
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 MPickupViewpickupviewpanelBase
*/
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 MPickupViewpickupviewpanelBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof MPickupViewpickupviewpanelBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './mpickup-viewpickupviewpanel-pickupviewpanel.less';
</style>
\ No newline at end of file
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export default class MPickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'de',
},
{
name: 'denum',
},
{
name: 'updatedate',
},
{
name: 'updateman',
},
{
name: 'ibizsample0002name',
},
{
name: 'createman',
},
{
name: 'ibizsample0002',
prop: 'ibizsample0002id',
},
{
name: 'createdate',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export default class MPickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MPickupViewpickupviewpanelBase from './mpickup-viewpickupviewpanel-pickupviewpanel-base.vue';
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanel extends MPickupViewpickupviewpanelBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册