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

jackwang 部署微服务应用

上级 2b27c1a2
......@@ -619,6 +619,16 @@
"viewtag": "b932c0eb66409c638c29ee27ba4fda37",
"memo": "系统自动添加"
},
"hremployeetreeexpview": {
"title": "员工树导航编辑",
"caption": "员工信息",
"viewtype": "DETREEEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeeTreeExpView",
"viewfilename": "hremployee-tree-exp-view",
"viewtag": "ba512ad6a392dc170b1959cebd038fb8",
"memo": ""
},
"hrposttabexpview": {
"title": "职位",
"caption": "职位",
......
......@@ -58,6 +58,10 @@ export default {
caption: "员工",
title: "员工编辑视图",
},
treeexpview: {
caption: "员工信息",
title: "员工树导航编辑",
},
pickupview: {
caption: "员工",
title: "员工数据选择视图",
......@@ -230,4 +234,13 @@ export default {
tip: "Remove {0}",
},
},
tree_001_treeview: {
nodes: {
root: "默认根节点",
tr0: "员工信息",
tr01: "分配信息",
},
uiactions: {
},
},
};
\ No newline at end of file
......@@ -57,6 +57,10 @@ export default {
caption: "员工",
title: "员工编辑视图",
},
treeexpview: {
caption: "员工信息",
title: "员工树导航编辑",
},
pickupview: {
caption: "员工",
title: "员工数据选择视图",
......@@ -229,4 +233,13 @@ export default {
tip: "删除",
},
},
tree_001_treeview: {
nodes: {
root: "默认根节点",
tr0: "员工信息",
tr01: "分配信息",
},
uiactions: {
},
},
};
\ No newline at end of file
......@@ -503,6 +503,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HREmployeeEditView",
"viewtag": "b932c0eb66409c638c29ee27ba4fda37"
},
"hremployeetreeexpview": {
"title": "员工树导航编辑",
"caption": "员工信息",
"viewtype": "DETREEEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeeTreeExpView",
"viewtag": "ba512ad6a392dc170b1959cebd038fb8"
},
"hrposttabexpview": {
"title": "职位",
"caption": "职位",
......
......@@ -598,7 +598,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
{ pathName: 'treeexpview', parameterName: 'treeexpview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
import { Subject } from 'rxjs';
import { TreeExpViewBase } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import HREmployeeAuthService from '@/authservice/hremployee/hremployee-auth-service';
import TreeExpViewEngine from '@engine/view/tree-exp-view-engine';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
/**
* 员工树导航编辑视图基类
*
* @export
* @class HREmployeeTreeExpViewBase
* @extends {TreeExpViewBase}
*/
export class HREmployeeTreeExpViewBase extends TreeExpViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeeTreeExpViewBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeeTreeExpViewBase
*/
protected appDeKey: string = 'employeeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeeTreeExpViewBase
*/
protected appDeMajor: string = 'employeename';
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeeTreeExpViewBase
*/
protected appEntityService: HREmployeeService = new HREmployeeService;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeeTreeExpViewBase
*/
public appUIService: HREmployeeUIService = new HREmployeeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeeTreeExpViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeeTreeExpViewBase
*/
protected model: any = {
srfCaption: 'entities.hremployee.views.treeexpview.caption',
srfTitle: 'entities.hremployee.views.treeexpview.title',
srfSubTitle: 'entities.hremployee.views.treeexpview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeeTreeExpViewBase
*/
protected containerModel: any = {
view_treeexpbar: { name: 'treeexpbar', type: 'TREEEXPBAR' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'ba512ad6a392dc170b1959cebd038fb8';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeeTreeExpViewBase
*/
public engine: TreeExpViewEngine = new TreeExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeeTreeExpViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
treeexpbar: this.$refs.treeexpbar,
keyPSDEField: 'hremployee',
majorPSDEField: 'employeename',
isLoadDefault: true,
});
}
/**
* treeexpbar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeTreeExpViewBase
*/
public treeexpbar_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'selectionchange', $event);
}
/**
* treeexpbar 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeTreeExpViewBase
*/
public treeexpbar_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'activated', $event);
}
/**
* treeexpbar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeTreeExpViewBase
*/
public treeexpbar_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('treeexpbar', 'load', $event);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HREmployeeTreeExpView
*/
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof HREmployeeTreeExpView
*/
public opendata(args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) {
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
}
/**
* 视图唯一标识
*
* @type {string}
* @memberof HREmployeeTreeExpView
*/
public viewUID: string = 'human-resource-hremployee-tree-exp-view';
}
\ No newline at end of file
<studio-view-style2 viewName="hremployeetreeexpview" viewTitle="员工树导航编辑" class='detreeexpview hremployee-tree-exp-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_treeexpbar
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:viewUID="viewUID"
:newdata="newdata"
:opendata="opendata"
name="treeexpbar"
ref='treeexpbar'
@selectionchange="treeexpbar_selectionchange($event)"
@activated="treeexpbar_activated($event)"
@load="treeexpbar_load($event)"
@closeview="closeView($event)">
</view_treeexpbar>
</studio-view-style2>
\ No newline at end of file
<template src="./hremployee-tree-exp-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeeTreeExpViewBase } from './hremployee-tree-exp-view-base';
import view_treeexpbar from '@widgets/hremployee/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.vue';
/**
* 员工树导航编辑视图
*
* @export
* @class HREmployeeTreeExpView
* @extends {HREmployeeTreeExpViewBase}
*/
@Component({
components: {
view_treeexpbar,
}
})
@VueLifeCycleProcessing()
export default class HREmployeeTreeExpView extends HREmployeeTreeExpViewBase { }
</script>
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('hremployee-pickup-view', () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'));
Vue.component('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'));
Vue.component('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'));
Vue.component('hremployee-pickup-view', () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'));
Vue.component('hroperation-unit-edit-view', () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'));
Vue.component('hrpost-grid-view', () => import('@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue'));
Vue.component('hrduty-v-001', () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'));
......@@ -21,6 +21,7 @@ export const PageComponents = {
Vue.component('hrduty-cert-grid-view', () => import('@pages/human-resource/hrduty-cert-grid-view/hrduty-cert-grid-view.vue'));
Vue.component('hrduty-skill-v-002', () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue'));
Vue.component('hrpost-rel-v-002', () => import('@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'));
Vue.component('hremployee-tree-exp-view', () => import('@pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.vue'));
Vue.component('hremployee-pickup-grid-view', () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-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'));
......@@ -39,7 +40,6 @@ export const PageComponents = {
Vue.component('hrlegal-v-001', () => import('@pages/base/hrlegal-v-001/hrlegal-v-001.vue'));
Vue.component('hrpost-pickup-grid-view', () => import('@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'));
Vue.component('hrduty-skill-grid-view', () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'));
Vue.component('hremployee-list-exp-view', () => import('@pages/human-resource/hremployee-list-exp-view/hremployee-list-exp-view.vue'));
Vue.component('hrduty-edu-v-001', () => import('@pages/human-resource/hrduty-edu-v-001/hrduty-edu-v-001.vue'));
Vue.component('hrpost-dashboard-view', () => import('@pages/human-resource/hrpost-dashboard-view/hrpost-dashboard-view.vue'));
Vue.component('hrorg-address-edit-view', () => import('@pages/base/hrorg-address-edit-view/hrorg-address-edit-view.vue'));
......@@ -61,9 +61,9 @@ export const PageComponents = {
Vue.component('hrpost-v-005', () => import('@pages/human-resource/hrpost-v-005/hrpost-v-005.vue'));
Vue.component('hrlegal-edit-view', () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'));
Vue.component('hromhierarchy-edit-view', () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'));
Vue.component('hrduty-pickup-view', () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.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'));
Vue.component('hromhierarchy-cat-v-002', () => import('@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'));
......
......@@ -44,32 +44,32 @@ const router = new Router({
component: () => import('@pages/ungroup/pim/pim.vue'),
children: [
{
path: 'hremployees/:hremployee?/pickupview/:pickupview?',
path: 'hrposts/:hrpost?/v_004/:v_004?',
meta: {
caption: 'entities.hremployee.views.pickupview.title',
caption: 'entities.hrpost.views.v_004.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'v_004', parameterName: 'v_004' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'),
component: () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'),
},
{
path: 'hrposts/:hrpost?/v_004/:v_004?',
path: 'hremployees/:hremployee?/pickupview/:pickupview?',
meta: {
caption: 'entities.hrpost.views.v_004.title',
caption: 'entities.hremployee.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'v_004', parameterName: 'v_004' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'),
component: () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'),
},
{
path: 'hroperationunits/:hroperationunit?/editview/:editview?',
......@@ -517,6 +517,20 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'),
},
{
path: 'hremployees/:hremployee?/treeexpview/:treeexpview?',
meta: {
caption: 'entities.hremployee.views.treeexpview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'treeexpview', parameterName: 'treeexpview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hremployee-tree-exp-view/hremployee-tree-exp-view.vue'),
},
{
path: 'hremployees/:hremployee?/pickupgridview/:pickupgridview?',
meta: {
......@@ -859,20 +873,6 @@ const router = new Router({
},
component: () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'),
},
{
path: 'hremployees/:hremployee?/listexpview/:listexpview?',
meta: {
caption: 'entities.hremployee.views.listexpview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hremployee-list-exp-view/hremployee-list-exp-view.vue'),
},
{
path: 'hrduties/:hrduty?/hrdutyedus/:hrdutyedu?/v_001/:v_001?',
meta: {
......@@ -1288,61 +1288,61 @@ const router = new Router({
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
},
{
path: 'hrorganizations/:hrorganization?/gridview/:gridview?',
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: {
caption: 'entities.hrorganization.views.gridview.title',
caption: 'entities.hrpostrel.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'),
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
},
{
path: 'hrduties/:hrduty?/pickupview/:pickupview?',
path: 'hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: {
caption: 'entities.hrduty.views.pickupview.title',
caption: 'entities.hrpostrel.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'),
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
},
{
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
path: 'hrorganizations/:hrorganization?/gridview/:gridview?',
meta: {
caption: 'entities.hrpostrel.views.gridview.title',
caption: 'entities.hrorganization.views.gridview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'),
},
{
path: 'hrpostrels/:hrpostrel?/gridview/:gridview?',
path: 'hrduties/:hrduty?/pickupview/:pickupview?',
meta: {
caption: 'entities.hrpostrel.views.gridview.title',
caption: 'entities.hrduty.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'),
},
{
path: 'hromhierarchycats/:hromhierarchycat?/editview/:editview?',
......
......@@ -465,15 +465,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '92826c47e3d2b905845fe1ad5c30be62',
viewmodule: 'HumanResource',
viewname: 'HREmployeeListExpView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '9420eeffff765c2a6e4ac27dfae7fb2d',
viewmodule: 'Base',
......@@ -492,8 +483,8 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'ba512ad6a392dc170b1959cebd038fb8',
'b932c0eb66409c638c29ee27ba4fda37',
'92826c47e3d2b905845fe1ad5c30be62',
],
},
{
......@@ -589,6 +580,17 @@ export const viewstate: any = {
'e7ba37699bd458dc8dd5c02abac8dadd',
],
},
{
viewtag: 'ba512ad6a392dc170b1959cebd038fb8',
viewmodule: 'HumanResource',
viewname: 'HREmployeeTreeExpView',
viewaction: '',
viewdatachange: false,
refviews: [
'6395cba44e6d6151f19e543b55d88845',
'b932c0eb66409c638c29ee27ba4fda37',
],
},
{
viewtag: 'bae1de77dc5bd2584e2dcf7201a06495',
viewmodule: 'HumanResource',
......
......@@ -93,6 +93,7 @@ export default class HREmployeeUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'listexpview',srfappde:'hremployees'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hremployees'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hremployees'});
this.allViewMap.set(':',{viewname:'treeexpview',srfappde:'hremployees'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'hremployees'});
}
......
/**
* TREE_001 部件模型
*
* @export
* @class TREE_001Model
*/
export default class TREE_001Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TREE_001Model
*/
public getDataItems(): any[] {
return [
{
name: 'employeename',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'hremployee',
prop: 'employeeid',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'organizationid',
},
{
name: 'employeecode',
},
{
name: 'certtype',
},
{
name: 'certnum',
},
{
name: 'birthday',
},
{
name: 'age',
},
{
name: 'organizationname',
},
{
name: 'sex',
},
{
name: 'bloodtype',
},
{
name: 'telephone',
},
{
name: 'mobile',
},
{
name: 'email',
},
{
name: 'marriage',
},
{
name: 'nation',
},
{
name: 'nativetype',
},
{
name: 'nativeaddress',
},
{
name: 'birthaddress',
},
{
name: 'postaladdress',
},
{
name: 'hobby',
},
{
name: 'health',
},
{
name: 'political',
},
{
name: 'startworktime',
},
{
name: 'startorgtime',
},
{
name: 'photo',
},
{
name: 'firstdegree',
},
{
name: 'highestdegree',
},
{
name: 'technicaltitle',
},
{
name: 'certificates',
},
{
name: 'entrytype',
},
{
name: 'politicaltime',
},
{
name: 'empstate',
},
{
name: 'jobstate',
},
{
name: 'nativeplace',
},
]
}
}
\ No newline at end of file
<div class="design-tree-container">
<context-menu-container>
<el-tree
v-if="inited"
ref="treeexpbar_tree"
class="design-tree"
node-key="id"
lazy
:show-checkbox="!isSingleSelect"
:check-on-click-node="!isSingleSelect"
:default-expanded-keys="expandedKeys"
:props="{
label: 'text',
isLeaf: 'leaf',
children: 'children'
}"
:load="load.bind(_self)"
:highlight-current="true"
:expand-on-click-node="false"
@check="onCheck.apply(_self, arguments)"
@current-change="selectionChange.apply(_self, arguments)"
:filter-node-method="filterNode"
>
<template slot-scope="{ node, data }">
<context-menu :contextMenuStyle="{width: '100%'}" :data="node" :renderContent="renderContextMenu.bind(_self)">
<tooltip transfer style="width: 100%;" max-width="2000" placement="right">
<div class="tree-node" @dblclick="doDefaultAction(node)">
<span class="icon">
<i v-if=" data.iconcls && !Object.is(data.iconcls, '')" :class="data.iconcls"></i>
<img v-else-if="data.icon && !Object.is(data.icon, '')" :src="data.icon" />
<icon v-else-if="isOutputIconDefault" type="ios-paper-outline"></icon>&nbsp;
</span>
<span class="text">
<span v-if="data.html" v-html="data.html"></span>
<span v-else>{{ data.isUseLangRes ? $t(data.text) : data.text }}</span>
</span>
</div>
<template slot="content">
<span v-if="data.html" v-html="data.html"></span>
<span v-else>{{ data.isUseLangRes ? $t(data.text) : data.text }}</span>
</template>
</tooltip>
</context-menu>
</template>
</el-tree>
</context-menu-container>
</div>
\ No newline at end of file
<template src="./tree-001-treeview.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { TREE_001TreeBase } from './tree-001-treeview-base';
/**
* treeexpbar_tree部件
*
* @export
* @class TREE_001Tree
* @extends {TREE_001TreeBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class TREE_001Tree extends TREE_001TreeBase { }
</script>
/**
* TreeExpViewtreeexpbar 部件模型
*
* @export
* @class TreeExpViewtreeexpbarModel
*/
export default class TreeExpViewtreeexpbarModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TreeExpViewtreeexpbarModel
*/
public getDataItems(): any[] {
return [
{
name: 'employeename',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'hremployee',
prop: 'employeeid',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'organizationid',
},
{
name: 'employeecode',
},
{
name: 'certtype',
},
{
name: 'certnum',
},
{
name: 'birthday',
},
{
name: 'age',
},
{
name: 'organizationname',
},
{
name: 'sex',
},
{
name: 'bloodtype',
},
{
name: 'telephone',
},
{
name: 'mobile',
},
{
name: 'email',
},
{
name: 'marriage',
},
{
name: 'nation',
},
{
name: 'nativetype',
},
{
name: 'nativeaddress',
},
{
name: 'birthaddress',
},
{
name: 'postaladdress',
},
{
name: 'hobby',
},
{
name: 'health',
},
{
name: 'political',
},
{
name: 'startworktime',
},
{
name: 'startorgtime',
},
{
name: 'photo',
},
{
name: 'firstdegree',
},
{
name: 'highestdegree',
},
{
name: 'technicaltitle',
},
{
name: 'certificates',
},
{
name: 'entrytype',
},
{
name: 'politicaltime',
},
{
name: 'empstate',
},
{
name: 'jobstate',
},
{
name: 'nativeplace',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* TreeExpViewtreeexpbar 部件服务对象
*
* @export
* @class TreeExpViewtreeexpbarService
*/
export default class TreeExpViewtreeexpbarService extends ControlService {
}
\ No newline at end of file
<split id="treeexpviewtreeexpbar" class='app-tree-exp-bar' v-model="split" mode="horizontal" @on-move-end="onSplitChange.apply(_self, arguments)">
<div class="app-tree-exp-bar-left show-title-bar" slot='left'>
<div class='tree-exp-bar-header'>
<div class="tree-exp-bar-title">员工信息</div>
</div>
<div class='tree-exp-content'>
<view_treeexpbar_tree
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
updateAction='Update'
removeAction='Remove'
loadAction='Get'
createAction='Create'
:isSelectFirstDefault="true"
:isBranchAvailable="true"
name="treeexpbar_tree"
ref='treeexpbar_tree'
@selectionchange="treeexpbar_tree_selectionchange($event)"
@load="treeexpbar_tree_load($event)"
@closeview="closeView($event)">
</view_treeexpbar_tree>
</div>
</div>
<div class="app-tree-exp-bar-right" slot='right'>
<component
v-if="selection.view && !Object.is(this.selection.view.viewname, '')"
:is="selection.view.viewname"
class="viewcontainer2"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(selection.context)"
:viewparam="JSON.stringify(selection.viewparam)"
@viewdataschange="onViewDatasChange.apply(_self, arguments)"
@viewdatasactivated="viewDatasActivated.apply(_self, arguments)"
@viewload="onViewLoad.apply(_self, arguments)">
</component>
</div>
</split>
<template src="./tree-exp-viewtreeexpbar-treeexpbar.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { TreeExpViewtreeexpbarTreeExpBarBase } from './tree-exp-viewtreeexpbar-treeexpbar-base';
import view_treeexpbar_tree from '@widgets/hremployee/tree-001-treeview/tree-001-treeview.vue';
/**
* treeexpbar部件
*
* @export
* @class TreeExpViewtreeexpbarTreeExpBar
* @extends {TreeExpViewtreeexpbarTreeExpBarBase}
*/
@Component({
components: {
view_treeexpbar_tree,
}
})
@VueLifeCycleProcessing()
export default class TreeExpViewtreeexpbarTreeExpBar extends TreeExpViewtreeexpbarTreeExpBarBase { }
</script>
......@@ -178,7 +178,7 @@
<!--输出实体[HREMPLOYEE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hremployee-105-8">
<changeSet author="a_LAB01_e85d8801c" id="tab-hremployee-115-8">
<createTable tableName="EMPLOYEE">
<column name="EMPLOYEENAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -278,7 +278,7 @@
<!--输出实体[HRLEGAL]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlegal-88-10">
<changeSet author="a_LAB01_e85d8801c" id="tab-hrlegal-90-10">
<createTable tableName="LEGAL">
<column name="LEGALNAME" remarks="" type="VARCHAR(200)">
</column>
......@@ -593,10 +593,10 @@
</changeSet>
<!--输出实体[HREMPSTATE]外键关系 -->
<!--输出实体[HREMPLOYEE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-105-26">
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-115-26">
<addForeignKeyConstraint baseColumnNames="ORGANIZATIONID" baseTableName="EMPLOYEE" constraintName="DER1N_EMPLOYEE_ORGANIZATION_OR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGANIZATIONID" referencedTableName="ORGANIZATION" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-105-27">
<changeSet author="a_LAB01_e85d8801c" id="fk-hremployee-115-27">
<addForeignKeyConstraint baseColumnNames="EMPSTATE" baseTableName="EMPLOYEE" constraintName="DER1N_HREMPLOYEE_HREMPSTATE_EM" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="HREMPSTATEID" referencedTableName="T_HREMPSTATE" validate="true"/>
</changeSet>
<!--输出实体[HRLEAVE]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册