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

jackwang 部署微服务应用

上级 ba9a55e4
......@@ -190,8 +190,8 @@
"memo": "系统自动添加"
},
"hrcertificatev_001": {
"title": "证书信息表格视图",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_001",
......@@ -540,8 +540,8 @@
"memo": "系统自动添加"
},
"hrcertificatev_003": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_003",
......@@ -560,8 +560,8 @@
"memo": "系统自动添加"
},
"hrcertificategridview": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateGridView",
......@@ -620,8 +620,8 @@
"memo": ""
},
"hrcertificatev_006": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_006",
......@@ -1240,7 +1240,7 @@
"memo": "系统自动添加"
},
"hrtechnicaltitlegridview": {
"title": "职称信息表格视图",
"title": "职称",
"caption": "职称信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
......@@ -1420,8 +1420,8 @@
"memo": ""
},
"hrcertificatev_004": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_004",
......
......@@ -27,8 +27,8 @@ export default {
},
views: {
v_001: {
caption: "证书信息",
title: "证书信息表格视图",
caption: "证书",
title: "证书",
},
tabexpview: {
caption: "证书",
......@@ -39,24 +39,24 @@ export default {
title: "证书信息",
},
v_003: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
gridview: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
v_006: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
editview: {
caption: "证书信息",
title: "证书信息编辑视图",
},
v_004: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
},
main_form: {
......
......@@ -26,8 +26,8 @@ export default {
},
views: {
v_001: {
caption: "证书信息",
title: "证书信息表格视图",
caption: "证书",
title: "证书",
},
tabexpview: {
caption: "证书",
......@@ -38,24 +38,24 @@ export default {
title: "证书信息",
},
v_003: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
gridview: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
v_006: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
editview: {
caption: "证书信息",
title: "证书信息编辑视图",
},
v_004: {
caption: "证书信息",
title: "证书表格",
caption: "证书",
title: "证书",
},
},
main_form: {
......
......@@ -34,7 +34,7 @@ export default {
},
gridview: {
caption: "职称信息",
title: "职称信息表格视图",
title: "职称",
},
v_002: {
caption: "职称信息",
......
......@@ -33,7 +33,7 @@ export default {
},
gridview: {
caption: "职称信息",
title: "职称信息表格视图",
title: "职称",
},
v_002: {
caption: "职称信息",
......
......@@ -160,8 +160,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "1316a3add8f01af03edf978ef21af6b1"
},
"hrcertificatev_001": {
"title": "证书信息表格视图",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_001",
......@@ -440,8 +440,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "62468a4082892d924fe855427a8cd0cb"
},
"hrcertificatev_003": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_003",
......@@ -456,8 +456,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "6395cba44e6d6151f19e543b55d88845"
},
"hrcertificategridview": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateGridView",
......@@ -504,8 +504,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "6d4cab857af2830b37515c2015a40e5f"
},
"hrcertificatev_006": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_006",
......@@ -1000,7 +1000,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "d5b65e4ae9fc38e66c7faf5698dc6776"
},
"hrtechnicaltitlegridview": {
"title": "职称信息表格视图",
"title": "职称",
"caption": "职称信息",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
......@@ -1144,8 +1144,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "fe6049b3cb31f7fee28824ad83f6221f"
},
"hrcertificatev_004": {
"title": "证书表格",
"caption": "证书信息",
"title": "证书",
"caption": "证书",
"viewtype": "DEGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRCertificateV_004",
......
......@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 证书表格视图基类
* 证书视图基类
*
* @export
* @class HRCertificateGridViewBase
......
<studio-view-style2 viewName="hrcertificategridview" viewTitle="证书表格" class='degridview hrcertificate-grid-view'>
<studio-view-style2 viewName="hrcertificategridview" viewTitle="证书" class='degridview hrcertificate-grid-view'>
<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.apply(_self, arguments)"/> </template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/hrcertificate/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrcertificate/default-searchform/default-searchform.vue';
/**
* 证书表格视图
* 证书视图
*
* @export
* @class HRCertificateGridView
......
import { Subject } from 'rxjs';
import { TabExpViewBase } from '@/studio-core';
import HRCertificateService from '@/service/hrcertificate/hrcertificate-service';
import HRCertificateAuthService from '@/authservice/hrcertificate/hrcertificate-auth-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import HRCertificateUIService from '@/uiservice/hrcertificate/hrcertificate-ui-service';
/**
* 证书视图基类
*
* @export
* @class HRCertificateTabExpViewBase
* @extends {TabExpViewBase}
*/
export class HRCertificateTabExpViewBase extends TabExpViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRCertificateTabExpViewBase
*/
protected appDeName: string = 'hrcertificate';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRCertificateTabExpViewBase
*/
protected appDeKey: string = 'hrcertificateid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRCertificateTabExpViewBase
*/
protected appDeMajor: string = 'hrcertificatename';
/**
* 实体服务对象
*
* @type {HRCertificateService}
* @memberof HRCertificateTabExpViewBase
*/
protected appEntityService: HRCertificateService = new HRCertificateService;
/**
* 实体权限服务对象
*
* @type HRCertificateUIService
* @memberof HRCertificateTabExpViewBase
*/
public appUIService: HRCertificateUIService = new HRCertificateUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRCertificateTabExpViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRCertificateTabExpViewBase
*/
protected model: any = {
srfCaption: 'entities.hrcertificate.views.tabexpview.caption',
srfTitle: 'entities.hrcertificate.views.tabexpview.title',
srfSubTitle: 'entities.hrcertificate.views.tabexpview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRCertificateTabExpViewBase
*/
protected containerModel: any = {
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '1556b6299248ca949822a15645afc066';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRCertificateTabExpViewBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRCertificateTabExpViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'hrcertificate',
majorPSDEField: 'hrcertificatename',
isLoadDefault: true,
});
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrcertificatetabexpview" viewTitle="证书" class='detabexpview hrcertificate-tab-exp-view'>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
name="tabexppanel"
ref='tabexppanel'
@closeview="closeView($event)">
</view_tabexppanel>
</studio-view-style2>
\ No newline at end of file
<template src="./hrcertificate-tab-exp-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRCertificateTabExpViewBase } from './hrcertificate-tab-exp-view-base';
import view_tabexppanel from '@widgets/hrcertificate/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';
/**
* 证书视图
*
* @export
* @class HRCertificateTabExpView
* @extends {HRCertificateTabExpViewBase}
*/
@Component({
components: {
view_tabexppanel,
}
})
@VueLifeCycleProcessing()
export default class HRCertificateTabExpView extends HRCertificateTabExpViewBase { }
</script>
......@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 证书信息表格视图视图基类
* 证书视图基类
*
* @export
* @class HRCertificateV_001Base
......
<studio-view-style2 viewName="hrcertificatev_001" viewTitle="证书信息表格视图" class='degridview hrcertificate-v-001'>
<studio-view-style2 viewName="hrcertificatev_001" viewTitle="证书" class='degridview hrcertificate-v-001'>
<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.apply(_self, arguments)"/> </template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/hrcertificate/grid-001-grid/grid-001-grid.vue';
import view_searchform from '@widgets/hrcertificate/default-searchform/default-searchform.vue';
/**
* 证书信息表格视图视图
* 证书视图
*
* @export
* @class HRCertificateV_001
......
<studio-view-style2 viewName="hrcertificatev_003" viewTitle="证书" class='degridview hrcertificate-v-003'>
<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.apply(_self, arguments)"/> </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="FetchInActive"
: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="./hrcertificate-v-003.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRCertificateV_003Base } from './hrcertificate-v-003-base';
import view_grid from '@widgets/hrcertificate/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrcertificate/default-searchform/default-searchform.vue';
/**
* 证书视图
*
* @export
* @class HRCertificateV_003
* @extends {HRCertificateV_003Base}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRCertificateV_003 extends HRCertificateV_003Base { }
</script>
<studio-view-style2 viewName="hrcertificatev_004" viewTitle="证书" class='degridview hrcertificate-v-004'>
<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.apply(_self, arguments)"/> </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="FetchActive"
: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="./hrcertificate-v-004.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRCertificateV_004Base } from './hrcertificate-v-004-base';
import view_grid from '@widgets/hrcertificate/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrcertificate/default-searchform/default-searchform.vue';
/**
* 证书视图
*
* @export
* @class HRCertificateV_004
* @extends {HRCertificateV_004Base}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRCertificateV_004 extends HRCertificateV_004Base { }
</script>
<studio-view-style2 viewName="hrcertificatev_006" viewTitle="证书" class='degridview hrcertificate-v-006'>
<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.apply(_self, arguments)"/> </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="FetchSoonExpired"
: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="./hrcertificate-v-006.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRCertificateV_006Base } from './hrcertificate-v-006-base';
import view_grid from '@widgets/hrcertificate/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrcertificate/default-searchform/default-searchform.vue';
/**
* 证书视图
*
* @export
* @class HRCertificateV_006
* @extends {HRCertificateV_006Base}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRCertificateV_006 extends HRCertificateV_006Base { }
</script>
......@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 职称信息表格视图视图基类
* 职称视图基类
*
* @export
* @class HRTechnicalTitleGridViewBase
......
<studio-view-style2 viewName="hrtechnicaltitlegridview" viewTitle="职称信息表格视图" class='degridview hrtechnical-title-grid-view'>
<studio-view-style2 viewName="hrtechnicaltitlegridview" viewTitle="职称" class='degridview hrtechnical-title-grid-view'>
<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.apply(_self, arguments)"/> </template>
......
......@@ -7,7 +7,7 @@ import view_grid from '@widgets/hrtechnical-title/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrtechnical-title/default-searchform/default-searchform.vue';
/**
* 职称信息表格视图视图
* 职称视图
*
* @export
* @class HRTechnicalTitleGridView
......
......@@ -21,6 +21,7 @@ export const PageComponents = {
Vue.component('hrlegal-grid-view', () => import('@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'));
Vue.component('hrpost-v-006', () => import('@pages/human-resource/hrpost-v-006/hrpost-v-006.vue'));
Vue.component('hrlegal-v-002', () => import('@pages/base/hrlegal-v-002/hrlegal-v-002.vue'));
Vue.component('hrcertificate-v-006', () => import('@pages/human-resource/hrcertificate-v-006/hrcertificate-v-006.vue'));
Vue.component('hrcontract-tab-exp-view', () => import('@pages/human-resource/hrcontract-tab-exp-view/hrcontract-tab-exp-view.vue'));
Vue.component('hremployee-v-003', () => import('@pages/human-resource/hremployee-v-003/hremployee-v-003.vue'));
Vue.component('hrduty-tab-exp-view', () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'));
......@@ -30,20 +31,20 @@ export const PageComponents = {
Vue.component('hrcontract-v-002', () => import('@pages/human-resource/hrcontract-v-002/hrcontract-v-002.vue'));
Vue.component('hrduty-edu-v-001', () => import('@pages/human-resource/hrduty-edu-v-001/hrduty-edu-v-001.vue'));
Vue.component('hrarchives-grid-view', () => import('@pages/human-resource/hrarchives-grid-view/hrarchives-grid-view.vue'));
Vue.component('hremployee-v-001', () => import('@pages/human-resource/hremployee-v-001/hremployee-v-001.vue'));
Vue.component('hrorganization-edit-view', () => import('@pages/base/hrorganization-edit-view/hrorganization-edit-view.vue'));
Vue.component('hromhierarchy-cat-grid-view', () => import('@pages/base/hromhierarchy-cat-grid-view/hromhierarchy-cat-grid-view.vue'));
Vue.component('hremployee-v-001', () => import('@pages/human-resource/hremployee-v-001/hremployee-v-001.vue'));
Vue.component('hrpost-rel-v-001', () => import('@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'));
Vue.component('hrtransfer-apply-wfdyna-edit-view', () => import('@pages/pcm/hrtransfer-apply-wfdyna-edit-view/hrtransfer-apply-wfdyna-edit-view.vue'));
Vue.component('hrtransfer-apply-v-002', () => import('@pages/pcm/hrtransfer-apply-v-002/hrtransfer-apply-v-002.vue'));
Vue.component('hrtransfer-apply-wfdyna-edit-view', () => import('@pages/pcm/hrtransfer-apply-wfdyna-edit-view/hrtransfer-apply-wfdyna-edit-view.vue'));
Vue.component('hrresearch-grid-view', () => import('@pages/human-resource/hrresearch-grid-view/hrresearch-grid-view.vue'));
Vue.component('hrtransfer-apply-grid-view', () => import('@pages/pcm/hrtransfer-apply-grid-view/hrtransfer-apply-grid-view.vue'));
Vue.component('hrpost-v-003', () => import('@pages/human-resource/hrpost-v-003/hrpost-v-003.vue'));
Vue.component('hremployee-grid-view', () => import('@pages/human-resource/hremployee-grid-view/hremployee-grid-view.vue'));
Vue.component('hrtransfer-apply-grid-view', () => import('@pages/pcm/hrtransfer-apply-grid-view/hrtransfer-apply-grid-view.vue'));
Vue.component('hrduty-v-002', () => import('@pages/human-resource/hrduty-v-002/hrduty-v-002.vue'));
Vue.component('hromhierarchy-cat-pickup-grid-view', () => import('@pages/base/hromhierarchy-cat-pickup-grid-view/hromhierarchy-cat-pickup-grid-view.vue'));
Vue.component('hrcontract-v-004', () => import('@pages/human-resource/hrcontract-v-004/hrcontract-v-004.vue'));
Vue.component('hrtransfer-apply-dashboard-view', () => import('@pages/pcm/hrtransfer-apply-dashboard-view/hrtransfer-apply-dashboard-view.vue'));
Vue.component('hrcontract-v-004', () => import('@pages/human-resource/hrcontract-v-004/hrcontract-v-004.vue'));
Vue.component('hromhierarchy-cat-pickup-view', () => import('@pages/base/hromhierarchy-cat-pickup-view/hromhierarchy-cat-pickup-view.vue'));
Vue.component('hremployee-v-007', () => import('@pages/human-resource/hremployee-v-007/hremployee-v-007.vue'));
Vue.component('hrpost-v-005', () => import('@pages/human-resource/hrpost-v-005/hrpost-v-005.vue'));
......@@ -84,14 +85,15 @@ export const PageComponents = {
Vue.component('hremployee-tree-exp-view', () => import('@pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.vue'));
Vue.component('hremployee-tab-exp-view', () => import('@pages/human-resource/hremployee-tab-exp-view/hremployee-tab-exp-view.vue'));
Vue.component('hrcontract-edit-view', () => import('@pages/human-resource/hrcontract-edit-view/hrcontract-edit-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hromhierarchy-cat-dashboard-view', () => import('@pages/base/hromhierarchy-cat-dashboard-view/hromhierarchy-cat-dashboard-view.vue'));
Vue.component('hrduty-edu-grid-view', () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hroperation-unit-tab-exp-view', () => import('@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'));
Vue.component('hrlanguage-ability-grid-view', () => import('@pages/human-resource/hrlanguage-ability-grid-view/hrlanguage-ability-grid-view.vue'));
Vue.component('hrorg-address-grid-view', () => import('@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'));
Vue.component('hrreward-edit-view', () => import('@pages/human-resource/hrreward-edit-view/hrreward-edit-view.vue'));
Vue.component('hrduty-cert-v-001', () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'));
Vue.component('hrcertificate-v-004', () => import('@pages/human-resource/hrcertificate-v-004/hrcertificate-v-004.vue'));
Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'));
Vue.component('hrlegal-v-001', () => import('@pages/base/hrlegal-v-001/hrlegal-v-001.vue'));
Vue.component('hrwork-record-grid-view', () => import('@pages/human-resource/hrwork-record-grid-view/hrwork-record-grid-view.vue'));
......@@ -124,8 +126,10 @@ export const PageComponents = {
Vue.component('hrdistribution-grid-view', () => import('@pages/human-resource/hrdistribution-grid-view/hrdistribution-grid-view.vue'));
Vue.component('hrarchives-edit-view', () => import('@pages/human-resource/hrarchives-edit-view/hrarchives-edit-view.vue'));
Vue.component('hromhierarchy-pickup-grid-view', () => import('@pages/base/hromhierarchy-pickup-grid-view/hromhierarchy-pickup-grid-view.vue'));
Vue.component('hrcertificate-tab-exp-view', () => import('@pages/human-resource/hrcertificate-tab-exp-view/hrcertificate-tab-exp-view.vue'));
Vue.component('hrdistribution-v-001', () => import('@pages/human-resource/hrdistribution-v-001/hrdistribution-v-001.vue'));
Vue.component('hrtransfer-apply-v-004', () => import('@pages/pcm/hrtransfer-apply-v-004/hrtransfer-apply-v-004.vue'));
Vue.component('hrcertificate-v-003', () => import('@pages/human-resource/hrcertificate-v-003/hrcertificate-v-003.vue'));
Vue.component('hrtechnical-title-edit-view', () => import('@pages/human-resource/hrtechnical-title-edit-view/hrtechnical-title-edit-view.vue'));
}
};
\ No newline at end of file
......@@ -197,6 +197,19 @@ export const viewstate: any = {
'ea230b5b872ed3d5cba7daa284278299',
],
},
{
viewtag: '1556b6299248ca949822a15645afc066',
viewmodule: 'HumanResource',
viewname: 'HRCertificateTabExpView',
viewaction: '',
viewdatachange: false,
refviews: [
'feb5aefc4a68523cdcd6dfcb3d658e3e',
'685cd7da1331d604d0382b8d64d90664',
'632257149a8a208534a693b9cb46ab05',
'6d7c584d45600193af8a7e54080767c8',
],
},
{
viewtag: '1780a9ed77fb97f2cc3852cfdc55c32c',
viewmodule: 'Base',
......@@ -391,7 +404,7 @@ export const viewstate: any = {
'71c5da4234a5c4d3e46c572556dd52d9',
'114f056047eddd92374e982356e59852',
'286e8ac9eca7b6eb8058fde93995db10',
'685cd7da1331d604d0382b8d64d90664',
'1556b6299248ca949822a15645afc066',
'bae1de77dc5bd2584e2dcf7201a06495',
'b9130f18de0b66cd31ecaddb5a841aae',
],
......@@ -529,6 +542,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '632257149a8a208534a693b9cb46ab05',
viewmodule: 'HumanResource',
viewname: 'HRCertificateV_003',
viewaction: '',
viewdatachange: false,
refviews: [
'57dbe1035c2366090a02ceb7c8269ebb',
],
},
{
viewtag: '6395cba44e6d6151f19e543b55d88845',
viewmodule: 'HumanResource',
......@@ -599,6 +622,16 @@ export const viewstate: any = {
'd2411142d3398651fb50d214bcfc3e3d',
],
},
{
viewtag: '6d7c584d45600193af8a7e54080767c8',
viewmodule: 'HumanResource',
viewname: 'HRCertificateV_006',
viewaction: '',
viewdatachange: false,
refviews: [
'57dbe1035c2366090a02ceb7c8269ebb',
],
},
{
viewtag: '6fed66b17754f0251f020b82b375c009',
viewmodule: 'HumanResource',
......@@ -1353,6 +1386,16 @@ export const viewstate: any = {
'9a109700b8b076cc83d40cdfc6ce4f96',
],
},
{
viewtag: 'feb5aefc4a68523cdcd6dfcb3d658e3e',
viewmodule: 'HumanResource',
viewname: 'HRCertificateV_004',
viewaction: '',
viewdatachange: false,
refviews: [
'57dbe1035c2366090a02ceb7c8269ebb',
],
},
],
createdviews: [],
}
\ No newline at end of file
......@@ -279,7 +279,7 @@ export class PIMBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'hrcertificates', parameterName: 'hrcertificate' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
......
......@@ -252,7 +252,7 @@ export default class PIMModel {
textcls: '',
appfunctag: '_9',
appfuncyype: 'APPVIEW',
viewname: 'hrcertificate-grid-view',
viewname: 'hrcertificate-tab-exp-view',
resourcetag: '',
}
,
......@@ -691,12 +691,12 @@ export default class PIMModel {
appfunctag: '_9',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'hrcertificategridview',
codename: 'hrcertificatetabexpview',
deResParameters: [],
routepath: '/pim/:pim?/hrcertificates/:hrcertificate?/gridview/:gridview?',
routepath: '/pim/:pim?/hrcertificates/:hrcertificate?/tabexpview/:tabexpview?',
parameters: [
{ pathName: 'hrcertificates', parameterName: 'hrcertificate' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
],
},
{
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, TabExpPanelControlBase } from '@/studio-core';
import HRCertificateService from '@/service/hrcertificate/hrcertificate-service';
import TabExpViewtabexppanelService from './tab-exp-viewtabexppanel-tabexppanel-service';
import HRCertificateUIService from '@/uiservice/hrcertificate/hrcertificate-ui-service';
/**
* tabexppanel部件基类
*
* @export
* @class TabExpPanelControlBase
* @extends {TabExpViewtabexppanelTabexppanelBase}
*/
export class TabExpViewtabexppanelTabexppanelBase extends TabExpPanelControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected controlType: string = 'TABEXPPANEL';
/**
* 建构部件服务对象
*
* @type {TabExpViewtabexppanelService}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
public service: TabExpViewtabexppanelService = new TabExpViewtabexppanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRCertificateService}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
public appEntityService: HRCertificateService = new HRCertificateService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected appDeName: string = 'hrcertificate';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanelTabexppanelBase
*/
protected appDeLogicName: string = '证书信息';
/**
* 是否初始化
*
* @protected
* @returns {any}
* @memberof TabExpViewtabexppanel
*/
protected isInit: any = {
tabviewpanel: true ,
tabviewpanel4: false ,
tabviewpanel3: false ,
tabviewpanel2: false ,
}
/**
* 被激活的分页面板
*
* @protected
* @type {string}
* @memberof TabExpViewtabexppanel
*/
protected activatedTabViewPanel: string = 'tabviewpanel';
/**
* 组件创建完毕
*
* @protected
* @memberof TabExpViewtabexppanel
*/
protected ctrlCreated(): void {
//设置分页导航srfparentdename和srfparentkey
if (this.context.hrcertificate) {
Object.assign(this.context, { srfparentdename: 'HRCertificate', srfparentkey: this.context.hrcertificate });
}
super.ctrlCreated();
}
}
\ No newline at end of file
/**
* TabExpViewtabexppanel 部件模型
*
* @export
* @class TabExpViewtabexppanelModel
*/
export default class TabExpViewtabexppanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TabExpViewtabexppanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'hrcertificate',
prop: 'hrcertificateid',
},
{
name: 'hrcertificatename',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'attachment',
},
{
name: 'certificatecode',
},
{
name: 'authorganization',
},
{
name: 'authdate',
},
{
name: 'expiredate',
},
{
name: 'registercode',
},
{
name: 'registertime',
},
{
name: 'memo',
},
{
name: 'registerorganizationid',
},
{
name: 'registerorganizationname',
},
{
name: 'employeecode',
},
{
name: 'organizationname',
},
{
name: 'organizationid',
},
{
name: 'empstate',
},
{
name: 'activeflag',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import HRCertificateService from '@/service/hrcertificate/hrcertificate-service';
import TabExpViewtabexppanelModel from './tab-exp-viewtabexppanel-tabexppanel-model';
/**
* TabExpViewtabexppanel 部件服务对象
*
* @export
* @class TabExpViewtabexppanelService
*/
export default class TabExpViewtabexppanelService extends ControlService {
/**
* 证书信息服务对象
*
* @type {HRCertificateService}
* @memberof TabExpViewtabexppanelService
*/
public appEntityService: HRCertificateService = new HRCertificateService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof TabExpViewtabexppanelService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of TabExpViewtabexppanelService.
*
* @param {*} [opts={}]
* @memberof TabExpViewtabexppanelService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new TabExpViewtabexppanelModel();
}
}
\ No newline at end of file
<div class='tabviewpanel'>
<tabs :value="activatedTabViewPanel" :animated="false" class='tabexppanel' name='tabexpviewtabexppanel' @on-click="tabPanelClick($event)">
<tab-pane :index="0" name='tabviewpanel' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-certificate',
style:{
'margin-right' : '2px'
}
}),
h('span', '有效证书'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel"
name="tabviewpanel"
ref='tabviewpanel'
:expActive="activatedTabViewPanel === 'tabviewpanel'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel>
</tab-pane>
<tab-pane :index="1" name='tabviewpanel4' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-book',
style:{
'margin-right' : '2px'
}
}),
h('span', '全部证书'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel4
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel4"
name="tabviewpanel4"
ref='tabviewpanel4'
:expActive="activatedTabViewPanel === 'tabviewpanel4'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel4>
</tab-pane>
<tab-pane :index="2" name='tabviewpanel3' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-circle-thin',
style:{
'margin-right' : '2px'
}
}),
h('span', '失效证书'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel3
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel3"
name="tabviewpanel3"
ref='tabviewpanel3'
:expActive="activatedTabViewPanel === 'tabviewpanel3'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel3>
</tab-pane>
<tab-pane :index="3" name='tabviewpanel2' tab='tabexpviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-warning',
style:{
'margin-right' : '2px'
}
}),
h('span', '即将过期证书'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel2
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel2"
name="tabviewpanel2"
ref='tabviewpanel2'
:expActive="activatedTabViewPanel === 'tabviewpanel2'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel2>
</tab-pane>
</tabs>
</div>
\ No newline at end of file
<template src="./tab-exp-viewtabexppanel-tabexppanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { TabExpViewtabexppanelTabexppanelBase } from './tab-exp-viewtabexppanel-tabexppanel-base';
import view_tabviewpanel from '@widgets/hrcertificate/tab-exp-viewtabviewpanel-tabviewpanel/tab-exp-viewtabviewpanel-tabviewpanel.vue';
import view_tabviewpanel4 from '@widgets/hrcertificate/tab-exp-viewtabviewpanel4-tabviewpanel/tab-exp-viewtabviewpanel4-tabviewpanel.vue';
import view_tabviewpanel3 from '@widgets/hrcertificate/tab-exp-viewtabviewpanel3-tabviewpanel/tab-exp-viewtabviewpanel3-tabviewpanel.vue';
import view_tabviewpanel2 from '@widgets/hrcertificate/tab-exp-viewtabviewpanel2-tabviewpanel/tab-exp-viewtabviewpanel2-tabviewpanel.vue';
/**
* tabexppanel部件
*
* @export
* @class TabExpViewtabexppanelTabexppanel
* @extends {TabExpViewtabexppanelTabexppanelBase}
*/
@Component({
components: {
view_tabviewpanel,
view_tabviewpanel4,
view_tabviewpanel3,
view_tabviewpanel2,
}
})
@VueLifeCycleProcessing()
export default class TabExpViewtabexppanelTabexppanel extends TabExpViewtabexppanelTabexppanelBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HRCertificateService from '@/service/hrcertificate/hrcertificate-service';
import TabExpViewtabviewpanelService from './tab-exp-viewtabviewpanel-tabviewpanel-service';
import HRCertificateUIService from '@/uiservice/hrcertificate/hrcertificate-ui-service';
/**
* tabviewpanel部件基类
*
* @export
* @class MainControlBase
* @extends {TabExpViewtabviewpanelTabviewpanelBase}
*/
export class TabExpViewtabviewpanelTabviewpanelBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected controlType: string = 'TABVIEWPANEL';
/**
* 建构部件服务对象
*
* @type {TabExpViewtabviewpanelService}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
public service: TabExpViewtabviewpanelService = new TabExpViewtabviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRCertificateService}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
public appEntityService: HRCertificateService = new HRCertificateService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected appDeName: string = 'hrcertificate';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanelTabviewpanelBase
*/
protected appDeLogicName: string = '证书信息';
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof TabExpViewtabviewpanel
*/
@Prop()
public expActive!: any;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof TabExpViewtabviewpanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof TabExpViewtabviewpanel
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof TabExpViewtabviewpanel
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof TabExpViewtabviewpanel
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof TabExpViewtabviewpanel
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof TabExpViewtabviewpanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof TabExpViewtabviewpanel
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof TabExpViewtabviewpanel
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof TabExpViewtabviewpanel
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof TabExpViewtabviewpanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof TabExpViewtabviewpanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* TabExpViewtabviewpanel 部件模型
*
* @export
* @class TabExpViewtabviewpanelModel
*/
export default class TabExpViewtabviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TabExpViewtabviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'hrcertificate',
prop: 'hrcertificateid',
},
{
name: 'hrcertificatename',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'attachment',
},
{
name: 'certificatecode',
},
{
name: 'authorganization',
},
{
name: 'authdate',
},
{
name: 'expiredate',
},
{
name: 'registercode',
},
{
name: 'registertime',
},
{
name: 'memo',
},
{
name: 'registerorganizationid',
},
{
name: 'registerorganizationname',
},
{
name: 'employeecode',
},
{
name: 'organizationname',
},
{
name: 'organizationid',
},
{
name: 'empstate',
},
{
name: 'activeflag',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* TabExpViewtabviewpanel 部件服务对象
*
* @export
* @class TabExpViewtabviewpanelService
*/
export default class TabExpViewtabviewpanelService extends ControlService {
}
\ No newline at end of file
<div class='tabviewpanel' v-if='isActivied'>
<hrcertificate-v-004
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false"
:viewUsage="7"
:expActive="expActive"
@closeview="closeView($event)"
/>
</div>
\ No newline at end of file
<template src="./tab-exp-viewtabviewpanel-tabviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { TabExpViewtabviewpanelTabviewpanelBase } from './tab-exp-viewtabviewpanel-tabviewpanel-base';
/**
* tabviewpanel部件
*
* @export
* @class TabExpViewtabviewpanelTabviewpanel
* @extends {TabExpViewtabviewpanelTabviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class TabExpViewtabviewpanelTabviewpanel extends TabExpViewtabviewpanelTabviewpanelBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HRCertificateService from '@/service/hrcertificate/hrcertificate-service';
import TabExpViewtabviewpanel2Service from './tab-exp-viewtabviewpanel2-tabviewpanel-service';
import HRCertificateUIService from '@/uiservice/hrcertificate/hrcertificate-ui-service';
/**
* tabviewpanel2部件基类
*
* @export
* @class MainControlBase
* @extends {TabExpViewtabviewpanel2TabviewpanelBase}
*/
export class TabExpViewtabviewpanel2TabviewpanelBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected controlType: string = 'TABVIEWPANEL';
/**
* 建构部件服务对象
*
* @type {TabExpViewtabviewpanel2Service}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
public service: TabExpViewtabviewpanel2Service = new TabExpViewtabviewpanel2Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRCertificateService}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
public appEntityService: HRCertificateService = new HRCertificateService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected appDeName: string = 'hrcertificate';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof TabExpViewtabviewpanel2TabviewpanelBase
*/
protected appDeLogicName: string = '证书信息';
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof TabExpViewtabviewpanel2
*/
@Prop()
public expActive!: any;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof TabExpViewtabviewpanel2
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof TabExpViewtabviewpanel2
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof TabExpViewtabviewpanel2
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof TabExpViewtabviewpanel2
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof TabExpViewtabviewpanel2
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof TabExpViewtabviewpanel2
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof TabExpViewtabviewpanel2
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof TabExpViewtabviewpanel2
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof TabExpViewtabviewpanel2
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
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);
}
/**
* 视图数据变化
*
* @memberof TabExpViewtabviewpanel2
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof TabExpViewtabviewpanel2
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof TabExpViewtabviewpanel2
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* TabExpViewtabviewpanel2 部件模型
*
* @export
* @class TabExpViewtabviewpanel2Model
*/
export default class TabExpViewtabviewpanel2Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TabExpViewtabviewpanel2Model
*/
public getDataItems(): any[] {
return [
{
name: 'hrcertificate',
prop: 'hrcertificateid',
},
{
name: 'hrcertificatename',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'attachment',
},
{
name: 'certificatecode',
},
{
name: 'authorganization',
},
{
name: 'authdate',
},
{
name: 'expiredate',
},
{
name: 'registercode',
},
{
name: 'registertime',
},
{
name: 'memo',
},
{
name: 'registerorganizationid',
},
{
name: 'registerorganizationname',
},
{
name: 'employeecode',
},
{
name: 'organizationname',
},
{
name: 'organizationid',
},
{
name: 'empstate',
},
{
name: 'activeflag',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* TabExpViewtabviewpanel2 部件服务对象
*
* @export
* @class TabExpViewtabviewpanel2Service
*/
export default class TabExpViewtabviewpanel2Service extends ControlService {
}
\ No newline at end of file
<div class='tabviewpanel' v-if='isActivied'>
<hrcertificate-v-003
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false"
:viewUsage="7"
:expActive="expActive"
@closeview="closeView($event)"
/>
</div>
\ No newline at end of file
<template src="./tab-exp-viewtabviewpanel2-tabviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { TabExpViewtabviewpanel2TabviewpanelBase } from './tab-exp-viewtabviewpanel2-tabviewpanel-base';
/**
* tabviewpanel2部件
*
* @export
* @class TabExpViewtabviewpanel2Tabviewpanel
* @extends {TabExpViewtabviewpanel2TabviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class TabExpViewtabviewpanel2Tabviewpanel extends TabExpViewtabviewpanel2TabviewpanelBase { }
</script>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册