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

Miracle 部署微服务应用

上级 228fdb55
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import HRTransferApplyService from '@/service/hrtransfer-apply/hrtransfer-apply-service';
import HRTransferApplyAuthService from '@/authservice/hrtransfer-apply/hrtransfer-apply-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import HRTransferApplyUIService from '@/uiservice/hrtransfer-apply/hrtransfer-apply-ui-service';
/**
* 调动申请编辑视图视图基类
*
* @export
* @class HRTransferApplyV_006Base
* @extends {EditViewBase}
*/
export class HRTransferApplyV_006Base extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRTransferApplyV_006Base
*/
protected appDeName: string = 'hrtransferapply';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRTransferApplyV_006Base
*/
protected appDeKey: string = 'hrtransferapplyid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRTransferApplyV_006Base
*/
protected appDeMajor: string = 'hrtransferapplyname';
/**
* 实体服务对象
*
* @type {HRTransferApplyService}
* @memberof HRTransferApplyV_006Base
*/
protected appEntityService: HRTransferApplyService = new HRTransferApplyService;
/**
* 实体权限服务对象
*
* @type HRTransferApplyUIService
* @memberof HRTransferApplyV_006Base
*/
public appUIService: HRTransferApplyUIService = new HRTransferApplyUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRTransferApplyV_006Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRTransferApplyV_006Base
*/
protected model: any = {
srfCaption: 'entities.hrtransferapply.views.v_006.caption',
srfTitle: 'entities.hrtransferapply.views.v_006.title',
srfSubTitle: 'entities.hrtransferapply.views.v_006.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRTransferApplyV_006Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
wflinks: [],
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'b867c0ac78993f1cdce1bc1495b815d4';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRTransferApplyV_006Base
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRTransferApplyV_006Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrtransferapply',
majorPSDEField: 'hrtransferapplyname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRTransferApplyV_006Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRTransferApplyV_006Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRTransferApplyV_006Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrtransferapplyv_006" viewTitle="调动申请编辑视图" class='deeditview hrtransfer-apply-v-006 from-dashboard-style'>
<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="./hrtransfer-apply-v-006.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRTransferApplyV_006Base } from './hrtransfer-apply-v-006-base';
import view_form from '@widgets/hrtransfer-apply/main-form/main-form.vue';
/**
* 调动申请编辑视图视图
*
* @export
* @class HRTransferApplyV_006
* @extends {HRTransferApplyV_006Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRTransferApplyV_006 extends HRTransferApplyV_006Base { }
</script>
......@@ -108,6 +108,7 @@ export const PageComponents = {
Vue.component('hrtechnical-title-grid-view', () => import('@pages/human-resource/hrtechnical-title-grid-view/hrtechnical-title-grid-view.vue'));
Vue.component('hrresearch-edit-view', () => import('@pages/human-resource/hrresearch-edit-view/hrresearch-edit-view.vue'));
Vue.component('hromhierarchy-edit-view', () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'));
Vue.component('hrtransfer-apply-v-006', () => import('@pages/pcm/hrtransfer-apply-v-006/hrtransfer-apply-v-006.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hromhierarchy-cat-edit-view', () => import('@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'));
Vue.component('hrorg-contact-edit-view', () => import('@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'));
......
......@@ -2725,6 +2725,65 @@ const router = new Router({
},
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
},
{
path: 'hrposts/:hrpost?/hrtransferapplies/:hrtransferapply?/v_006/:v_006?',
meta: {
caption: 'entities.hrtransferapply.views.v_006.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrtransferapplies', parameterName: 'hrtransferapply' },
{ pathName: 'v_006', parameterName: 'v_006' },
],
requireAuth: true,
},
component: () => import('@pages/pcm/hrtransfer-apply-v-006/hrtransfer-apply-v-006.vue'),
},
{
path: 'hremployees/:hremployee?/hrtransferapplies/:hrtransferapply?/v_006/:v_006?',
meta: {
caption: 'entities.hrtransferapply.views.v_006.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrtransferapplies', parameterName: 'hrtransferapply' },
{ pathName: 'v_006', parameterName: 'v_006' },
],
requireAuth: true,
},
component: () => import('@pages/pcm/hrtransfer-apply-v-006/hrtransfer-apply-v-006.vue'),
},
{
path: 'hrorganizations/:hrorganization?/hrtransferapplies/:hrtransferapply?/v_006/:v_006?',
meta: {
caption: 'entities.hrtransferapply.views.v_006.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'hrtransferapplies', parameterName: 'hrtransferapply' },
{ pathName: 'v_006', parameterName: 'v_006' },
],
requireAuth: true,
},
component: () => import('@pages/pcm/hrtransfer-apply-v-006/hrtransfer-apply-v-006.vue'),
},
{
path: 'hrtransferapplies/:hrtransferapply?/v_006/:v_006?',
meta: {
caption: 'entities.hrtransferapply.views.v_006.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrtransferapplies', parameterName: 'hrtransferapply' },
{ pathName: 'v_006', parameterName: 'v_006' },
],
requireAuth: true,
},
component: () => import('@pages/pcm/hrtransfer-apply-v-006/hrtransfer-apply-v-006.vue'),
},
{
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: {
......
......@@ -864,6 +864,18 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'b867c0ac78993f1cdce1bc1495b815d4',
viewmodule: 'Pcm',
viewname: 'HRTransferApplyV_006',
viewaction: '',
viewdatachange: false,
refviews: [
'04c02737ae62a4f4c014607441ee0401',
'ec9d9fe37bbfc3fcb623e2dc34b48dbc',
'e7ba37699bd458dc8dd5c02abac8dadd',
],
},
{
viewtag: 'b90584e97a642bf5d5d8dac74217c6fc',
viewmodule: 'HumanResource',
......@@ -1127,6 +1139,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'b867c0ac78993f1cdce1bc1495b815d4',
],
},
{
......
......@@ -3,7 +3,7 @@
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { BOARD_001DashboardBase } from './board-001-dashboard-base';
import view_dashboard_sysportlet1 from '@widgets/hrtransfer-apply/dashboard-viewdashboard-sysportlet1-portlet/dashboard-viewdashboard-sysportlet1-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/hrtransfer-apply/part-v-001-portlet/part-v-001-portlet.vue';
/**
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HRTransferApplyService from '@/service/hrtransfer-apply/hrtransfer-apply-service';
import PART_V_001Service from './part-v-001-portlet-service';
import HRTransferApplyUIService from '@/uiservice/hrtransfer-apply/hrtransfer-apply-ui-service';
import { Environment } from '@/environments/environment';
/**
* dashboard_sysportlet1部件基类
*
* @export
* @class MainControlBase
* @extends {PART_V_001PortletBase}
*/
export class PART_V_001PortletBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected controlType: string = 'PORTLET';
/**
* 建构部件服务对象
*
* @type {PART_V_001Service}
* @memberof PART_V_001PortletBase
*/
public service: PART_V_001Service = new PART_V_001Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRTransferApplyService}
* @memberof PART_V_001PortletBase
*/
public appEntityService: HRTransferApplyService = new HRTransferApplyService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected appDeName: string = 'hrtransferapply';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PART_V_001PortletBase
*/
protected appDeLogicName: string = '调动申请';
/**
* 长度
*
* @type {number}
* @memberof PART_V_001
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof PART_V_001
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PART_V_001Base
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PART_V_001Base
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PART_V_001Base
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PART_V_001Base
*/
get getHeight(): any{
if(!this.$util.isEmpty(this.height) && !this.$util.isNumberNaN(this.height)){
if(this.height == 0){
return 'auto';
} else {
return this.height+'px';
}
} else {
return 'auto';
}
}
/**
* vue 生命周期
*
* @memberof PART_V_001Base
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof PART_V_001Base
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof PART_V_001Base
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PART_V_001Base
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
/**
* PART_V_001 部件模型
*
* @export
* @class PART_V_001Model
*/
export default class PART_V_001Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PART_V_001Model
*/
public getDataItems(): any[] {
return [
{
name: 'hrtransferapply',
prop: 'hrtransferapplyid',
},
{
name: 'hrtransferapplyname',
},
{
name: 'updateman',
},
{
name: 'createdate',
},
{
name: 'createman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'organizationid',
},
{
name: 'organizationname',
},
{
name: 'hrdutyname',
},
{
name: 'hrpostname',
},
{
name: 'hrorganizationid2',
},
{
name: 'hrorganizationname2',
},
{
name: 'hrpostid2',
},
{
name: 'hrpostname2',
},
{
name: 'hrdutyname2',
},
{
name: 'activetime',
},
{
name: 'attachment',
},
{
name: 'wfinstanceid',
},
{
name: 'wfversion',
},
{
name: 'wfstep',
},
{
name: 'wfstate',
},
{
name: 'checkstatus',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* PART_V_001 部件服务对象
*
* @export
* @class PART_V_001Service
*/
export default class PART_V_001Service extends ControlService {
}
<div class='portlet part-v-001 ' :style="{}">
<div class="portlet-without-title">
<hrtransfer-apply-v-006 :viewUsage="4" :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></hrtransfer-apply-v-006>
</div>
</div>
<template src="./part-v-001-portlet.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PART_V_001PortletBase } from './part-v-001-portlet-base';
/**
* dashboard_sysportlet1部件
*
* @export
* @class PART_V_001Portlet
* @extends {PART_V_001PortletBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PART_V_001Portlet extends PART_V_001PortletBase { }
</script>
......@@ -994,7 +994,7 @@
<!--输出实体[HRTRANSFERAPPLY]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtransferapply-146-33">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrtransferapply-149-33">
<createTable tableName="T_HRTRANSFERAPPLY">
<column name="HRTRANSFERAPPLYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_HRTRANSFERAPPLY_HRTRANSFERA"/>
......@@ -1203,13 +1203,13 @@
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRTRAININGRECORD" constraintName="DER1N_HRTRAININGRECORD_HREMPLO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<!--输出实体[HRTRANSFERAPPLY]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-146-69">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-149-69">
<addForeignKeyConstraint baseColumnNames="HREMPLOYEEID" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HREMPLOY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EMPLOYEEID" referencedTableName="EMPLOYEE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-146-70">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-149-70">
<addForeignKeyConstraint baseColumnNames="HRORGANIZATIONID2" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HRORGANI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-146-71">
<changeSet author="a_LAB01_e85d8801c" id="fk-hrtransferapply-149-71">
<addForeignKeyConstraint baseColumnNames="HRPOSTID2" baseTableName="T_HRTRANSFERAPPLY" constraintName="DER1N_HRTRANSFERAPPLY_HRPOST_H" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HRPOSTID" referencedTableName="T_HRPOST" validate="true"/>
</changeSet>
<!--输出实体[HRWORKRECORD]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册