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

lab_gzf 部署微服务应用

上级 00397d6f
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"eamlocationstatepickupgridview": { "eamlocationstatepickupgridview": {
"title": "功能位置状态选择表格视图", "title": "功能位置状态信息",
"caption": "功能位置状态", "caption": "功能位置状态",
"viewtype": "DEPICKUPGRIDVIEW", "viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Location", "viewmodule": "Location",
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
}, },
pickupgridview: { pickupgridview: {
caption: "功能位置状态", caption: "功能位置状态",
title: "功能位置状态选择表格视图", title: "功能位置状态信息",
}, },
gridview: { gridview: {
caption: "功能位置状态", caption: "功能位置状态",
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
}, },
pickupgridview: { pickupgridview: {
caption: "功能位置状态", caption: "功能位置状态",
title: "功能位置状态选择表格视图", title: "功能位置状态信息",
}, },
gridview: { gridview: {
caption: "功能位置状态", caption: "功能位置状态",
......
...@@ -56,7 +56,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -56,7 +56,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "b3d85711a6feb998249451ba167895d2" "viewtag": "b3d85711a6feb998249451ba167895d2"
}, },
"eamlocationstatepickupgridview": { "eamlocationstatepickupgridview": {
"title": "功能位置状态选择表格视图", "title": "功能位置状态信息",
"caption": "功能位置状态", "caption": "功能位置状态",
"viewtype": "DEPICKUPGRIDVIEW", "viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Location", "viewmodule": "Location",
......
<studio-view-style2 viewName="eamlocationstatemodeleditview" viewTitle="功能位置状态模型编辑视图" class='deeditview eamlocation-state-model-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelEditViewBase } from './eamlocation-state-model-edit-view-base';
import view_form from '@widgets/eamlocation-state-model/main-form/main-form.vue';
/**
* 功能位置状态模型编辑视图视图
*
* @export
* @class EAMLocationStateModelEditView
* @extends {EAMLocationStateModelEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelEditView extends EAMLocationStateModelEditViewBase { }
</script>
<studio-view-style2 viewName="eamlocationstatemodelgridview" viewTitle="功能位置状态模型表格视图" class='degridview eamlocation-state-model-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="功能位置状态模型名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelGridViewBase } from './eamlocation-state-model-grid-view-base';
import view_grid from '@widgets/eamlocation-state-model/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamlocation-state-model/default-searchform/default-searchform.vue';
/**
* 功能位置状态模型表格视图视图
*
* @export
* @class EAMLocationStateModelGridView
* @extends {EAMLocationStateModelGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelGridView extends EAMLocationStateModelGridViewBase { }
</script>
<studio-view-style2 viewName="eamlocationstatemodellineeditview" viewTitle="功能位置状态模型明细编辑视图" class='deeditview eamlocation-state-model-line-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-line-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelLineEditViewBase } from './eamlocation-state-model-line-edit-view-base';
import view_form from '@widgets/eamlocation-state-model-line/main-form/main-form.vue';
/**
* 功能位置状态模型明细编辑视图视图
*
* @export
* @class EAMLocationStateModelLineEditView
* @extends {EAMLocationStateModelLineEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelLineEditView extends EAMLocationStateModelLineEditViewBase { }
</script>
<studio-view-style2 viewName="eamlocationstatemodellinegridview" viewTitle="功能位置状态模型明细表格视图" class='degridview eamlocation-state-model-line-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="功能位置状态模型明细名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-line-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelLineGridViewBase } from './eamlocation-state-model-line-grid-view-base';
import view_grid from '@widgets/eamlocation-state-model-line/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamlocation-state-model-line/default-searchform/default-searchform.vue';
/**
* 功能位置状态模型明细表格视图视图
*
* @export
* @class EAMLocationStateModelLineGridView
* @extends {EAMLocationStateModelLineGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelLineGridView extends EAMLocationStateModelLineGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import EAMLocationStateModelService from '@/service/eamlocation-state-model/eamlocation-state-model-service';
import EAMLocationStateModelAuthService from '@/authservice/eamlocation-state-model/eamlocation-state-model-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import EAMLocationStateModelUIService from '@/uiservice/eamlocation-state-model/eamlocation-state-model-ui-service';
/**
* 功能位置状态模型选择表格视图视图基类
*
* @export
* @class EAMLocationStateModelPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class EAMLocationStateModelPickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected appDeName: string = 'eamlocationstatemodel';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected appDeKey: string = 'eamlocationstatemodelid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected appDeMajor: string = 'eamlocationstatemodelname';
/**
* 实体服务对象
*
* @type {EAMLocationStateModelService}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected appEntityService: EAMLocationStateModelService = new EAMLocationStateModelService;
/**
* 实体权限服务对象
*
* @type EAMLocationStateModelUIService
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public appUIService: EAMLocationStateModelUIService = new EAMLocationStateModelUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.eamlocationstatemodel.views.pickupgridview.caption',
srfTitle: 'entities.eamlocationstatemodel.views.pickupgridview.title',
srfSubTitle: 'entities.eamlocationstatemodel.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'bb8b4b03a77ed63b8eb4ef3d62b669a6';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'eamlocationstatemodel',
majorPSDEField: 'eamlocationstatemodelname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof EAMLocationStateModelPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="eamlocationstatemodelpickupgridview" viewTitle="功能位置状态模型选择表格视图" class='depickupgridview eamlocation-state-model-pickup-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelPickupGridViewBase } from './eamlocation-state-model-pickup-grid-view-base';
import view_grid from '@widgets/eamlocation-state-model/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamlocation-state-model/default-searchform/default-searchform.vue';
/**
* 功能位置状态模型选择表格视图视图
*
* @export
* @class EAMLocationStateModelPickupGridView
* @extends {EAMLocationStateModelPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelPickupGridView extends EAMLocationStateModelPickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import EAMLocationStateModelService from '@/service/eamlocation-state-model/eamlocation-state-model-service';
import EAMLocationStateModelAuthService from '@/authservice/eamlocation-state-model/eamlocation-state-model-auth-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
import EAMLocationStateModelUIService from '@/uiservice/eamlocation-state-model/eamlocation-state-model-ui-service';
/**
* 功能位置状态模型数据选择视图视图基类
*
* @export
* @class EAMLocationStateModelPickupViewBase
* @extends {PickupViewBase}
*/
export class EAMLocationStateModelPickupViewBase extends PickupViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected appDeName: string = 'eamlocationstatemodel';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected appDeKey: string = 'eamlocationstatemodelid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected appDeMajor: string = 'eamlocationstatemodelname';
/**
* 实体服务对象
*
* @type {EAMLocationStateModelService}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected appEntityService: EAMLocationStateModelService = new EAMLocationStateModelService;
/**
* 实体权限服务对象
*
* @type EAMLocationStateModelUIService
* @memberof EAMLocationStateModelPickupViewBase
*/
public appUIService: EAMLocationStateModelUIService = new EAMLocationStateModelUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.eamlocationstatemodel.views.pickupview.caption',
srfTitle: 'entities.eamlocationstatemodel.views.pickupview.title',
srfSubTitle: 'entities.eamlocationstatemodel.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMLocationStateModelPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '3d676a12800fca23bec463d5c5217413';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMLocationStateModelPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMLocationStateModelPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'eamlocationstatemodel',
majorPSDEField: 'eamlocationstatemodelname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStateModelPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="eamlocationstatemodelpickupview" viewTitle="功能位置状态模型数据选择视图" class='depickupview eamlocation-state-model-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-model-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStateModelPickupViewBase } from './eamlocation-state-model-pickup-view-base';
import view_pickupviewpanel from '@widgets/eamlocation-state-model/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 功能位置状态模型数据选择视图视图
*
* @export
* @class EAMLocationStateModelPickupView
* @extends {EAMLocationStateModelPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStateModelPickupView extends EAMLocationStateModelPickupViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import EAMLocationStateService from '@/service/eamlocation-state/eamlocation-state-service';
import EAMLocationStateAuthService from '@/authservice/eamlocation-state/eamlocation-state-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import EAMLocationStateUIService from '@/uiservice/eamlocation-state/eamlocation-state-ui-service';
/**
* 功能位置状态信息视图基类
*
* @export
* @class EAMLocationStatePickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class EAMLocationStatePickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected appDeName: string = 'eamlocationstate';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected appDeKey: string = 'eamlocationstateid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected appDeMajor: string = 'eamlocationstatename';
/**
* 实体服务对象
*
* @type {EAMLocationStateService}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected appEntityService: EAMLocationStateService = new EAMLocationStateService;
/**
* 实体权限服务对象
*
* @type EAMLocationStateUIService
* @memberof EAMLocationStatePickupGridViewBase
*/
public appUIService: EAMLocationStateUIService = new EAMLocationStateUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.eamlocationstate.views.pickupgridview.caption',
srfTitle: 'entities.eamlocationstate.views.pickupgridview.title',
srfSubTitle: 'entities.eamlocationstate.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'b56347aaab650c59a8338876600c21e4';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMLocationStatePickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMLocationStatePickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'eamlocationstate',
majorPSDEField: 'eamlocationstatename',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMLocationStatePickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof EAMLocationStatePickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="eamlocationstatepickupgridview" viewTitle="功能位置状态信息" class='depickupgridview eamlocation-state-pickup-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./eamlocation-state-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMLocationStatePickupGridViewBase } from './eamlocation-state-pickup-grid-view-base';
import view_grid from '@widgets/eamlocation-state/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamlocation-state/default-searchform/default-searchform.vue';
/**
* 功能位置状态信息视图
*
* @export
* @class EAMLocationStatePickupGridView
* @extends {EAMLocationStatePickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMLocationStatePickupGridView extends EAMLocationStatePickupGridViewBase { }
</script>
<studio-view-style2 viewName="eamlocationstatepickupview" viewTitle="功能位置状态数据选择视图" class='depickupview eamlocation-state-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册