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

jackwang 部署微服务应用

上级 8217b24b
......@@ -9,6 +9,16 @@
"viewtag": "045cc74f78937b52db67b8239361d181",
"memo": ""
},
"hrpostpickupview": {
"title": "职位数据选择视图",
"caption": "职位",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostPickupView",
"viewfilename": "hrpost-pickup-view",
"viewtag": "04c02737ae62a4f4c014607441ee0401",
"memo": "系统自动添加"
},
"hrorgcontacteditview": {
"title": "组织联系信息编辑视图",
"caption": "组织联系信息",
......@@ -219,6 +229,16 @@
"viewtag": "53de2c13a619e20769cdc9dbfa10e1a5",
"memo": "系统自动添加"
},
"hrpostpickupgridview": {
"title": "职位选择表格视图",
"caption": "职位",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostPickupGridView",
"viewfilename": "hrpost-pickup-grid-view",
"viewtag": "5bd45b52782142f58a041e31e633921c",
"memo": "系统自动添加"
},
"hrpostv_004": {
"title": "职位编辑视图",
"caption": "职位",
......@@ -279,6 +299,16 @@
"viewtag": "6cf9411c3f3597947dfee8dad2968182",
"memo": "系统自动添加"
},
"hremployeepickupgridview": {
"title": "员工选择表格视图",
"caption": "员工",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeePickupGridView",
"viewfilename": "hremployee-pickup-grid-view",
"viewtag": "73f27ddcf2a626455aa88f4a052db014",
"memo": "系统自动添加"
},
"hrorgcontactv_001": {
"title": "组织联系信息嵌入组织",
"caption": "组织联系信息嵌入组织",
......@@ -430,8 +460,8 @@
"memo": "系统自动添加"
},
"hrposttabexpview": {
"title": "职位信息",
"caption": "职位信息",
"title": "职位",
"caption": "职位",
"viewtype": "DETABEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostTabExpView",
......@@ -479,6 +509,16 @@
"viewtag": "c62ff001669cca98c0a2a7bc3383c775",
"memo": ""
},
"hrdistributionv_002": {
"title": "工作人员分配",
"caption": "工作人员分配",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRDistributionV_002",
"viewfilename": "hrdistribution-v-002",
"viewtag": "cd7f9e0b57fdfdf34307ce460137b152",
"memo": ""
},
"hrpostv_006": {
"title": "职位信息",
"caption": "职位信息",
......@@ -499,6 +539,16 @@
"viewtag": "d32b549b3c49b790b092eca97d1de2c1",
"memo": ""
},
"hrpostrelv_002": {
"title": "直接上级职位",
"caption": "直接上级职位",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostRelV_002",
"viewfilename": "hrpost-rel-v-002",
"viewtag": "d4d0e128d8c7e5c141f99540b62fd9bf",
"memo": ""
},
"hrpostgridview": {
"title": "职位表格",
"caption": "职位",
......@@ -559,6 +609,16 @@
"viewtag": "ebcbf493e0a574cf170412456645a3a7",
"memo": "系统自动添加"
},
"hremployeepickupview": {
"title": "员工数据选择视图",
"caption": "员工",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeePickupView",
"viewfilename": "hremployee-pickup-view",
"viewtag": "ec9d9fe37bbfc3fcb623e2dc34b48dbc",
"memo": "系统自动添加"
},
"hrpostdashboardview": {
"title": "职位看板",
"caption": "职位看板",
......
......@@ -27,13 +27,15 @@ export default {
caption: "工作人员分配",
title: "工作人员分配编辑视图",
},
v_002: {
caption: "工作人员分配",
title: "工作人员分配",
},
},
main_form: {
details: {
group1: "工作人员分配基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "工作人员分配标识",
......@@ -42,11 +44,10 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrdistributionname: "工作人员分配名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
hremployeename: "员工姓名",
begintime: "入职时间",
endtime: "离职时间",
hremployeeid: "员工标识",
hrdistributionid: "工作人员分配标识",
},
uiactions: {
......@@ -68,6 +69,40 @@ export default {
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
......@@ -114,38 +149,4 @@ export default {
tip: "Help",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
......@@ -26,13 +26,15 @@ export default {
caption: "工作人员分配",
title: "工作人员分配编辑视图",
},
v_002: {
caption: "工作人员分配",
title: "工作人员分配",
},
},
main_form: {
details: {
group1: "工作人员分配基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "工作人员分配标识",
......@@ -41,11 +43,10 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrdistributionname: "工作人员分配名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
hremployeename: "员工姓名",
begintime: "入职时间",
endtime: "离职时间",
hremployeeid: "员工标识",
hrdistributionid: "工作人员分配标识",
},
uiactions: {
......@@ -67,6 +68,40 @@ export default {
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
......@@ -113,38 +148,4 @@ export default {
tip: "帮助",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
};
\ No newline at end of file
......@@ -10,6 +10,10 @@ export default {
organizationid: "组织",
},
views: {
pickupgridview: {
caption: "员工",
title: "员工选择表格视图",
},
gridview: {
caption: "员工",
title: "员工表格视图",
......@@ -18,6 +22,10 @@ export default {
caption: "员工",
title: "员工编辑视图",
},
pickupview: {
caption: "员工",
title: "员工数据选择视图",
},
},
main_form: {
details: {
......
......@@ -9,6 +9,10 @@ export default {
organizationid: "组织",
},
views: {
pickupgridview: {
caption: "员工",
title: "员工选择表格视图",
},
gridview: {
caption: "员工",
title: "员工表格视图",
......@@ -17,6 +21,10 @@ export default {
caption: "员工",
title: "员工编辑视图",
},
pickupview: {
caption: "员工",
title: "员工数据选择视图",
},
},
main_form: {
details: {
......
......@@ -27,13 +27,15 @@ export default {
caption: "职位关系",
title: "职位关系编辑视图",
},
v_002: {
caption: "直接上级职位",
title: "直接上级职位",
},
},
main_form: {
details: {
group1: "职位关系基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "职位关系标识",
......@@ -42,12 +44,11 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrpostrelname: "职位关系名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
phrpostname: "直接上级职位",
begintime: "生效",
endtime: "到期",
hrpostrelid: "职位关系标识",
phrpostid: "职位标识",
},
uiactions: {
},
......@@ -68,6 +69,40 @@ export default {
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
......@@ -114,38 +149,4 @@ export default {
tip: "Help",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
......@@ -26,13 +26,15 @@ export default {
caption: "职位关系",
title: "职位关系编辑视图",
},
v_002: {
caption: "直接上级职位",
title: "直接上级职位",
},
},
main_form: {
details: {
group1: "职位关系基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "职位关系标识",
......@@ -41,12 +43,11 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
hrpostrelname: "职位关系名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
phrpostname: "直接上级职位",
begintime: "生效",
endtime: "到期",
hrpostrelid: "职位关系标识",
phrpostid: "职位标识",
},
uiactions: {
},
......@@ -67,6 +68,40 @@ export default {
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
......@@ -113,38 +148,4 @@ export default {
tip: "帮助",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
};
\ No newline at end of file
......@@ -18,6 +18,10 @@ export default {
postnum: "编制人数",
},
views: {
pickupview: {
caption: "职位",
title: "职位数据选择视图",
},
v_003: {
caption: "职位",
title: "失效职位",
......@@ -26,6 +30,10 @@ export default {
caption: "职位",
title: "空缺职位",
},
pickupgridview: {
caption: "职位",
title: "职位选择表格视图",
},
v_004: {
caption: "职位",
title: "职位编辑视图",
......@@ -39,8 +47,8 @@ export default {
title: "有效职位",
},
tabexpview: {
caption: "职位信息",
title: "职位信息",
caption: "职位",
title: "职位",
},
v_005: {
caption: "快速新建",
......
......@@ -17,6 +17,10 @@ export default {
postnum: "编制人数",
},
views: {
pickupview: {
caption: "职位",
title: "职位数据选择视图",
},
v_003: {
caption: "职位",
title: "失效职位",
......@@ -25,6 +29,10 @@ export default {
caption: "职位",
title: "空缺职位",
},
pickupgridview: {
caption: "职位",
title: "职位选择表格视图",
},
v_004: {
caption: "职位",
title: "职位编辑视图",
......@@ -38,8 +46,8 @@ export default {
title: "有效职位",
},
tabexpview: {
caption: "职位信息",
title: "职位信息",
caption: "职位",
title: "职位",
},
v_005: {
caption: "快速新建",
......
......@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROMHierarchyCatPickupGridView",
"viewtag": "045cc74f78937b52db67b8239361d181"
},
"hrpostpickupview": {
"title": "职位数据选择视图",
"caption": "职位",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostPickupView",
"viewtag": "04c02737ae62a4f4c014607441ee0401"
},
"hrorgcontacteditview": {
"title": "组织联系信息编辑视图",
"caption": "组织联系信息",
......@@ -183,6 +191,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROrgContactGridView",
"viewtag": "53de2c13a619e20769cdc9dbfa10e1a5"
},
"hrpostpickupgridview": {
"title": "职位选择表格视图",
"caption": "职位",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostPickupGridView",
"viewtag": "5bd45b52782142f58a041e31e633921c"
},
"hrpostv_004": {
"title": "职位编辑视图",
"caption": "职位",
......@@ -231,6 +247,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HRPostRelEditView",
"viewtag": "6cf9411c3f3597947dfee8dad2968182"
},
"hremployeepickupgridview": {
"title": "员工选择表格视图",
"caption": "员工",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeePickupGridView",
"viewtag": "73f27ddcf2a626455aa88f4a052db014"
},
"hrorgcontactv_001": {
"title": "组织联系信息嵌入组织",
"caption": "组织联系信息嵌入组织",
......@@ -352,8 +376,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "b932c0eb66409c638c29ee27ba4fda37"
},
"hrposttabexpview": {
"title": "职位信息",
"caption": "职位信息",
"title": "职位",
"caption": "职位",
"viewtype": "DETABEXPVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostTabExpView",
......@@ -391,6 +415,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROMHierarchyCatDashboardView",
"viewtag": "c62ff001669cca98c0a2a7bc3383c775"
},
"hrdistributionv_002": {
"title": "工作人员分配",
"caption": "工作人员分配",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRDistributionV_002",
"viewtag": "cd7f9e0b57fdfdf34307ce460137b152"
},
"hrpostv_006": {
"title": "职位信息",
"caption": "职位信息",
......@@ -407,6 +439,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROperationUnitV_001",
"viewtag": "d32b549b3c49b790b092eca97d1de2c1"
},
"hrpostrelv_002": {
"title": "直接上级职位",
"caption": "直接上级职位",
"viewtype": "DEOPTVIEW",
"viewmodule": "HumanResource",
"viewname": "HRPostRelV_002",
"viewtag": "d4d0e128d8c7e5c141f99540b62fd9bf"
},
"hrpostgridview": {
"title": "职位表格",
"caption": "职位",
......@@ -455,6 +495,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HRDutyPickupView",
"viewtag": "ebcbf493e0a574cf170412456645a3a7"
},
"hremployeepickupview": {
"title": "员工数据选择视图",
"caption": "员工",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "HumanResource",
"viewname": "HREmployeePickupView",
"viewtag": "ec9d9fe37bbfc3fcb623e2dc34b48dbc"
},
"hrpostdashboardview": {
"title": "职位看板",
"caption": "职位看板",
......
<studio-view-style2 viewName="hrlegaleditview" viewTitle="法人编辑视图" class='deeditview hrlegal-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrlegalgridview" viewTitle="法人" class='degridview hrlegal-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hromhierarchycateditview" viewTitle="结构层次类别编辑视图" class='deeditview hromhierarchy-cat-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hromhierarchycatgridview" viewTitle="组织层次结构" class='degridview hromhierarchy-cat-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
<studio-view-style2 viewName="hromhierarchycatv_002" viewTitle="层次结构" class='deeditview hromhierarchy-cat-v-002'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hromhierarchyeditview" viewTitle="组织层次结构编辑视图" class='deeditview hromhierarchy-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hromhierarchygridview" viewTitle="组织层次结构表格视图" class='degridview hromhierarchy-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
<studio-view-style2 viewName="hroperationuniteditview" viewTitle="运营单位信息编辑" class='deeditview hroperation-unit-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hroperationunitgridview" viewTitle="运营单位" class='degridview hroperation-unit-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrorgaddresseditview" viewTitle="组织地址编辑视图" class='deeditview hrorg-address-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrorgaddressgridview" viewTitle="组织地址表格视图" class='degridview hrorg-address-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
<studio-view-style2 viewName="hrorgcontacteditview" viewTitle="组织联系信息编辑视图" class='deeditview hrorg-contact-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrorgcontactgridview" viewTitle="组织联系信息表格视图" class='degridview hrorg-contact-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrorganizationgridview" viewTitle="组织" class='degridview hrorganization-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -561,7 +561,12 @@ export class HRDistributionGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRDistributionGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'editview', parameterName: 'editview' },
......
<studio-view-style2 viewName="hrdistributiongridview" viewTitle="工作人员分配表格视图" class='degridview hrdistribution-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -213,19 +213,36 @@ export class HRDistributionV_001Base extends GridView9Base {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'hrdistribution-v-002',
height: 0,
width: 600,
title: this.$t('entities.hrdistribution.views.v_002.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -247,17 +264,36 @@ export class HRDistributionV_001Base extends GridView9Base {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrdistributions', parameterName: 'hrdistribution' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'hrdistribution-v-002',
height: 0,
width: 600,
title: this.$t('entities.hrdistribution.views.v_002.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import HRDistributionService from '@/service/hrdistribution/hrdistribution-service';
import HRDistributionAuthService from '@/authservice/hrdistribution/hrdistribution-auth-service';
import OptionViewEngine from '@engine/view/option-view-engine';
import HRDistributionUIService from '@/uiservice/hrdistribution/hrdistribution-ui-service';
/**
* 工作人员分配视图基类
*
* @export
* @class HRDistributionV_002Base
* @extends {OptionViewBase}
*/
export class HRDistributionV_002Base extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected appDeName: string = 'hrdistribution';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected appDeKey: string = 'hrdistributionid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRDistributionV_002Base
*/
protected appDeMajor: string = 'hrdistributionname';
/**
* 实体服务对象
*
* @type {HRDistributionService}
* @memberof HRDistributionV_002Base
*/
protected appEntityService: HRDistributionService = new HRDistributionService;
/**
* 实体权限服务对象
*
* @type HRDistributionUIService
* @memberof HRDistributionV_002Base
*/
public appUIService: HRDistributionUIService = new HRDistributionUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRDistributionV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRDistributionV_002Base
*/
protected model: any = {
srfCaption: 'entities.hrdistribution.views.v_002.caption',
srfTitle: 'entities.hrdistribution.views.v_002.title',
srfSubTitle: 'entities.hrdistribution.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRDistributionV_002Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'cd7f9e0b57fdfdf34307ce460137b152';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRDistributionV_002Base
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRDistributionV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrdistribution',
majorPSDEField: 'hrdistributionname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRDistributionV_002Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrdistributionv_002" viewTitle="工作人员分配" class='deoptview hrdistribution-v-002'>
<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>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrdistribution-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRDistributionV_002Base } from './hrdistribution-v-002-base';
import view_form from '@widgets/hrdistribution/main-form/main-form.vue';
/**
* 工作人员分配视图
*
* @export
* @class HRDistributionV_002
* @extends {HRDistributionV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRDistributionV_002 extends HRDistributionV_002Base { }
</script>
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -4,7 +4,7 @@
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="职务名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -4,7 +4,7 @@
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="员工姓名" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import HREmployeeAuthService from '@/authservice/hremployee/hremployee-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
/**
* 员工选择表格视图视图基类
*
* @export
* @class HREmployeePickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class HREmployeePickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected appDeKey: string = 'employeeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeePickupGridViewBase
*/
protected appDeMajor: string = 'employeename';
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeePickupGridViewBase
*/
protected appEntityService: HREmployeeService = new HREmployeeService;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeePickupGridViewBase
*/
public appUIService: HREmployeeUIService = new HREmployeeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeePickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeePickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.hremployee.views.pickupgridview.caption',
srfTitle: 'entities.hremployee.views.pickupgridview.title',
srfSubTitle: 'entities.hremployee.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeePickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '73f27ddcf2a626455aa88f4a052db014';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeePickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeePickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'hremployee',
majorPSDEField: 'employeename',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof HREmployeePickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="hremployeepickupgridview" viewTitle="员工选择表格视图" class='depickupgridview hremployee-pickup-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./hremployee-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeePickupGridViewBase } from './hremployee-pickup-grid-view-base';
import view_grid from '@widgets/hremployee/main-grid/main-grid.vue';
import view_searchform from '@widgets/hremployee/default-searchform/default-searchform.vue';
/**
* 员工选择表格视图视图
*
* @export
* @class HREmployeePickupGridView
* @extends {HREmployeePickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HREmployeePickupGridView extends HREmployeePickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import HREmployeeAuthService from '@/authservice/hremployee/hremployee-auth-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
/**
* 员工数据选择视图视图基类
*
* @export
* @class HREmployeePickupViewBase
* @extends {PickupViewBase}
*/
export class HREmployeePickupViewBase extends PickupViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected appDeKey: string = 'employeeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeePickupViewBase
*/
protected appDeMajor: string = 'employeename';
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeePickupViewBase
*/
protected appEntityService: HREmployeeService = new HREmployeeService;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeePickupViewBase
*/
public appUIService: HREmployeeUIService = new HREmployeeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeePickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeePickupViewBase
*/
protected model: any = {
srfCaption: 'entities.hremployee.views.pickupview.caption',
srfTitle: 'entities.hremployee.views.pickupview.title',
srfSubTitle: 'entities.hremployee.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeePickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'ec9d9fe37bbfc3fcb623e2dc34b48dbc';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeePickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeePickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'hremployee',
majorPSDEField: 'employeename',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeePickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hremployeepickupview" viewTitle="员工数据选择视图" class='depickupview hremployee-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hremployee-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeePickupViewBase } from './hremployee-pickup-view-base';
import view_pickupviewpanel from '@widgets/hremployee/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 员工数据选择视图视图
*
* @export
* @class HREmployeePickupView
* @extends {HREmployeePickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class HREmployeePickupView extends HREmployeePickupViewBase { }
</script>
<studio-view-style2 viewName="hrposteditview" viewTitle="职位编辑视图" class='deeditview hrpost-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
<studio-view-style2 viewName="hrpostgridview" viewTitle="职位表格" class='degridview hrpost-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import HRPostService from '@/service/hrpost/hrpost-service';
import HRPostAuthService from '@/authservice/hrpost/hrpost-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import HRPostUIService from '@/uiservice/hrpost/hrpost-ui-service';
/**
* 职位选择表格视图视图基类
*
* @export
* @class HRPostPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class HRPostPickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected appDeName: string = 'hrpost';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected appDeKey: string = 'hrpostid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostPickupGridViewBase
*/
protected appDeMajor: string = 'hrpostname';
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof HRPostPickupGridViewBase
*/
protected appEntityService: HRPostService = new HRPostService;
/**
* 实体权限服务对象
*
* @type HRPostUIService
* @memberof HRPostPickupGridViewBase
*/
public appUIService: HRPostUIService = new HRPostUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.hrpost.views.pickupgridview.caption',
srfTitle: 'entities.hrpost.views.pickupgridview.title',
srfSubTitle: 'entities.hrpost.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '5bd45b52782142f58a041e31e633921c';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRPostPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'hrpost',
majorPSDEField: 'hrpostname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof HRPostPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="hrpostpickupgridview" viewTitle="职位选择表格视图" class='depickupgridview hrpost-pickup-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./hrpost-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostPickupGridViewBase } from './hrpost-pickup-grid-view-base';
import view_grid from '@widgets/hrpost/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrpost/default-searchform/default-searchform.vue';
/**
* 职位选择表格视图视图
*
* @export
* @class HRPostPickupGridView
* @extends {HRPostPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HRPostPickupGridView extends HRPostPickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import HRPostService from '@/service/hrpost/hrpost-service';
import HRPostAuthService from '@/authservice/hrpost/hrpost-auth-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
import HRPostUIService from '@/uiservice/hrpost/hrpost-ui-service';
/**
* 职位数据选择视图视图基类
*
* @export
* @class HRPostPickupViewBase
* @extends {PickupViewBase}
*/
export class HRPostPickupViewBase extends PickupViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected appDeName: string = 'hrpost';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected appDeKey: string = 'hrpostid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostPickupViewBase
*/
protected appDeMajor: string = 'hrpostname';
/**
* 实体服务对象
*
* @type {HRPostService}
* @memberof HRPostPickupViewBase
*/
protected appEntityService: HRPostService = new HRPostService;
/**
* 实体权限服务对象
*
* @type HRPostUIService
* @memberof HRPostPickupViewBase
*/
public appUIService: HRPostUIService = new HRPostUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.hrpost.views.pickupview.caption',
srfTitle: 'entities.hrpost.views.pickupview.title',
srfSubTitle: 'entities.hrpost.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '04c02737ae62a4f4c014607441ee0401';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRPostPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'hrpost',
majorPSDEField: 'hrpostname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrpostpickupview" viewTitle="职位数据选择视图" class='depickupview hrpost-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrpost-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostPickupViewBase } from './hrpost-pickup-view-base';
import view_pickupviewpanel from '@widgets/hrpost/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 职位数据选择视图视图
*
* @export
* @class HRPostPickupView
* @extends {HRPostPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class HRPostPickupView extends HRPostPickupViewBase { }
</script>
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -561,7 +561,12 @@ export class HRPostRelGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -595,7 +600,12 @@ export class HRPostRelGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'editview', parameterName: 'editview' },
......
<studio-view-style2 viewName="hrpostrelgridview" viewTitle="职位关系表格视图" class='degridview hrpost-rel-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -213,10 +213,15 @@ export class HRPostRelV_001Base extends GridView9Base {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'v_002', parameterName: 'v_002' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......@@ -247,10 +252,15 @@ export class HRPostRelV_001Base extends GridView9Base {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.hrpost && true){
deResParameters = [
{ pathName: 'hrposts', parameterName: 'hrpost' },
]
}
const parameters: any[] = [
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'v_002', parameterName: 'v_002' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import HRPostRelService from '@/service/hrpost-rel/hrpost-rel-service';
import HRPostRelAuthService from '@/authservice/hrpost-rel/hrpost-rel-auth-service';
import OptionViewEngine from '@engine/view/option-view-engine';
import HRPostRelUIService from '@/uiservice/hrpost-rel/hrpost-rel-ui-service';
/**
* 直接上级职位视图基类
*
* @export
* @class HRPostRelV_002Base
* @extends {OptionViewBase}
*/
export class HRPostRelV_002Base extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected appDeName: string = 'hrpostrel';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected appDeKey: string = 'hrpostrelid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HRPostRelV_002Base
*/
protected appDeMajor: string = 'hrpostrelname';
/**
* 实体服务对象
*
* @type {HRPostRelService}
* @memberof HRPostRelV_002Base
*/
protected appEntityService: HRPostRelService = new HRPostRelService;
/**
* 实体权限服务对象
*
* @type HRPostRelUIService
* @memberof HRPostRelV_002Base
*/
public appUIService: HRPostRelUIService = new HRPostRelUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HRPostRelV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HRPostRelV_002Base
*/
protected model: any = {
srfCaption: 'entities.hrpostrel.views.v_002.caption',
srfTitle: 'entities.hrpostrel.views.v_002.title',
srfSubTitle: 'entities.hrpostrel.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HRPostRelV_002Base
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'd4d0e128d8c7e5c141f99540b62fd9bf';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HRPostRelV_002Base
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HRPostRelV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hrpostrel',
majorPSDEField: 'hrpostrelname',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HRPostRelV_002Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hrpostrelv_002" viewTitle="直接上级职位" class='deoptview hrpost-rel-v-002'>
<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>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./hrpost-rel-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HRPostRelV_002Base } from './hrpost-rel-v-002-base';
import view_form from '@widgets/hrpost-rel/main-form/main-form.vue';
/**
* 直接上级职位视图
*
* @export
* @class HRPostRelV_002
* @extends {HRPostRelV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HRPostRelV_002 extends HRPostRelV_002Base { }
</script>
......@@ -6,7 +6,7 @@ import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import HRPostUIService from '@/uiservice/hrpost/hrpost-ui-service';
/**
* 职位信息视图基类
* 职位视图基类
*
* @export
* @class HRPostTabExpViewBase
......
<studio-view-style2 viewName="hrposttabexpview" viewTitle="职位信息" class='detabexpview hrpost-tab-exp-view'>
<studio-view-style2 viewName="hrposttabexpview" viewTitle="职位" class='detabexpview hrpost-tab-exp-view'>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -6,7 +6,7 @@ import { HRPostTabExpViewBase } from './hrpost-tab-exp-view-base';
import view_tabexppanel from '@widgets/hrpost/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';
/**
* 职位信息视图
* 职位视图
*
* @export
* @class HRPostTabExpView
......
<studio-view-style2 viewName="hrpostv_001" viewTitle="有效职位" class='degridview hrpost-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
<studio-view-style2 viewName="hrpostv_002" viewTitle="空缺职位" class='degridview hrpost-v-002'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="职位" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
<studio-view-style2 viewName="hrpostv_003" viewTitle="失效职位" class='degridview hrpost-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($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
......
......@@ -3,7 +3,7 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
......
export const PageComponents = {
install(Vue: any, opt: any) {
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('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'));
Vue.component('hrduty-edit-view', () => import('@pages/human-resource/hrduty-edit-view/hrduty-edit-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'));
......@@ -15,6 +16,8 @@ export const PageComponents = {
Vue.component('hrpost-v-001', () => import('@pages/human-resource/hrpost-v-001/hrpost-v-001.vue'));
Vue.component('hromhierarchy-grid-view', () => import('@pages/base/hromhierarchy-grid-view/hromhierarchy-grid-view.vue'));
Vue.component('hroperation-unit-v-002', () => import('@pages/base/hroperation-unit-v-002/hroperation-unit-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-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('hrlegal-grid-view', () => import('@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'));
Vue.component('hromhierarchy-tree-exp-view', () => import('@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'));
......@@ -22,13 +25,16 @@ export const PageComponents = {
Vue.component('hrlegal-v-002', () => import('@pages/base/hrlegal-v-002/hrlegal-v-002.vue'));
Vue.component('hroperation-unit-tab-exp-view', () => import('@pages/base/hroperation-unit-tab-exp-view/hroperation-unit-tab-exp-view.vue'));
Vue.component('hrorg-address-grid-view', () => import('@pages/base/hrorg-address-grid-view/hrorg-address-grid-view.vue'));
Vue.component('hrpost-pickup-view', () => import('@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'));
Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'));
Vue.component('hrorganization-pickup-grid-view', () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'));
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('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'));
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('hrdistribution-v-002', () => import('@pages/human-resource/hrdistribution-v-002/hrdistribution-v-002.vue'));
Vue.component('hrpost-rel-v-001', () => import('@pages/human-resource/hrpost-rel-v-001/hrpost-rel-v-001.vue'));
Vue.component('hromhierarchy-pickup-view', () => import('@pages/base/hromhierarchy-pickup-view/hromhierarchy-pickup-view.vue'));
Vue.component('hrpost-v-003', () => import('@pages/human-resource/hrpost-v-003/hrpost-v-003.vue'));
......
......@@ -48,6 +48,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrdistributions/${context.hrdistribution}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrdistributions`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrdistributions/${context.hrdistribution}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let res:any = Http.getInstance().delete(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let res:any = await Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/${context.hrdistribution}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let res:any = await Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
return res;
}
let res:any = await Http.getInstance().get(`/hrdistributions/getdraft`,isloading);
res.data.hrdistribution = data.hrdistribution;
......@@ -149,6 +190,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrdistribution){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrdistributions/${context.hrdistribution}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrdistributions/${context.hrdistribution}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRDistributionServiceBase extends EntityService {
* @memberof HRDistributionServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrdistributions/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrdistributions/fetchdefault`,tempData,isloading);
return res;
......
......@@ -48,6 +48,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/hrpostrels/${context.hrpostrel}/select`,isloading);
return res;
......@@ -63,6 +68,20 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrpostrels`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
......@@ -87,6 +106,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/hrpostrels/${context.hrpostrel}`,data,isloading);
......@@ -104,6 +130,10 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let res:any = Http.getInstance().delete(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/hrpostrels/${context.hrpostrel}`,isloading);
return res;
}
......@@ -118,6 +148,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let res:any = await Http.getInstance().get(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/hrpostrels/${context.hrpostrel}`,isloading);
return res;
......@@ -133,6 +168,12 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let res:any = await Http.getInstance().get(`/hrposts/${context.hrpost}/hrpostrels/getdraft`,isloading);
res.data.hrpostrel = data.hrpostrel;
return res;
}
let res:any = await Http.getInstance().get(`/hrpostrels/getdraft`,isloading);
res.data.hrpostrel = data.hrpostrel;
......@@ -149,6 +190,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/hrpostrels/${context.hrpostrel}/checkkey`,data,isloading);
return res;
}
......@@ -163,6 +211,13 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && context.hrpostrel){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrposts/${context.hrpost}/hrpostrels/${context.hrpostrel}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/hrpostrels/${context.hrpostrel}/save`,data,isloading);
......@@ -180,6 +235,11 @@ export default class HRPostRelServiceBase extends EntityService {
* @memberof HRPostRelServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.hrpost && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrposts/${context.hrpost}/hrpostrels/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/hrpostrels/fetchdefault`,tempData,isloading);
return res;
......
......@@ -73,6 +73,8 @@ export default class HRPostServiceBase extends EntityService {
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/hrposts`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrdistributions',JSON.stringify(res.data.hrdistributions?res.data.hrdistributions:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_hrpostrels',JSON.stringify(res.data.hrpostrels?res.data.hrpostrels:[]));
return res;
}
......
......@@ -12,6 +12,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '04c02737ae62a4f4c014607441ee0401',
viewmodule: 'HumanResource',
viewname: 'HRPostPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'5bd45b52782142f58a041e31e633921c',
],
},
{
viewtag: '0515a652f1ba4326ef610f1d98be95c8',
viewmodule: 'Base',
......@@ -216,7 +226,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'6cf9411c3f3597947dfee8dad2968182',
'd4d0e128d8c7e5c141f99540b62fd9bf',
],
},
{
......@@ -229,6 +239,15 @@ export const viewstate: any = {
'0515a652f1ba4326ef610f1d98be95c8',
],
},
{
viewtag: '5bd45b52782142f58a041e31e633921c',
viewmodule: 'HumanResource',
viewname: 'HRPostPickupGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '5efdfaf722e7585dfd685922b16f7f88',
viewmodule: 'HumanResource',
......@@ -276,7 +295,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'9e5d3f17ad97fd735b8abc637018301d',
'cd7f9e0b57fdfdf34307ce460137b152',
],
},
{
......@@ -285,6 +304,16 @@ export const viewstate: any = {
viewname: 'HRPostRelEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'04c02737ae62a4f4c014607441ee0401',
],
},
{
viewtag: '73f27ddcf2a626455aa88f4a052db014',
viewmodule: 'HumanResource',
viewname: 'HREmployeePickupGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
......@@ -365,6 +394,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'ec9d9fe37bbfc3fcb623e2dc34b48dbc',
],
},
{
......@@ -471,6 +501,16 @@ export const viewstate: any = {
'ebcbf493e0a574cf170412456645a3a7',
],
},
{
viewtag: 'cd7f9e0b57fdfdf34307ce460137b152',
viewmodule: 'HumanResource',
viewname: 'HRDistributionV_002',
viewaction: '',
viewdatachange: false,
refviews: [
'ec9d9fe37bbfc3fcb623e2dc34b48dbc',
],
},
{
viewtag: 'd2137112227c4243e95ffe9ef7eaafab',
viewmodule: 'HumanResource',
......@@ -493,6 +533,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'd4d0e128d8c7e5c141f99540b62fd9bf',
viewmodule: 'HumanResource',
viewname: 'HRPostRelV_002',
viewaction: '',
viewdatachange: false,
refviews: [
'04c02737ae62a4f4c014607441ee0401',
],
},
{
viewtag: 'd5b65e4ae9fc38e66c7faf5698dc6776',
viewmodule: 'HumanResource',
......@@ -552,6 +602,16 @@ export const viewstate: any = {
'de53ae7d577a526b3b268951df885868',
],
},
{
viewtag: 'ec9d9fe37bbfc3fcb623e2dc34b48dbc',
viewmodule: 'HumanResource',
viewname: 'HREmployeePickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'73f27ddcf2a626455aa88f4a052db014',
],
},
{
viewtag: 'f03c9544f1a1107bb34a97542dde1a3e',
viewmodule: 'HumanResource',
......
......@@ -211,6 +211,9 @@ export class ViewToolbar extends Vue {
if (item.type === 'SEPERATOR') {
return this.renderSeperator();
}
if (item.uiaction && Object.is(item.uiaction.tag, 'ExportExcel')) {
return <app-export-excel item={item} caption={item.caption} on-exportexcel={($event: any) => this.itemClick({ tag: item.name }, $event)}></app-export-excel>
}
return <i-button title={item.tooltip} v-show={item.visabled} disabled={item.disabled} class={item.class} on-click={(e: any) => this.itemClick({ tag: item.name }, e)}>
<menu-icon item={item} />
<span class='caption' v-show={item.isShowCaption}>{item.caption}</span>
......
......@@ -72,6 +72,15 @@ export class ControlBase extends Vue {
*/
protected appDeName: string = '';
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof ControlBase
*/
protected appDeLogicName: string = '';
/**
* rxjs类型订阅事件
*
......
......@@ -655,7 +655,7 @@ export class GridControlBase extends MDControlBase {
excel.export_json_to_excel({
header: tHeader, //表头 必填
data, //具体数据 必填
filename: "${ctrl.getPSAppDataEntity().getLogicName()}" + (this.$t('app.gridpage.grid') as string), //非必填
filename: this.appDeLogicName + (this.$t('app.gridpage.grid') as string), //非必填
autoWidth: true, //非必填
bookType: "xlsx" //非必填
});
......@@ -688,11 +688,14 @@ export class GridControlBase extends MDControlBase {
const parentdata: any = {};
this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata);
let tempViewParams: any = parentdata.viewparams ? parentdata.viewparams : {};
Object.assign(tempViewParams, JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg, { viewparams: tempViewParams });
let post: any;
if (this.isDeExport) {
const post: Promise<any> = this.service.searchDEExportData(this.fetchAction, JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post = this.service.searchDEExportData(this.fetchAction, JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
} else {
const post: Promise<any> = this.service.search(this.fetchAction, JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post = this.service.search(this.fetchAction, JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
}
post.then((response: any) => {
if (!response || response.status !== 200) {
......
......@@ -91,7 +91,8 @@ export default class HRDistributionUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hrdistributions'});
this.allViewMap.set(':',{viewname:'v_001',srfappde:'hrdistributions'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hrdistributions'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'hrdistributions'});
this.allViewMap.set('EDITVIEW:',{viewname:'v_002',srfappde:'hrdistributions'});
}
/**
......
......@@ -89,8 +89,10 @@ export default class HREmployeeUIServiceBase extends UIService {
* @memberof HREmployeeUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'hremployees'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hremployees'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hremployees'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'hremployees'});
}
/**
......
......@@ -91,7 +91,8 @@ export default class HRPostRelUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set(':',{viewname:'v_001',srfappde:'hrpostrels'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hrpostrels'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hrpostrels'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'hrpostrels'});
this.allViewMap.set('EDITVIEW:',{viewname:'v_002',srfappde:'hrpostrels'});
}
/**
......
......@@ -89,8 +89,10 @@ export default class HRPostUIServiceBase extends UIService {
* @memberof HRPostUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'hrposts'});
this.allViewMap.set(':',{viewname:'v_003',srfappde:'hrposts'});
this.allViewMap.set(':',{viewname:'v_002',srfappde:'hrposts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'hrposts'});
this.allViewMap.set(':',{viewname:'v_004',srfappde:'hrposts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hrposts'});
this.allViewMap.set(':',{viewname:'v_001',srfappde:'hrposts'});
......
......@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected appDeName: string = 'hrdistribution';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected appDeLogicName: string = '工作人员分配';
/**
* 表单数据对象
*
......
......@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected appDeName: string = 'hrdistribution';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected appDeLogicName: string = '工作人员分配';
/**
* 界面UI服务对象
*
......@@ -73,11 +82,10 @@ export class MainEditFormBase extends EditFormControlBase {
srfuf: null,
srfdeid: null,
srfsourcekey: null,
hrdistributionname: null,
createman: null,
createdate: null,
updateman: null,
updatedate: null,
hremployeename: null,
begintime: null,
endtime: null,
hremployeeid: null,
hrdistributionid: null,
hrdistribution:null,
};
......@@ -89,6 +97,14 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public rules: any = {
hremployeename: [
{ required: true, type: 'string', message: '员工姓名 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '员工姓名 值不能为空', trigger: 'blur' },
],
begintime: [
{ required: true, type: 'string', message: '入职时间 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '入职时间 值不能为空', trigger: 'blur' },
],
}
/**
......@@ -107,14 +123,10 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '工作人员分配基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrdistribution.main_form', extractMode: 'ITEM', details: [] } }),
group1: new FormGroupPanelModel({ caption: '工作人员分配基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrdistribution.main_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hrdistribution.main_form', extractMode: 'ITEM', details: [] } }),
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
......@@ -131,18 +143,15 @@ export class MainEditFormBase extends EditFormControlBase {
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrdistributionname: new FormItemModel({ caption: '工作人员分配名称', detailType: 'FORMITEM', name: 'hrdistributionname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hremployeename: new FormItemModel({ caption: '员工姓名', detailType: 'FORMITEM', name: 'hremployeename', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
begintime: new FormItemModel({ caption: '入职时间', detailType: 'FORMITEM', name: 'begintime', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
endtime: new FormItemModel({ caption: '离职时间', detailType: 'FORMITEM', name: 'endtime', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hremployeeid: new FormItemModel({ caption: '员工标识', detailType: 'FORMITEM', name: 'hremployeeid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hrdistributionid: new FormItemModel({ caption: '工作人员分配标识', detailType: 'FORMITEM', name: 'hrdistributionid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
}
\ No newline at end of file
......@@ -56,29 +56,24 @@ export default class MainModel {
name: 'srfsourcekey',
},
{
name: 'hrdistributionname',
prop: 'hrdistributionname',
dataType: 'TEXT',
name: 'hremployeename',
prop: 'hremployeename',
dataType: 'PICKUPTEXT',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
name: 'begintime',
prop: 'begintime',
dataType: 'DATE',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
name: 'endtime',
prop: 'endtime',
dataType: 'DATE',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
name: 'hremployeeid',
prop: 'hremployeeid',
dataType: 'PICKUP',
},
{
name: 'hrdistributionid',
......
......@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import HRDistributionService from '@/service/hrdistribution/hrdistribution-service';
import MainModel from './main-form-model';
import HREmployeeService from '@/service/hremployee/hremployee-service';
/**
......@@ -41,6 +42,14 @@ export default class MainService extends ControlService {
this.model = new MainModel();
}
/**
* 员工服务对象
*
* @type {HREmployeeService}
* @memberof MainService
*/
public hremployeeService: HREmployeeService = new HREmployeeService();
/**
* 处理数据
*
......@@ -82,6 +91,9 @@ export default class MainService extends ControlService {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000;
if (Object.is(serviceName, 'HREmployeeService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.hremployeeService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'employeeid', 'hremployee');
}
return Promise.reject([])
}
......
<i-form :model="this.data" class='app-form' ref='form' id='hrdistribution_main' style="">
<input style="display:none;" />
<row >
<tabs :animated="false" size="small" name='main' :value="detailsModel.form.activiedPage"
@on-click="detailsModel.form.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='main' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hrdistribution.main_form.details.formpage1')
])
}">
<i-col class="form-layout-container" v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrdistribution.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrdistribution.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.hrdistributionname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='hrdistributionname' :itemRules="this.rules.hrdistributionname" class='' :caption="$t('entities.hrdistribution.main_form.details.hrdistributionname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hrdistributionname.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.hrdistributionname"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.hrdistributionname.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.hremployeename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='hremployeename' :itemRules="this.rules.hremployeename" class='' :caption="$t('entities.hrdistribution.main_form.details.hremployeename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hremployeename.error" :isEmptyCaption="false" labelPos="LEFT">
</row>
</app-form-group>
</i-col>
</tab-pane>
<tab-pane v-show="detailsModel.formpage2.visible" name='formpage2' :index="1" tab='main' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hrdistribution.main_form.details.formpage2')
])
}">
<i-col class="form-layout-container" v-show="detailsModel.group2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.group2" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrdistribution.main_form.details.group2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group2" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.createman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createman' :itemRules="this.rules.createman" class='' :caption="$t('entities.hrdistribution.main_form.details.createman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createman' :value="data.createman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.hremployeename.disabled"
name='hremployeename'
deMajorField='employeename'
deKeyField='hremployee'
:service="service"
:acParams="{ serviceName: 'HREmployeeService', interfaceName: 'FetchDefault'}"
valueitem='hremployeeid'
:value="data.hremployeename"
:pickupView="{ viewname: 'hremployee-pickup-view', title: $t('entities.hremployee.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hremployees', parameterName: 'hremployee' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules.createdate" class='' :caption="$t('entities.hrdistribution.main_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createdate' :value="data.createdate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col class="form-layout-container" v-show="detailsModel.begintime.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='begintime' :itemRules="this.rules.begintime" class='' :caption="$t('entities.hrdistribution.main_form.details.begintime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.begintime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.begintime" :disabled="detailsModel.begintime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.begintime = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.updateman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updateman' :itemRules="this.rules.updateman" class='' :caption="$t('entities.hrdistribution.main_form.details.updateman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updateman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updateman' :value="data.updateman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updatedate' :itemRules="this.rules.updatedate" class='' :caption="$t('entities.hrdistribution.main_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updatedate' :value="data.updatedate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col class="form-layout-container" v-show="detailsModel.endtime.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='endtime' :itemRules="this.rules.endtime" class='' :caption="$t('entities.hrdistribution.main_form.details.endtime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.endtime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.endtime" :disabled="detailsModel.endtime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.endtime = val1 }"></date-picker>
</app-form-item>
......@@ -98,7 +53,5 @@ tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewpa
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
\ No newline at end of file
......@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected appDeName: string = 'hrdistribution';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected appDeLogicName: string = '工作人员分配';
/**
* 界面UI服务对象
*
......
......@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected appDeName: string = 'hrduty';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected appDeLogicName: string = '职务';
/**
* 表单数据对象
*
......
......@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected appDeName: string = 'hrduty';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected appDeLogicName: string = '职务';
/**
* 界面UI服务对象
*
......
......@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected appDeName: string = 'hrduty';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected appDeLogicName: string = '职务';
/**
* 界面UI服务对象
*
......
......@@ -50,6 +50,15 @@ export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBas
*/
protected appDeName: string = 'hrduty';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected appDeLogicName: string = '职务';
/**
* 选中数据字符串
......
......@@ -51,6 +51,15 @@ export class DefaultSearchFormBase extends SearchFormControlBase {
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected appDeLogicName: string = '员工';
/**
* 表单数据对象
*
......
......@@ -49,6 +49,15 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected appDeLogicName: string = '员工';
/**
* 界面UI服务对象
*
......
......@@ -50,6 +50,15 @@ export class MainGridBase extends GridControlBase {
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof MainGridBase
*/
protected appDeLogicName: string = '员工';
/**
* 界面UI服务对象
*
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import PickupViewpickupviewpanelService from './pickup-viewpickupviewpanel-pickupviewpanel-service';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
import PickupViewpickupviewpanelModel from './pickup-viewpickupviewpanel-pickupviewpanel-model';
/**
* pickupviewpanel部件基类
*
* @export
* @class MainControlBase
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
export class PickupViewpickupviewpanelPickupviewpanelBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected controlType: string = 'PICKUPVIEWPANEL';
/**
* 建构部件服务对象
*
* @type {PickupViewpickupviewpanelService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public service: PickupViewpickupviewpanelService = new PickupViewpickupviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
public appEntityService: HREmployeeService = new HREmployeeService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof PickupViewpickupviewpanelPickupviewpanelBase
*/
protected appDeLogicName: string = '员工';
/**
* 选中数据字符串
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
@Prop() public selectedData?: string;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PickupViewpickupviewpanel
*/
public getData(): any {
return {};
}
/**
* 视图名称
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public view: any = {
viewname: 'hremployee-pickup-grid-view',
data: {},
}
/**
* 局部上下文
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public localViewParam: any = null;
/**
* 视图数据
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@Prop({default: true}) public isShowButton!: boolean;
/**
* 是否单选
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
@Prop() public isSingleSelect?: boolean;
/**
* 初始化完成
*
* @type {boolean}
* @memberof PickupViewpickupviewpanel
*/
public inited: boolean = false;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public onViewDatasChange($event: any): void {
if($event.length>0){
$event.forEach((item:any,index:any) => {
let srfmajortext = item['employeename'];
if(srfmajortext){
Object.assign($event[index],{srfmajortext: srfmajortext});
}
});
}
this.$emit('selectionchange', $event);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public viewDatasActivated($event: any): void {
this.$emit('activated', $event);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof PickupViewpickupviewpanel
*/
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.viewdata = JSON.stringify(this.context);
this.viewparam = JSON.stringify(Object.assign(data, this.viewparams));
this.inited = true;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof PickupViewpickupviewpanel
*/
public initNavParam(){
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);
}
/**
* vue 生命周期
*
* @memberof PickupViewpickupviewpanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PickupViewpickupviewpanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* PickupViewpickupviewpanel 部件模型
*
* @export
* @class PickupViewpickupviewpanelModel
*/
export default class PickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'employeename',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'hremployee',
prop: 'employeeid',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'organizationid',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* PickupViewpickupviewpanel 部件服务对象
*
* @export
* @class PickupViewpickupviewpanelService
*/
export default class PickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
<div class='pickupviewpanel'>
<component
v-if="inited && view.viewname && !Object.is(view.viewname, '')"
:is="view.viewname"
class="viewcontainer3"
:viewdata="viewdata"
:viewparam="viewparam"
:viewDefaultUsage="false"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
@viewdataschange="onViewDatasChange.apply(_self, arguments)"
@viewdatasactivated="viewDatasActivated.apply(_self, arguments)"
@viewload="onViewLoad.apply(_self, arguments)">
</component>
</div>
\ No newline at end of file
<template src="./pickup-viewpickupviewpanel-pickupviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { PickupViewpickupviewpanelPickupviewpanelBase } from './pickup-viewpickupviewpanel-pickupviewpanel-base';
/**
* pickupviewpanel部件
*
* @export
* @class PickupViewpickupviewpanelPickupviewpanel
* @extends {PickupViewpickupviewpanelPickupviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class PickupViewpickupviewpanelPickupviewpanel extends PickupViewpickupviewpanelPickupviewpanelBase { }
</script>
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册