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

Miracle 部署微服务应用

上级 74f9a336
......@@ -500,8 +500,8 @@
"memo": "系统自动添加"
},
"hrarchivesv_005": {
"title": "档案",
"caption": "档案",
"title": "档案信息",
"caption": "档案信息",
"viewtype": "DETABEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesV_005",
......
......@@ -42,8 +42,8 @@ export default {
title: "档案编辑",
},
v_005: {
caption: "档案",
title: "档案",
caption: "档案信息",
title: "档案信息",
},
v_002: {
caption: "档案信息",
......
......@@ -41,8 +41,8 @@ export default {
title: "档案编辑",
},
v_005: {
caption: "档案",
title: "档案",
caption: "档案信息",
title: "档案信息",
},
v_002: {
caption: "档案信息",
......
......@@ -408,8 +408,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "54e70bcf034bf3715d121537bc8d1d77"
},
"hrarchivesv_005": {
"title": "档案",
"caption": "档案",
"title": "档案信息",
"caption": "档案信息",
"viewtype": "DETABEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRArchivesV_005",
......
import { Subject } from 'rxjs';
import { DashboardViewBase } from '@/studio-core';
import HRArchivesService from '@/service/hrarchives/hrarchives-service';
import HRArchivesAuthService from '@/authservice/hrarchives/hrarchives-auth-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
import HRArchivesUIService from '@/uiservice/hrarchives/hrarchives-ui-service';
/**
* 档案看板视图基类
*
* @export
* @class HRArchivesV_004Base
* @extends {DashboardViewBase}
*/
export class HRArchivesV_004Base extends DashboardViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRArchivesV_004Base
*/
protected appDeName: string = 'hrarchives';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRArchivesV_004Base
*/
protected appDeKey: string = 'hrarchivesid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRArchivesV_004Base
*/
protected appDeMajor: string = 'hrarchivesname';
/**
* 实体服务对象
*
* @type {HRArchivesService}
* @memberof HRArchivesV_004Base
*/
protected appEntityService: HRArchivesService = new HRArchivesService;
/**
* 实体权限服务对象
*
* @type HRArchivesUIService
* @memberof HRArchivesV_004Base
*/
public appUIService: HRArchivesUIService = new HRArchivesUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRArchivesV_004Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRArchivesV_004Base
*/
protected model: any = {
srfCaption: 'entities.hrarchives.views.v_004.caption',
srfTitle: 'entities.hrarchives.views.v_004.title',
srfSubTitle: 'entities.hrarchives.views.v_004.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRArchivesV_004Base
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'd33bb4278ea65f691909636c691a0666';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRArchivesV_004Base
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRArchivesV_004Base
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'hrarchives',
majorPSDEField: 'hrarchivesname',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRArchivesV_004Base
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrarchivesv_004" viewTitle="档案看板" class='deportalview hrarchives-v-004'>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
name="dashboard"
ref='dashboard'
@load="dashboard_load($event)"
@closeview="closeView($event)">
</view_dashboard>
</studio-view-style2>
\ No newline at end of file
<template src="./hrarchives-v-004.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRArchivesV_004Base } from './hrarchives-v-004-base';
import view_dashboard from '@widgets/hrarchives/board-001-dashboard/board-001-dashboard.vue';
/**
* 档案看板视图
*
* @export
* @class HRArchivesV_004
* @extends {HRArchivesV_004Base}
*/
@Component({
components: {
view_dashboard,
}
})
@VueLifeCycleProcessing()
export default class HRArchivesV_004 extends HRArchivesV_004Base { }
</script>
......@@ -6,7 +6,7 @@ import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import HRArchivesUIService from '@/uiservice/hrarchives/hrarchives-ui-service';
/**
* 档案视图基类
* 档案信息视图基类
*
* @export
* @class HRArchivesV_005Base
......
<studio-view-style2 viewName="hrarchivesv_005" viewTitle="档案" class='detabexpview hrarchives-v-005'>
<studio-view-style2 viewName="hrarchivesv_005" viewTitle="档案信息" class='detabexpview hrarchives-v-005'>
<template slot='title'>
<span class='caption-info'>{{viewCaption}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_tabexppanel
......
......@@ -6,7 +6,7 @@ import { HRArchivesV_005Base } from './hrarchives-v-005-base';
import view_tabexppanel from '@widgets/hrarchives/v-005tabexppanel-tabexppanel/v-005tabexppanel-tabexppanel.vue';
/**
* 档案视图
* 档案信息视图
*
* @export
* @class HRArchivesV_005
......
......@@ -81,6 +81,7 @@ export const PageComponents = {
Vue.component('hrorg-contact-grid-view', () => import('@pages/base/hrorg-contact-grid-view/hrorg-contact-grid-view.vue'));
Vue.component('hroperation-unit-grid-view', () => import('@pages/base/hroperation-unit-grid-view/hroperation-unit-grid-view.vue'));
Vue.component('hrtraining-record-edit-view', () => import('@pages/human-resource/hrtraining-record-edit-view/hrtraining-record-edit-view.vue'));
Vue.component('hrarchives-v-004', () => import('@pages/human-resource/hrarchives-v-004/hrarchives-v-004.vue'));
Vue.component('hrorg-contact-v-001', () => import('@pages/base/hrorg-contact-v-001/hrorg-contact-v-001.vue'));
Vue.component('hrorg-address-v-001', () => import('@pages/base/hrorg-address-v-001/hrorg-address-v-001.vue'));
Vue.component('hrpost-v-001', () => import('@pages/human-resource/hrpost-v-001/hrpost-v-001.vue'));
......
......@@ -2032,6 +2032,35 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrtraining-record-edit-view/hrtraining-record-edit-view.vue'),
},
{
path: 'hremployees/:hremployee?/hrarchives/:hrarchives?/v_004/:v_004?',
meta: {
caption: 'entities.hrarchives.views.v_004.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'hrarchives', parameterName: 'hrarchives' },
{ pathName: 'v_004', parameterName: 'v_004' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrarchives-v-004/hrarchives-v-004.vue'),
},
{
path: 'hrarchives/:hrarchives?/v_004/:v_004?',
meta: {
caption: 'entities.hrarchives.views.v_004.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrarchives', parameterName: 'hrarchives' },
{ pathName: 'v_004', parameterName: 'v_004' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrarchives-v-004/hrarchives-v-004.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/hrorgcontacts/:hrorgcontact?/v_001/:v_001?',
meta: {
......
......@@ -520,7 +520,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'4726bc4ee402aed771ecabe7a6ecdaae',
'4577fe920c1f8dc9da44a0cab28ca33b',
'd33bb4278ea65f691909636c691a0666',
'c01c4604589a2c171c4f41f2ac11f4e2',
],
},
......@@ -1272,6 +1272,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'd33bb4278ea65f691909636c691a0666',
viewmodule: 'HumanResource',
viewname: 'HRArchivesV_004',
viewaction: '',
viewdatachange: false,
refviews: [
'4577fe920c1f8dc9da44a0cab28ca33b',
],
},
{
viewtag: 'd4d0e128d8c7e5c141f99540b62fd9bf',
viewmodule: 'HumanResource',
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HRArchivesService from '@/service/hrarchives/hrarchives-service';
import BOARD_001Service from './board-001-dashboard-service';
import HRArchivesUIService from '@/uiservice/hrarchives/hrarchives-ui-service';
import UtilService from '@/utilservice/util-service';
/**
* dashboard部件基类
*
* @export
* @class MainControlBase
* @extends {BOARD_001DashboardBase}
*/
export class BOARD_001DashboardBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected controlType: string = 'DASHBOARD';
/**
* 建构部件服务对象
*
* @type {BOARD_001Service}
* @memberof BOARD_001DashboardBase
*/
public service: BOARD_001Service = new BOARD_001Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRArchivesService}
* @memberof BOARD_001DashboardBase
*/
public appEntityService: HRArchivesService = new HRArchivesService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected appDeName: string = 'hrarchives';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof BOARD_001DashboardBase
*/
protected appDeLogicName: string = '档案信息';
/**
* 是否支持看板定制
*
* @public
* @type {(boolean)}
* @memberof BOARD_001
*/
@Prop() public isEnableCustomized!:boolean;
/**
* 是否已有看板定制
*
* @public
* @type {(boolean)}
* @memberof BOARD_001
*/
public isHasCustomized:boolean = false;
/**
* 模型数据
*
* @public
* @type {(*)}
* @memberof BOARD_001
*/
public modelDta:any;
/**
* modleId
*
* @type {string}
* @memberof BOARD_001
*/
public modelId:string = "dashboard_hrarchives_board_001";
/**
* 建构功能服务对象
*
* @type {UtilService}
* @memberof BOARD_001
*/
public utilService:UtilService = new UtilService();
/**
* 功能服务名称
*
* @type {string}
* @memberof BOARD_001
*/
public utilServiceName:string = "";
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof BOARD_001
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof BOARD_001
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof BOARD_001
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof BOARD_001
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.loadModel();
}
});
}
}
/**
* 动态设计水平列数
*
* @memberof BOARD_001
*/
public layoutColNum:number = 12;
/**
* 动态设计单元格高度,80px
*
* @memberof BOARD_001
*/
public layoutRowH:number = 80;
/**
* 通知状态
*
* @memberof BOARD_001
*/
public notifyState(){
this.$nextTick(() =>{
if (this.isHasCustomized) {
if (this.modelDta && this.modelDta.length > 0) {
this.modelDta.forEach((item: any) => {
this.viewState.next({
tag: item.portletCodeName,
action: "load",
data: JSON.parse(JSON.stringify(this.viewparams))
});
});
}
} else {
if (this.viewState) {
const refs: any = this.$refs;
Object.keys(refs).forEach((name: string) => {
this.viewState.next({
tag: name,
action: "load",
data: JSON.parse(JSON.stringify(this.viewparams))
});
});
}
}
})
}
/**
* 加载布局与数据模型
*
* @memberof BOARD_001
*/
public loadModel(){
if(this.isEnableCustomized){
this.utilService.getService(this.utilServiceName).then((service:any) =>{
service.loadModelData(JSON.parse(JSON.stringify(this.context)),{modelid:this.modelId,utilServiceName:this.utilServiceName}).then((res:any) =>{
if(res && res.status == 200){
const data:any = res.data;
if(data && data.length >0){
this.isHasCustomized = true;
this.modelDta = data;
this.$forceUpdate();
}else{
this.isHasCustomized = false;
}
this.notifyState();
}else{
console.error("加载面板模型异常");
this.isHasCustomized = false;
this.notifyState();
}
}).catch((error:any)=>{
console.error("加载面板模型异常");
console.error(error);
this.isHasCustomized = false;
this.notifyState();
});
})
}else{
this.notifyState();
}
}
/**
* 处理私人定制按钮
*
* @memberof BOARD_001
*/
public handleClick(){
const view:any ={
viewname: 'app-portal-design',
title: (this.$t('app.dashBoard.handleClick.title')),
width: 1600,
placement: 'DRAWER_RIGHT'
}
const viewparam:any ={
modelid:this.modelId,
utilServiceName:this.utilServiceName,
appdeName:'HRArchives'
}
const appdrawer = this.$appdrawer.openDrawer(view, JSON.parse(JSON.stringify(this.context)), viewparam);
appdrawer.subscribe((result: any) => {
if(Object.is(result.ret,'OK')){
this.loadModel();
}
});
}
/**
* vue 生命周期
*
* @memberof BOARD_001
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof BOARD_001
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* BOARD_001 部件模型
*
* @export
* @class BOARD_001Model
*/
export default class BOARD_001Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof BOARD_001Model
*/
public getDataItems(): any[] {
return [
{
name: 'hrarchives',
prop: 'hrarchivesid',
},
{
name: 'hrarchivesname',
},
{
name: 'createman',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'employeecode',
},
{
name: 'organizationname',
},
{
name: 'organizationid',
},
{
name: 'empstate',
},
{
name: 'archivescode',
},
{
name: 'archivesroom',
},
{
name: 'archivesplacetype',
},
{
name: 'archivesplace',
},
{
name: 'degree',
},
{
name: 'birthday',
},
{
name: 'politicaltime',
},
{
name: 'startworktime',
},
{
name: 'activeflag',
},
{
name: 'attachment',
},
{
name: 'memo',
},
{
name: 'borrowstate',
},
{
name: 'hrorganizationid',
},
{
name: 'hrorganizationname',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* BOARD_001 部件服务对象
*
* @export
* @class BOARD_001Service
*/
export default class BOARD_001Service extends ControlService {
}
\ No newline at end of file
<div class='dashboard'>
<row v-if="isEnableCustomized">
<app-build @handleClick="handleClick.apply(_self, arguments)"></app-build>
</row>
<row v-if="!isHasCustomized">
<i-col :md="{ span: 24, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container v-004dashboard-container1 portlet-container-no-border' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<view_dashboard_sysportlet1
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="300"
:width="0"
name="dashboard_sysportlet1"
ref='dashboard_sysportlet1'
@closeview="closeView($event)">
</view_dashboard_sysportlet1>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
</card>
</i-col>
</row>
<row v-if="isHasCustomized" style="width: 100%;min-height: calc(100% - 40px);">
<div class="portlet-container" style="position: relative;width:100%;">
<template v-for="(item, index) of modelDta">
<div :key="index" :style="{zIndex: 10, position: 'absolute', height: item.h*layoutRowH + 'px', width: `calc(100% / ${layoutColNum} * ${item.w})`,top: item.y*layoutRowH + 'px', left: `calc(100% / ${layoutColNum} * ${item.x})`}">
<component :key="$util.createUUID()" :is="item.componentName" :name="item.portletCodeName" :context="JSON.parse(JSON.stringify(context))" :viewDefaultUsage="false" :isAdaptiveSize="true" :viewState="viewState"></component>
</div>
</template>
</div>
</row>
</div>
\ No newline at end of file
<template src="./board-001-dashboard.html"/>
<script lang='tsx'>
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/hrarchives/part-001-portlet/part-001-portlet.vue';
/**
* dashboard部件
*
* @export
* @class BOARD_001Dashboard
* @extends {BOARD_001DashboardBase}
*/
@Component({
components: {
view_dashboard_sysportlet1,
}
})
@VueLifeCycleProcessing()
export default class BOARD_001Dashboard extends BOARD_001DashboardBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HRArchivesService from '@/service/hrarchives/hrarchives-service';
import PART_001Service from './part-001-portlet-service';
import HRArchivesUIService from '@/uiservice/hrarchives/hrarchives-ui-service';
import { Environment } from '@/environments/environment';
/**
* dashboard_sysportlet1部件基类
*
* @export
* @class MainControlBase
* @extends {PART_001PortletBase}
*/
export class PART_001PortletBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PART_001PortletBase
*/
protected controlType: string = 'PORTLET';
/**
* 建构部件服务对象
*
* @type {PART_001Service}
* @memberof PART_001PortletBase
*/
public service: PART_001Service = new PART_001Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HRArchivesService}
* @memberof PART_001PortletBase
*/
public appEntityService: HRArchivesService = new HRArchivesService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PART_001PortletBase
*/
protected appDeName: string = 'hrarchives';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PART_001PortletBase
*/
protected appDeLogicName: string = '档案信息';
/**
* 长度
*
* @type {number}
* @memberof PART_001
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof PART_001
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PART_001Base
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PART_001Base
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PART_001Base
*/
public getData(): any {
return {};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PART_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 '300px';
}
}
/**
* vue 生命周期
*
* @memberof PART_001Base
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof PART_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_001Base
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PART_001Base
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
/**
* PART_001 部件模型
*
* @export
* @class PART_001Model
*/
export default class PART_001Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PART_001Model
*/
public getDataItems(): any[] {
return [
{
name: 'hrarchives',
prop: 'hrarchivesid',
},
{
name: 'hrarchivesname',
},
{
name: 'createman',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'updatedate',
},
{
name: 'hremployeeid',
},
{
name: 'hremployeename',
},
{
name: 'employeecode',
},
{
name: 'organizationname',
},
{
name: 'organizationid',
},
{
name: 'empstate',
},
{
name: 'archivescode',
},
{
name: 'archivesroom',
},
{
name: 'archivesplacetype',
},
{
name: 'archivesplace',
},
{
name: 'degree',
},
{
name: 'birthday',
},
{
name: 'politicaltime',
},
{
name: 'startworktime',
},
{
name: 'activeflag',
},
{
name: 'attachment',
},
{
name: 'memo',
},
{
name: 'borrowstate',
},
{
name: 'hrorganizationid',
},
{
name: 'hrorganizationname',
},
]
}
}
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* PART_001 部件服务对象
*
* @export
* @class PART_001Service
*/
export default class PART_001Service extends ControlService {
}
<div class='portlet part-001 ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<div class="portlet-without-title">
<hrarchives-v-003 :viewUsage="4" :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></hrarchives-v-003>
</div>
</div>
<template src="./part-001-portlet.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PART_001PortletBase } from './part-001-portlet-base';
/**
* dashboard_sysportlet1部件
*
* @export
* @class PART_001Portlet
* @extends {PART_001PortletBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PART_001Portlet extends PART_001PortletBase { }
</script>
<div class='tabviewpanel' v-if='isActivied'>
<hrarchives-v-003
<hrarchives-v-004
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
......
......@@ -37,6 +37,11 @@
git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/
mvn clean package -Ppim
cd humanresource-app/humanresource-app-pim
mvn -Ppim docker:build
mvn -Ppim docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-app-pim.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE 8080
EXPOSE 10327
ADD humanresource-app-pim.jar /humanresource-app-pim.jar
......@@ -3,9 +3,25 @@ services:
humanresource-app-pim:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports:
- "8080:8080"
- "10327:10327"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10327
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册