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

jackwang 部署微服务应用

上级 9cd5b8a7
......@@ -19,6 +19,26 @@
"viewtag": "0d8ac739134947cc5f6545d4041024de",
"memo": ""
},
"hromhierarchycatgridview": {
"title": "结构层次类别表格视图",
"caption": "结构层次类别",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatGridView",
"viewfilename": "hromhierarchy-cat-grid-view",
"viewtag": "114f056047eddd92374e982356e59852",
"memo": ""
},
"hromhierarchycatv_002": {
"title": "结构层次类别编辑视图",
"caption": "结构层次类别",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatV_002",
"viewfilename": "hromhierarchy-cat-v-002",
"viewtag": "1316a3add8f01af03edf978ef21af6b1",
"memo": "系统自动添加"
},
"hrlegaldashboardview": {
"title": "法人数据看板",
"caption": "法人信息",
......@@ -29,6 +49,16 @@
"viewtag": "18769b2868ba1e27d9392575c10d6bfa",
"memo": ""
},
"hromhierarchygridview": {
"title": "组织层次结构表格视图",
"caption": "组织层次结构",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyGridView",
"viewfilename": "hromhierarchy-grid-view",
"viewtag": "188f3997d02da7fc34bac190ccd439e6",
"memo": ""
},
"hroperationunitv_002": {
"title": "运营单位信息编辑",
"caption": "运营单位",
......@@ -99,6 +129,16 @@
"viewtag": "49CD8BAE-D640-4816-8313-5D8609BB0041",
"memo": ""
},
"hromhierarchyeditview": {
"title": "组织层次结构编辑视图",
"caption": "组织层次结构",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyEditView",
"viewfilename": "hromhierarchy-edit-view",
"viewtag": "4a61d63445d504cab11cf5f45536b314",
"memo": "系统自动添加"
},
"hrorgcontactgridview": {
"title": "组织联系信息表格视图",
"caption": "组织联系信息",
......@@ -119,6 +159,26 @@
"viewtag": "7692fb3c8e0208004f100d2da5db17e0",
"memo": ""
},
"hromhierarchypickupview": {
"title": "组织层次结构数据选择视图",
"caption": "组织层次结构",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyPickupView",
"viewfilename": "hromhierarchy-pickup-view",
"viewtag": "7933350eca0f8dbcb5402928a860c4ec",
"memo": "系统自动添加"
},
"hromhierarchypickupgridview": {
"title": "组织层次结构选择表格视图",
"caption": "组织层次结构",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyPickupGridView",
"viewfilename": "hromhierarchy-pickup-grid-view",
"viewtag": "811880336a6c1c1beeb894c91404544b",
"memo": "系统自动添加"
},
"hrorgaddresseditview": {
"title": "组织地址编辑视图",
"caption": "组织地址",
......@@ -149,6 +209,16 @@
"viewtag": "9559258a9c3ac118e15ead941b780682",
"memo": ""
},
"hromhierarchycateditview": {
"title": "结构层次类别编辑视图",
"caption": "结构层次类别",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatEditView",
"viewfilename": "hromhierarchy-cat-edit-view",
"viewtag": "aa2c4d945f9d880dd836ebe74ca9f547",
"memo": "系统自动添加"
},
"hrlegalv_001": {
"title": "快速新建",
"caption": "快速新建",
......@@ -179,6 +249,16 @@
"viewtag": "b932c0eb66409c638c29ee27ba4fda37",
"memo": "系统自动添加"
},
"hromhierarchytreeexpview": {
"title": "组织层次结构树导航视图",
"caption": "组织层级结构",
"viewtype": "DETREEEXPVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyTreeExpView",
"viewfilename": "hromhierarchy-tree-exp-view",
"viewtag": "bf1effbdf9fb9d7d2a1c9d281ab35441",
"memo": ""
},
"hroperationunittabexpview": {
"title": "运营单位",
"caption": "运营单位",
......
......@@ -15,7 +15,7 @@ export interface HROMHierarchyCat {
omhierarchycatid?: any;
/**
* 结构层次类别名称
* 名称
*
* @returns {*}
* @memberof HROMHierarchyCat
......@@ -53,4 +53,12 @@ export interface HROMHierarchyCat {
* @memberof HROMHierarchyCat
*/
updatedate?: any;
/**
* 备注
*
* @returns {*}
* @memberof HROMHierarchyCat
*/
memo?: any;
}
\ No newline at end of file
......@@ -63,7 +63,7 @@ export interface HROMHierarchy {
organizationid?: any;
/**
* 父组织层次结构标识
* 上次层次结构标识
*
* @returns {*}
* @memberof HROMHierarchy
......@@ -77,4 +77,28 @@ export interface HROMHierarchy {
* @memberof HROMHierarchy
*/
hromhierarchycatid?: any;
/**
* 上级组织
*
* @returns {*}
* @memberof HROMHierarchy
*/
pomhierarchyname?: any;
/**
* 组织名称
*
* @returns {*}
* @memberof HROMHierarchy
*/
organizationname?: any;
/**
* 排序号
*
* @returns {*}
* @memberof HROMHierarchy
*/
showorder?: any;
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ export interface HROMHIERARCHYPURPOSE {
updatedate?: any;
/**
* 组织层次机构目的名称
* 用途
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
......@@ -31,7 +31,7 @@ export interface HROMHIERARCHYPURPOSE {
createman?: any;
/**
* 组织层次机构目的标识
* 组织层次机构应用标识
*
* @returns {*}
* @memberof HROMHIERARCHYPURPOSE
......
......@@ -140,7 +140,6 @@ export default {
menuitem4: "法人",
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "所有组织",
menuitem10: "职位",
menuitem11: "有效职位",
......
......@@ -140,7 +140,6 @@ export default {
menuitem4: "法人",
menuitem6: "运营单位",
menuitem7: "组织层次结构",
menuitem8: "组织层次结构应用",
menuitem9: "所有组织",
menuitem10: "职位",
menuitem11: "有效职位",
......
......@@ -60,10 +60,6 @@ export default {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -59,10 +59,6 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -2,10 +2,140 @@
export default {
fields: {
omhierarchycatid: "结构层次类别标识",
omhierarchycatname: "结构层次类别名称",
omhierarchycatname: "名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
memo: "备注",
},
views: {
gridview: {
caption: "结构层次类别",
title: "结构层次类别表格视图",
},
v_002: {
caption: "结构层次类别",
title: "结构层次类别编辑视图",
},
editview: {
caption: "结构层次类别",
title: "结构层次类别编辑视图",
},
},
main_form: {
details: {
group1: "结构层次类别信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "结构层次类别标识",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchycatname: "名称",
memo: "备注",
omhierarchycatid: "结构层次类别标识",
},
uiactions: {
},
},
ef_001_form: {
details: {
group1: "结构层次类别",
druipart1: "",
grouppanel1: "层次结构",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "结构层次类别标识",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchycatname: "名称",
memo: "备注",
omhierarchycatid: "结构层次类别标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
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: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
v_002toolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
export default {
fields: {
omhierarchycatid: "结构层次类别标识",
omhierarchycatname: "结构层次类别名称",
omhierarchycatname: "名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
memo: "备注",
},
views: {
gridview: {
caption: "结构层次类别",
title: "结构层次类别表格视图",
},
v_002: {
caption: "结构层次类别",
title: "结构层次类别编辑视图",
},
editview: {
caption: "结构层次类别",
title: "结构层次类别编辑视图",
},
},
main_form: {
details: {
group1: "结构层次类别信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "结构层次类别标识",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchycatname: "名称",
memo: "备注",
omhierarchycatid: "结构层次类别标识",
},
uiactions: {
},
},
ef_001_form: {
details: {
group1: "结构层次类别",
druipart1: "",
grouppanel1: "层次结构",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "结构层次类别标识",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchycatname: "名称",
memo: "备注",
omhierarchycatid: "结构层次类别标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
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: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
v_002toolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
......@@ -8,7 +8,166 @@ export default {
updateman: "更新人",
createman: "建立人",
organizationid: "组织",
pomhierarchyid: "父组织层次结构标识",
pomhierarchyid: "上次层次结构标识",
hromhierarchycatid: "结构层次类别标识",
pomhierarchyname: "上级组织",
organizationname: "组织名称",
showorder: "排序号",
},
views: {
gridview: {
caption: "组织层次结构",
title: "组织层次结构表格视图",
},
editview: {
caption: "组织层次结构",
title: "组织层次结构编辑视图",
},
pickupview: {
caption: "组织层次结构",
title: "组织层次结构数据选择视图",
},
pickupgridview: {
caption: "组织层次结构",
title: "组织层次结构选择表格视图",
},
treeexpview: {
caption: "组织层级结构",
title: "组织层次结构树导航视图",
},
},
main_form: {
details: {
group1: "组织层次结构基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "组织层次结构标识",
srfmajortext: "组织名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchyid: "组织层次结构标识",
},
uiactions: {
},
},
main_grid: {
columns: {
organizationname: "组织名称",
pomhierarchyname: "上级组织",
showorder: "排序号",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
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",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
tree_001_treeview: {
nodes: {
root: "默认根节点",
},
uiactions: {
},
},
};
\ No newline at end of file
......@@ -7,7 +7,166 @@ export default {
updateman: "更新人",
createman: "建立人",
organizationid: "组织",
pomhierarchyid: "父组织层次结构标识",
pomhierarchyid: "上次层次结构标识",
hromhierarchycatid: "结构层次类别标识",
pomhierarchyname: "上级组织",
organizationname: "组织名称",
showorder: "排序号",
},
views: {
gridview: {
caption: "组织层次结构",
title: "组织层次结构表格视图",
},
editview: {
caption: "组织层次结构",
title: "组织层次结构编辑视图",
},
pickupview: {
caption: "组织层次结构",
title: "组织层次结构数据选择视图",
},
pickupgridview: {
caption: "组织层次结构",
title: "组织层次结构选择表格视图",
},
treeexpview: {
caption: "组织层级结构",
title: "组织层次结构树导航视图",
},
},
main_form: {
details: {
group1: "组织层次结构基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "组织层次结构标识",
srfmajortext: "组织名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
omhierarchyid: "组织层次结构标识",
},
uiactions: {
},
},
main_grid: {
columns: {
organizationname: "组织名称",
pomhierarchyname: "上级组织",
showorder: "排序号",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
tree_001_treeview: {
nodes: {
root: "默认根节点",
},
uiactions: {
},
},
};
\ No newline at end of file
......@@ -2,9 +2,9 @@
export default {
fields: {
updatedate: "更新时间",
omhierarchypurposename: "组织层次机构目的名称",
omhierarchypurposename: "用途",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
omhierarchypurposeid: "组织层次机构应用标识",
createdate: "建立时间",
updateman: "更新人",
},
......
export default {
fields: {
updatedate: "更新时间",
omhierarchypurposename: "组织层次机构目的名称",
omhierarchypurposename: "用途",
createman: "建立人",
omhierarchypurposeid: "组织层次机构目的标识",
omhierarchypurposeid: "组织层次机构应用标识",
createdate: "建立时间",
updateman: "更新人",
},
......
......@@ -89,10 +89,6 @@ export default {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -88,10 +88,6 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -87,10 +87,6 @@ export default {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -86,10 +86,6 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -77,10 +77,6 @@ export default {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -76,10 +76,6 @@ export default {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
......
......@@ -208,28 +208,10 @@ mock.onGet('v7/pimappmenu').reply((config: any) => {
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-link',
iconcls: 'fa fa-signal',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
},
{
id: 'FE369EC4-CF71-49D9-A247-8572CFAB910E',
name: 'menuitem8',
text: '组织层次结构应用',
type: 'MENUITEM',
counterid: '',
tooltip: '组织层次结构应用',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-connectdevelop',
icon: '',
textcls: '',
appfunctag: '',
appfunctag: '_6',
resourcetag: '',
},
{
......
......@@ -23,6 +23,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROrganizationGridView",
"viewtag": "0d8ac739134947cc5f6545d4041024de"
},
"hromhierarchycatgridview": {
"title": "结构层次类别表格视图",
"caption": "结构层次类别",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatGridView",
"viewtag": "114f056047eddd92374e982356e59852"
},
"hromhierarchycatv_002": {
"title": "结构层次类别编辑视图",
"caption": "结构层次类别",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatV_002",
"viewtag": "1316a3add8f01af03edf978ef21af6b1"
},
"hrlegaldashboardview": {
"title": "法人数据看板",
"caption": "法人信息",
......@@ -31,6 +47,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HRLegalDashboardView",
"viewtag": "18769b2868ba1e27d9392575c10d6bfa"
},
"hromhierarchygridview": {
"title": "组织层次结构表格视图",
"caption": "组织层次结构",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyGridView",
"viewtag": "188f3997d02da7fc34bac190ccd439e6"
},
"hroperationunitv_002": {
"title": "运营单位信息编辑",
"caption": "运营单位",
......@@ -87,6 +111,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "PIM",
"viewtag": "49CD8BAE-D640-4816-8313-5D8609BB0041"
},
"hromhierarchyeditview": {
"title": "组织层次结构编辑视图",
"caption": "组织层次结构",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyEditView",
"viewtag": "4a61d63445d504cab11cf5f45536b314"
},
"hrorgcontactgridview": {
"title": "组织联系信息表格视图",
"caption": "组织联系信息",
......@@ -103,6 +135,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROrgContactV_001",
"viewtag": "7692fb3c8e0208004f100d2da5db17e0"
},
"hromhierarchypickupview": {
"title": "组织层次结构数据选择视图",
"caption": "组织层次结构",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyPickupView",
"viewtag": "7933350eca0f8dbcb5402928a860c4ec"
},
"hromhierarchypickupgridview": {
"title": "组织层次结构选择表格视图",
"caption": "组织层次结构",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyPickupGridView",
"viewtag": "811880336a6c1c1beeb894c91404544b"
},
"hrorgaddresseditview": {
"title": "组织地址编辑视图",
"caption": "组织地址",
......@@ -127,6 +175,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HREmployeeGridView",
"viewtag": "9559258a9c3ac118e15ead941b780682"
},
"hromhierarchycateditview": {
"title": "结构层次类别编辑视图",
"caption": "结构层次类别",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyCatEditView",
"viewtag": "aa2c4d945f9d880dd836ebe74ca9f547"
},
"hrlegalv_001": {
"title": "快速新建",
"caption": "快速新建",
......@@ -151,6 +207,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HREmployeeEditView",
"viewtag": "b932c0eb66409c638c29ee27ba4fda37"
},
"hromhierarchytreeexpview": {
"title": "组织层次结构树导航视图",
"caption": "组织层级结构",
"viewtype": "DETREEEXPVIEW",
"viewmodule": "Base",
"viewname": "HROMHierarchyTreeExpView",
"viewtag": "bf1effbdf9fb9d7d2a1c9d281ab35441"
},
"hroperationunittabexpview": {
"title": "运营单位",
"caption": "运营单位",
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import HROMHierarchyCatService from '@/service/hromhierarchy-cat/hromhierarchy-cat-service';
import HROMHierarchyCatAuthService from '@/authservice/hromhierarchy-cat/hromhierarchy-cat-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import HROMHierarchyCatUIService from '@/uiservice/hromhierarchy-cat/hromhierarchy-cat-ui-service';
/**
* 结构层次类别编辑视图视图基类
*
* @export
* @class HROMHierarchyCatEditViewBase
* @extends {EditViewBase}
*/
export class HROMHierarchyCatEditViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatEditViewBase
*/
protected appDeName: string = 'hromhierarchycat';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatEditViewBase
*/
protected appDeKey: string = 'omhierarchycatid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatEditViewBase
*/
protected appDeMajor: string = 'omhierarchycatname';
/**
* 实体服务对象
*
* @type {HROMHierarchyCatService}
* @memberof HROMHierarchyCatEditViewBase
*/
protected appEntityService: HROMHierarchyCatService = new HROMHierarchyCatService;
/**
* 实体权限服务对象
*
* @type HROMHierarchyCatUIService
* @memberof HROMHierarchyCatEditViewBase
*/
public appUIService: HROMHierarchyCatUIService = new HROMHierarchyCatUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HROMHierarchyCatEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HROMHierarchyCatEditViewBase
*/
protected model: any = {
srfCaption: 'entities.hromhierarchycat.views.editview.caption',
srfTitle: 'entities.hromhierarchycat.views.editview.title',
srfSubTitle: 'entities.hromhierarchycat.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HROMHierarchyCatEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HROMHierarchyCatEditView
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', caption: '关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '', class: '' } },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'aa2c4d945f9d880dd836ebe74ca9f547';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HROMHierarchyCatEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HROMHierarchyCatEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hromhierarchycat',
majorPSDEField: 'omhierarchycatname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatEditViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"HROMHierarchyCat");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"HROMHierarchyCat");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyCatEditViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyCatEditViewBase
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="hromhierarchycateditview" viewTitle="结构层次类别编辑视图" class='deeditview hromhierarchy-cat-edit-view'>
<template slot='title'>
<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_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-cat-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyCatEditViewBase } from './hromhierarchy-cat-edit-view-base';
import view_form from '@widgets/hromhierarchy-cat/main-form/main-form.vue';
/**
* 结构层次类别编辑视图视图
*
* @export
* @class HROMHierarchyCatEditView
* @extends {HROMHierarchyCatEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyCatEditView extends HROMHierarchyCatEditViewBase { }
</script>
<studio-view-style2 viewName="hromhierarchycatgridview" viewTitle="结构层次类别表格视图" class='degridview hromhierarchy-cat-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</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>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-cat-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyCatGridViewBase } from './hromhierarchy-cat-grid-view-base';
import view_grid from '@widgets/hromhierarchy-cat/main-grid/main-grid.vue';
import view_searchform from '@widgets/hromhierarchy-cat/default-searchform/default-searchform.vue';
/**
* 结构层次类别表格视图视图
*
* @export
* @class HROMHierarchyCatGridView
* @extends {HROMHierarchyCatGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyCatGridView extends HROMHierarchyCatGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import HROMHierarchyCatService from '@/service/hromhierarchy-cat/hromhierarchy-cat-service';
import HROMHierarchyCatAuthService from '@/authservice/hromhierarchy-cat/hromhierarchy-cat-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import HROMHierarchyCatUIService from '@/uiservice/hromhierarchy-cat/hromhierarchy-cat-ui-service';
/**
* 结构层次类别编辑视图视图基类
*
* @export
* @class HROMHierarchyCatV_002Base
* @extends {EditViewBase}
*/
export class HROMHierarchyCatV_002Base extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatV_002Base
*/
protected appDeName: string = 'hromhierarchycat';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatV_002Base
*/
protected appDeKey: string = 'omhierarchycatid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HROMHierarchyCatV_002Base
*/
protected appDeMajor: string = 'omhierarchycatname';
/**
* 实体服务对象
*
* @type {HROMHierarchyCatService}
* @memberof HROMHierarchyCatV_002Base
*/
protected appEntityService: HROMHierarchyCatService = new HROMHierarchyCatService;
/**
* 实体权限服务对象
*
* @type HROMHierarchyCatUIService
* @memberof HROMHierarchyCatV_002Base
*/
public appUIService: HROMHierarchyCatUIService = new HROMHierarchyCatUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HROMHierarchyCatV_002Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HROMHierarchyCatV_002Base
*/
protected model: any = {
srfCaption: 'entities.hromhierarchycat.views.v_002.caption',
srfTitle: 'entities.hromhierarchycat.views.v_002.title',
srfSubTitle: 'entities.hromhierarchycat.views.v_002.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HROMHierarchyCatV_002Base
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HROMHierarchyCatV_002
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
seperator1: { name: 'seperator1', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem2: { name: 'tbitem2', caption: '关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '', class: '' } },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '1316a3add8f01af03edf978ef21af6b1';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HROMHierarchyCatV_002Base
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HROMHierarchyCatV_002Base
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hromhierarchycat',
majorPSDEField: 'omhierarchycatname',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatV_002Base
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatV_002Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatV_002Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyCatV_002Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"HROMHierarchyCat");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"HROMHierarchyCat");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyCatV_002Base
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROMHierarchyCatV_002Base
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="hromhierarchycatv_002" viewTitle="结构层次类别编辑视图" class='deeditview hromhierarchy-cat-v-002'>
<template slot='title'>
<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_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-cat-v-002.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyCatV_002Base } from './hromhierarchy-cat-v-002-base';
import view_form from '@widgets/hromhierarchy-cat/ef-001-form/ef-001-form.vue';
/**
* 结构层次类别编辑视图视图
*
* @export
* @class HROMHierarchyCatV_002
* @extends {HROMHierarchyCatV_002Base}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyCatV_002 extends HROMHierarchyCatV_002Base { }
</script>
<studio-view-style2 viewName="hromhierarchyeditview" viewTitle="组织层次结构编辑视图" class='deeditview hromhierarchy-edit-view'>
<template slot='title'>
<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_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyEditViewBase } from './hromhierarchy-edit-view-base';
import view_form from '@widgets/hromhierarchy/main-form/main-form.vue';
/**
* 组织层次结构编辑视图视图
*
* @export
* @class HROMHierarchyEditView
* @extends {HROMHierarchyEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyEditView extends HROMHierarchyEditViewBase { }
</script>
<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>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="true"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave.apply(_self, arguments)"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
fetchAction="FetchDefault"
:newdata="newdata.bind(_self)"
:opendata="opendata.bind(_self)"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyGridViewBase } from './hromhierarchy-grid-view-base';
import view_grid from '@widgets/hromhierarchy/main-grid/main-grid.vue';
import view_searchform from '@widgets/hromhierarchy/default-searchform/default-searchform.vue';
/**
* 组织层次结构表格视图视图
*
* @export
* @class HROMHierarchyGridView
* @extends {HROMHierarchyGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyGridView extends HROMHierarchyGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import HROMHierarchyService from '@/service/hromhierarchy/hromhierarchy-service';
import HROMHierarchyAuthService from '@/authservice/hromhierarchy/hromhierarchy-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import HROMHierarchyUIService from '@/uiservice/hromhierarchy/hromhierarchy-ui-service';
/**
* 组织层次结构选择表格视图视图基类
*
* @export
* @class HROMHierarchyPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class HROMHierarchyPickupGridViewBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected appDeName: string = 'hromhierarchy';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected appDeKey: string = 'omhierarchyid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected appDeMajor: string = 'organizationname';
/**
* 实体服务对象
*
* @type {HROMHierarchyService}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected appEntityService: HROMHierarchyService = new HROMHierarchyService;
/**
* 实体权限服务对象
*
* @type HROMHierarchyUIService
* @memberof HROMHierarchyPickupGridViewBase
*/
public appUIService: HROMHierarchyUIService = new HROMHierarchyUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.hromhierarchy.views.pickupgridview.caption',
srfTitle: 'entities.hromhierarchy.views.pickupgridview.title',
srfSubTitle: 'entities.hromhierarchy.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '811880336a6c1c1beeb894c91404544b';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HROMHierarchyPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HROMHierarchyPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'hromhierarchy',
majorPSDEField: 'organizationname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof HROMHierarchyPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="hromhierarchypickupgridview" viewTitle="组织层次结构选择表格视图" class='depickupgridview hromhierarchy-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="./hromhierarchy-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyPickupGridViewBase } from './hromhierarchy-pickup-grid-view-base';
import view_grid from '@widgets/hromhierarchy/main-grid/main-grid.vue';
import view_searchform from '@widgets/hromhierarchy/default-searchform/default-searchform.vue';
/**
* 组织层次结构选择表格视图视图
*
* @export
* @class HROMHierarchyPickupGridView
* @extends {HROMHierarchyPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyPickupGridView extends HROMHierarchyPickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import HROMHierarchyService from '@/service/hromhierarchy/hromhierarchy-service';
import HROMHierarchyAuthService from '@/authservice/hromhierarchy/hromhierarchy-auth-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
import HROMHierarchyUIService from '@/uiservice/hromhierarchy/hromhierarchy-ui-service';
/**
* 组织层次结构数据选择视图视图基类
*
* @export
* @class HROMHierarchyPickupViewBase
* @extends {PickupViewBase}
*/
export class HROMHierarchyPickupViewBase extends PickupViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupViewBase
*/
protected appDeName: string = 'hromhierarchy';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupViewBase
*/
protected appDeKey: string = 'omhierarchyid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HROMHierarchyPickupViewBase
*/
protected appDeMajor: string = 'organizationname';
/**
* 实体服务对象
*
* @type {HROMHierarchyService}
* @memberof HROMHierarchyPickupViewBase
*/
protected appEntityService: HROMHierarchyService = new HROMHierarchyService;
/**
* 实体权限服务对象
*
* @type HROMHierarchyUIService
* @memberof HROMHierarchyPickupViewBase
*/
public appUIService: HROMHierarchyUIService = new HROMHierarchyUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HROMHierarchyPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HROMHierarchyPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.hromhierarchy.views.pickupview.caption',
srfTitle: 'entities.hromhierarchy.views.pickupview.title',
srfSubTitle: 'entities.hromhierarchy.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HROMHierarchyPickupViewBase
*/
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 = '7933350eca0f8dbcb5402928a860c4ec';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HROMHierarchyPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof HROMHierarchyPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'hromhierarchy',
majorPSDEField: 'organizationname',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HROMHierarchyPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="hromhierarchypickupview" viewTitle="组织层次结构数据选择视图" class='depickupview hromhierarchy-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="./hromhierarchy-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyPickupViewBase } from './hromhierarchy-pickup-view-base';
import view_pickupviewpanel from '@widgets/hromhierarchy/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 组织层次结构数据选择视图视图
*
* @export
* @class HROMHierarchyPickupView
* @extends {HROMHierarchyPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyPickupView extends HROMHierarchyPickupViewBase { }
</script>
<studio-view-style2 viewName="hromhierarchytreeexpview" viewTitle="组织层次结构树导航视图" class='detreeexpview hromhierarchy-tree-exp-view'>
<view_treeexpbar
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:viewUID="viewUID"
:newdata="newdata"
:opendata="opendata"
name="treeexpbar"
ref='treeexpbar'
@selectionchange="treeexpbar_selectionchange($event)"
@activated="treeexpbar_activated($event)"
@load="treeexpbar_load($event)"
@closeview="closeView($event)">
</view_treeexpbar>
</studio-view-style2>
\ No newline at end of file
<template src="./hromhierarchy-tree-exp-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HROMHierarchyTreeExpViewBase } from './hromhierarchy-tree-exp-view-base';
import view_treeexpbar from '@widgets/hromhierarchy/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.vue';
/**
* 组织层次结构树导航视图视图
*
* @export
* @class HROMHierarchyTreeExpView
* @extends {HROMHierarchyTreeExpViewBase}
*/
@Component({
components: {
view_treeexpbar,
}
})
@VueLifeCycleProcessing()
export default class HROMHierarchyTreeExpView extends HROMHierarchyTreeExpViewBase { }
</script>
......@@ -107,8 +107,6 @@ export class HROrgAddressGridViewBase extends GridViewBase {
tbitem4: { name: 'tbitem4', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } },
tbitem6: { name: 'tbitem6', caption: '拷贝', 'isShowCaption': true, 'isShowIcon': true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY', class: '' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } },
......@@ -178,9 +176,6 @@ export class HROrgAddressGridViewBase extends GridViewBase {
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
......@@ -345,34 +340,6 @@ export class HROrgAddressGridViewBase extends GridViewBase {
this.Edit(datas, contextJO,paramJO, $event, xData,this,"HROrgAddress");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"HROrgAddress");
}
/**
* 逻辑事件
*
......@@ -693,34 +660,6 @@ export class HROrgAddressGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROrgAddressGridViewBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { hrorgaddress: args[0].hrorgaddress });
}
if(!params) params = {};
Object.assign(params,{copymode:true});
_this.opendata([{ ...data }], params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 行编辑
*
......
......@@ -107,8 +107,6 @@ export class HROrgContactGridViewBase extends GridViewBase {
tbitem4: { name: 'tbitem4', caption: '编辑', 'isShowCaption': true, 'isShowIcon': true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY', class: '' } },
tbitem6: { name: 'tbitem6', caption: '拷贝', 'isShowCaption': true, 'isShowIcon': true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY', class: '' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem8: { name: 'tbitem8', caption: '删除', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY', class: '' } },
......@@ -178,9 +176,6 @@ export class HROrgContactGridViewBase extends GridViewBase {
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
......@@ -345,34 +340,6 @@ export class HROrgContactGridViewBase extends GridViewBase {
this.Edit(datas, contextJO,paramJO, $event, xData,this,"HROrgContact");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"HROrgContact");
}
/**
* 逻辑事件
*
......@@ -693,34 +660,6 @@ export class HROrgContactGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HROrgContactGridViewBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { hrorgcontact: args[0].hrorgcontact });
}
if(!params) params = {};
Object.assign(params,{copymode:true});
_this.opendata([{ ...data }], params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 行编辑
*
......
......@@ -31,7 +31,7 @@ export default class HROMHierarchyServiceBase extends EntityService {
this.APPLYDEKEY ='hromhierarchy';
this.APPDEKEY = 'omhierarchyid';
this.APPDENAME = 'hromhierarchies';
this.APPDETEXT = 'omhierarchyname';
this.APPDETEXT = 'organizationname';
this.APPNAME = 'pim';
this.SYSTEMNAME = 'ibizhumanresources';
}
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册