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

lab_qyk 部署微服务应用

上级 59583ce1
......@@ -63,6 +63,14 @@
"viewname": "IBZOrganizationTreeExpView",
"viewtag": "25e23f456601163e730de6c1a825364b"
},
"ibzteamgridview": {
"title": "组表格视图",
"caption": "组",
"viewtype": "DEGRIDVIEW",
"viewmodule": "ou",
"viewname": "IBZTeamGridView",
"viewtag": "364460c8f6afc2c459f8857a6d228b1a"
},
"ibzorganizationpickupgridview": {
"title": "单位机构选择表格视图",
"caption": "单位机构",
......@@ -95,6 +103,14 @@
"viewname": "IBZDepartmentPickupGridView",
"viewtag": "66fa282d24a21eec39d958e7fc6c23a8"
},
"ibzteameditview": {
"title": "组编辑视图",
"caption": "组",
"viewtype": "DEEDITVIEW",
"viewmodule": "ou",
"viewname": "IBZTeamEditView",
"viewtag": "7eef7d5d59785f49c66786ad4ba827b0"
},
"ibzdepartmentmpickupview": {
"title": "部门数据多项选择视图",
"caption": "部门",
......@@ -191,6 +207,22 @@
"viewname": "IBZDepartmentGridView",
"viewtag": "d2cc126cb4bcf523d72509bef0183ee0"
},
"ibzpostgridview": {
"title": "岗位表格视图",
"caption": "岗位",
"viewtype": "DEGRIDVIEW",
"viewmodule": "ou",
"viewname": "IBZPostGridView",
"viewtag": "e87180c121ce75a22893d5e3ce0951fc"
},
"ibzposteditview": {
"title": "岗位编辑视图",
"caption": "岗位",
"viewtype": "DEEDITVIEW",
"viewmodule": "ou",
"viewname": "IBZPostEditView",
"viewtag": "f12a26ca0dafa7b439840dbc629c07cc"
},
"ibzemployeepickupgridview": {
"title": "人员选择表格视图",
"caption": "人员",
......
......@@ -4,7 +4,7 @@
<template v-if="Object.is(this.navModel,'route')">
<el-breadcrumb-item v-for="(item, index) in breadcrumbs" :key="item.id">
<span v-if="index === breadcrumbs.length-1" class="no-redirect">{{ item.title }}
<span v-if="item.isselected === true">
<span v-if="isShowSelected(item)">
<dropdown trigger='click' @on-click="selectNavData($event,item)">
<span class="app-breadcrumb-selected">
<i class="el-icon-caret-bottom"></i>
......@@ -195,6 +195,15 @@ export default class Breadcrumb extends Vue {
}
}
/**
* 是否显示下拉列表
*
* @memberof Breadcrumb
*/
public isShowSelected(item:any){
return item.isselected && !this.$util.isEmpty(item.srfkey);
}
}
</script>
......
......@@ -103,7 +103,7 @@ export default class EditViewEngine extends ViewEngine {
public onFormLoad(arg: any): void {
this.view.model.dataInfo = Object.is(arg.srfuf, '1') ? (this.majorPSDEField?arg[this.majorPSDEField]:arg.srfmajortext) : this.view.$t('app.local.new');
this.setTabCaption(this.view.model.dataInfo);
this.setTabCaption(this.view.model.dataInfo,Object.is(arg.srfuf, '0'));
const newdata: boolean = !Object.is(arg.srfuf, '1');
this.calcToolbarItemState(newdata);
}
......@@ -117,7 +117,7 @@ export default class EditViewEngine extends ViewEngine {
public onFormSave(arg: any): void {
this.view.model.dataInfo = Object.is(arg.srfuf, '1') ? (this.majorPSDEField?arg[this.majorPSDEField]:arg.srfmajortext) : this.view.$t('app.local.new');
this.setTabCaption(this.view.model.dataInfo);
this.setTabCaption(this.view.model.dataInfo,Object.is(arg.srfuf, '0'));
const newdata: boolean = !Object.is(arg.srfuf, '1');
this.calcToolbarItemState(newdata);
this.view.$emit('save',arg);
......@@ -245,7 +245,7 @@ export default class EditViewEngine extends ViewEngine {
*
* @memberof EditViewEngine
*/
public setTabCaption(info: string): void {
public setTabCaption(info: string,isNew:boolean): void {
let viewdata: any = this.view.model;
let index:number = viewdata.srfTitle.indexOf("-");
if (viewdata && info && !Object.is(info, '')) {
......@@ -259,7 +259,7 @@ export default class EditViewEngine extends ViewEngine {
this.view.$route.meta.info = info;
}
this.view.model.srfTitle = `${this.view.$t(viewdata.srfTitle)}-${viewdata.dataInfo}`;
this.view.initNavDataWithRoute();
this.view.initNavDataWithRoute(null,isNew);
}
}
......
......@@ -3,6 +3,7 @@ import ibzteammember_en_US from '@locale/lanres/entities/ibzteam-member/ibzteam-
import ibzdepartment_en_US from '@locale/lanres/entities/ibzdepartment/ibzdepartment_en_US';
import ibzemployee_en_US from '@locale/lanres/entities/ibzemployee/ibzemployee_en_US';
import ibzorganization_en_US from '@locale/lanres/entities/ibzorganization/ibzorganization_en_US';
import ibzpost_en_US from '@locale/lanres/entities/ibzpost/ibzpost_en_US';
import ibzteam_en_US from '@locale/lanres/entities/ibzteam/ibzteam_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
......@@ -67,6 +68,8 @@ export default {
menuitem1: "单位管理",
menuitem2: "部门管理",
menuitem3: "人员管理",
menuitem4: "岗位管理",
menuitem5: "组管理",
},
},
},
......@@ -76,6 +79,7 @@ export default {
ibzdepartment: ibzdepartment_en_US,
ibzemployee: ibzemployee_en_US,
ibzorganization: ibzorganization_en_US,
ibzpost: ibzpost_en_US,
ibzteam: ibzteam_en_US,
},
components: components_en_US,
......
......@@ -3,6 +3,7 @@ import ibzteammember_zh_CN from '@locale/lanres/entities/ibzteam-member/ibzteam-
import ibzdepartment_zh_CN from '@locale/lanres/entities/ibzdepartment/ibzdepartment_zh_CN';
import ibzemployee_zh_CN from '@locale/lanres/entities/ibzemployee/ibzemployee_zh_CN';
import ibzorganization_zh_CN from '@locale/lanres/entities/ibzorganization/ibzorganization_zh_CN';
import ibzpost_zh_CN from '@locale/lanres/entities/ibzpost/ibzpost_zh_CN';
import ibzteam_zh_CN from '@locale/lanres/entities/ibzteam/ibzteam_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
......@@ -67,6 +68,8 @@ export default {
menuitem1: "单位管理",
menuitem2: "部门管理",
menuitem3: "人员管理",
menuitem4: "岗位管理",
menuitem5: "组管理",
},
},
},
......@@ -76,6 +79,7 @@ export default {
ibzdepartment: ibzdepartment_zh_CN,
ibzemployee: ibzemployee_zh_CN,
ibzorganization: ibzorganization_zh_CN,
ibzpost: ibzpost_zh_CN,
ibzteam: ibzteam_zh_CN,
},
components: components_zh_CN,
......
export default {
fields: {
postid: "岗位标识",
postcode: "岗位编码",
postname: "岗位名称",
domains: "区属",
memo: "备注",
},
views: {
gridview: {
caption: "岗位",
title: "岗位表格视图",
},
editview: {
caption: "岗位",
title: "岗位编辑视图",
},
},
main_form: {
details: {
group1: "岗位基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srforikey: "",
srfkey: "岗位标识",
srfmajortext: "岗位名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
postid: "岗位标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {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",
tip: "Save",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
};
\ No newline at end of file
export default {
fields: {
postid: "岗位标识",
postcode: "岗位编码",
postname: "岗位名称",
domains: "区属",
memo: "备注",
},
views: {
gridview: {
caption: "岗位",
title: "岗位表格视图",
},
editview: {
caption: "岗位",
title: "岗位编辑视图",
},
},
main_form: {
details: {
group1: "岗位基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srforikey: "",
srfkey: "岗位标识",
srfmajortext: "岗位名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
postid: "岗位标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除",
tip: "删除",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
},
};
\ No newline at end of file
......@@ -6,4 +6,99 @@ export default {
memo: "备注",
domains: "区属",
},
views: {
gridview: {
caption: "组",
title: "组表格视图",
},
editview: {
caption: "组",
title: "组编辑视图",
},
},
main_form: {
details: {
group1: "组基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "组标识",
srfmajortext: "组名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
teamid: "组标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {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",
tip: "Save",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
};
\ No newline at end of file
......@@ -5,4 +5,99 @@ export default {
memo: "备注",
domains: "区属",
},
views: {
gridview: {
caption: "组",
title: "组表格视图",
},
editview: {
caption: "组",
title: "组编辑视图",
},
},
main_form: {
details: {
group1: "组基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "组标识",
srfmajortext: "组名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
teamid: "组标识",
},
uiactions: {
},
},
main_grid: {
columns: {
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除",
tip: "删除",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
},
};
\ No newline at end of file
......@@ -63,6 +63,42 @@ mock.onGet('v7/ouindex-viewappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto4',
resourcetag: '',
},
{
id: 'BF61871D-B5F5-4633-B6BA-30A66DE710BB',
name: 'menuitem4',
text: '岗位管理',
type: 'MENUITEM',
counterid: '',
tooltip: '岗位管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-simplybuilt',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
{
id: '3EE7101C-7039-4836-8AB7-81C0CAD3C288',
name: 'menuitem5',
text: '组管理',
type: 'MENUITEM',
counterid: '',
tooltip: '组管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-group',
icon: '',
textcls: '',
appfunctag: '_3',
resourcetag: '',
},
],
}];
......
此差异已折叠。
......@@ -12,4 +12,5 @@ import './entity/ibzteam-members/ibzteam-members';
import './entity/ibzdepartments/ibzdepartments';
import './entity/ibzemployees/ibzemployees';
import './entity/ibzorganizations/ibzorganizations';
import './entity/ibzposts/ibzposts';
import './entity/ibzteams/ibzteams';
......@@ -71,6 +71,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBZOrganizationTreeExpView",
"viewtag": "25e23f456601163e730de6c1a825364b"
},
"ibzteamgridview": {
"title": "组表格视图",
"caption": "组",
"viewtype": "DEGRIDVIEW",
"viewmodule": "ou",
"viewname": "IBZTeamGridView",
"viewtag": "364460c8f6afc2c459f8857a6d228b1a"
},
"ibzorganizationpickupgridview": {
"title": "单位机构选择表格视图",
"caption": "单位机构",
......@@ -103,6 +111,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBZDepartmentPickupGridView",
"viewtag": "66fa282d24a21eec39d958e7fc6c23a8"
},
"ibzteameditview": {
"title": "组编辑视图",
"caption": "组",
"viewtype": "DEEDITVIEW",
"viewmodule": "ou",
"viewname": "IBZTeamEditView",
"viewtag": "7eef7d5d59785f49c66786ad4ba827b0"
},
"ibzdepartmentmpickupview": {
"title": "部门数据多项选择视图",
"caption": "部门",
......@@ -199,6 +215,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBZDepartmentGridView",
"viewtag": "d2cc126cb4bcf523d72509bef0183ee0"
},
"ibzpostgridview": {
"title": "岗位表格视图",
"caption": "岗位",
"viewtype": "DEGRIDVIEW",
"viewmodule": "ou",
"viewname": "IBZPostGridView",
"viewtag": "e87180c121ce75a22893d5e3ce0951fc"
},
"ibzposteditview": {
"title": "岗位编辑视图",
"caption": "岗位",
"viewtype": "DEEDITVIEW",
"viewmodule": "ou",
"viewname": "IBZPostEditView",
"viewtag": "f12a26ca0dafa7b439840dbc629c07cc"
},
"ibzemployeepickupgridview": {
"title": "人员选择表格视图",
"caption": "人员",
......
......@@ -469,9 +469,9 @@ export default class IBZDepartmentEditViewBase extends Vue {
*
* @memberof IBZDepartmentEditViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-edit-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -527,9 +527,9 @@ export default class IBZDepartmentGridViewBase extends Vue {
*
* @memberof IBZDepartmentGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-grid-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -460,9 +460,9 @@ export default class IBZDepartmentMPickupViewBase extends Vue {
*
* @memberof IBZDepartmentMPickupViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-mpickup-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-mpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -432,9 +432,9 @@ export default class IBZDepartmentOptionViewBase extends Vue {
*
* @memberof IBZDepartmentOptionViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-option-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-option-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -434,9 +434,9 @@ export default class IBZDepartmentPickupGridViewBase extends Vue {
*
* @memberof IBZDepartmentPickupGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-pickup-grid-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-pickup-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -427,9 +427,9 @@ export default class IBZDepartmentPickupViewBase extends Vue {
*
* @memberof IBZDepartmentPickupViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-pickup-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-pickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -417,9 +417,9 @@ export default class IBZDepartmentTreeExpViewBase extends Vue {
*
* @memberof IBZDepartmentTreeExpViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdepartment-tree-exp-view',tag:this.viewtag,srfkey:this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdepartment-tree-exp-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdepartment,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -469,9 +469,9 @@ export default class IBZDeptMemberEditViewBase extends Vue {
*
* @memberof IBZDeptMemberEditViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdept-member-edit-view',tag:this.viewtag,srfkey:this.context.ibzdeptmember,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdept-member-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdeptmember,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -487,9 +487,9 @@ export default class IBZDeptMemberGridViewBase extends Vue {
*
* @memberof IBZDeptMemberGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzdept-member-grid-view',tag:this.viewtag,srfkey:this.context.ibzdeptmember,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzdept-member-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzdeptmember,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -469,9 +469,9 @@ export default class IBZEmployeeEditViewBase extends Vue {
*
* @memberof IBZEmployeeEditViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-edit-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -537,9 +537,9 @@ export default class IBZEmployeeGridViewBase extends Vue {
*
* @memberof IBZEmployeeGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-grid-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -460,9 +460,9 @@ export default class IBZEmployeeMPickupViewBase extends Vue {
*
* @memberof IBZEmployeeMPickupViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-mpickup-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-mpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -432,9 +432,9 @@ export default class IBZEmployeeOptionViewBase extends Vue {
*
* @memberof IBZEmployeeOptionViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-option-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-option-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -434,9 +434,9 @@ export default class IBZEmployeePickupGridViewBase extends Vue {
*
* @memberof IBZEmployeePickupGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-pickup-grid-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-pickup-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -427,9 +427,9 @@ export default class IBZEmployeePickupViewBase extends Vue {
*
* @memberof IBZEmployeePickupViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzemployee-pickup-view',tag:this.viewtag,srfkey:this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzemployee-pickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzemployee,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -469,9 +469,9 @@ export default class IBZOrganizationEditViewBase extends Vue {
*
* @memberof IBZOrganizationEditViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-edit-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -530,9 +530,9 @@ export default class IBZOrganizationGridViewBase extends Vue {
*
* @memberof IBZOrganizationGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-grid-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -432,9 +432,9 @@ export default class IBZOrganizationOptionViewBase extends Vue {
*
* @memberof IBZOrganizationOptionViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-option-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-option-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -434,9 +434,9 @@ export default class IBZOrganizationPickupGridViewBase extends Vue {
*
* @memberof IBZOrganizationPickupGridViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-pickup-grid-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-pickup-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -427,9 +427,9 @@ export default class IBZOrganizationPickupViewBase extends Vue {
*
* @memberof IBZOrganizationPickupViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-pickup-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-pickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -417,9 +417,9 @@ export default class IBZOrganizationTreeExpViewBase extends Vue {
*
* @memberof IBZOrganizationTreeExpViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ibzorganization-tree-exp-view',tag:this.viewtag,srfkey:this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ibzorganization-tree-exp-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibzorganization,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -408,9 +408,9 @@ export default class OUIndexViewBase extends Vue {
*
* @memberof OUIndexViewBase
*/
public initNavDataWithRoute(data:any = null){
public initNavDataWithRoute(data:any = null, isNew:boolean = false){
if(this.viewDefaultUsage && Object.is(this.navModel,"route")){
this.navDataService.addNavData({id:'ouindex-view',tag:this.viewtag,srfkey:null,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'ouindex-view',tag:this.viewtag,srfkey:isNew ? null : null,title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibzemployee-edit-view', () => import('@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'));
Vue.component('ibzdepartment-option-view', () => import('@pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.vue'));
Vue.component('ibzdepartment-option-view', () => import('@pages/ou/ibzdepartment-option-view/ibzdepartment-option-view.vue'));
Vue.component('ibzemployee-grid-view', () => import('@pages/ou/ibzemployee-grid-view/ibzemployee-grid-view.vue'));
Vue.component('ibzdept-member-grid-view', () => import('@pages/ou/ibzdept-member-grid-view/ibzdept-member-grid-view.vue'));
Vue.component('ibzpost-grid-view', () => import('@pages/ou/ibzpost-grid-view/ibzpost-grid-view.vue'));
Vue.component('ibzorganization-tree-exp-view', () => import('@pages/ou/ibzorganization-tree-exp-view/ibzorganization-tree-exp-view.vue'));
Vue.component('ibzdepartment-edit-view', () => import('@pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view.vue'));
Vue.component('ibzemployee-pickup-view', () => import('@pages/ou/ibzemployee-pickup-view/ibzemployee-pickup-view.vue'));
Vue.component('ibzdept-member-edit-view', () => import('@pages/ou/ibzdept-member-edit-view/ibzdept-member-edit-view.vue'));
Vue.component('ibzorganization-pickup-view', () => import('@pages/ou/ibzorganization-pickup-view/ibzorganization-pickup-view.vue'));
Vue.component('ibzteam-grid-view', () => import('@pages/ou/ibzteam-grid-view/ibzteam-grid-view.vue'));
Vue.component('ibzteam-edit-view', () => import('@pages/ou/ibzteam-edit-view/ibzteam-edit-view.vue'));
Vue.component('ibzemployee-edit-view', () => import('@pages/ou/ibzemployee-edit-view/ibzemployee-edit-view.vue'));
Vue.component('ibzdepartment-pickup-grid-view', () => import('@pages/ou/ibzdepartment-pickup-grid-view/ibzdepartment-pickup-grid-view.vue'));
Vue.component('ibzorganization-option-view', () => import('@pages/ou/ibzorganization-option-view/ibzorganization-option-view.vue'));
Vue.component('ibzemployee-grid-view', () => import('@pages/ou/ibzemployee-grid-view/ibzemployee-grid-view.vue'));
Vue.component('ibzorganization-pickup-grid-view', () => import('@pages/ou/ibzorganization-pickup-grid-view/ibzorganization-pickup-grid-view.vue'));
Vue.component('ibzdepartment-grid-view', () => import('@pages/ou/ibzdepartment-grid-view/ibzdepartment-grid-view.vue'));
Vue.component('ibzorganization-grid-view', () => import('@pages/ou/ibzorganization-grid-view/ibzorganization-grid-view.vue'));
Vue.component('ibzemployee-mpickup-view', () => import('@pages/ou/ibzemployee-mpickup-view/ibzemployee-mpickup-view.vue'));
Vue.component('ibzorganization-edit-view', () => import('@pages/ou/ibzorganization-edit-view/ibzorganization-edit-view.vue'));
Vue.component('ibzdept-member-grid-view', () => import('@pages/ou/ibzdept-member-grid-view/ibzdept-member-grid-view.vue'));
Vue.component('ibzorganization-tree-exp-view', () => import('@pages/ou/ibzorganization-tree-exp-view/ibzorganization-tree-exp-view.vue'));
Vue.component('ibzemployee-pickup-grid-view', () => import('@pages/ou/ibzemployee-pickup-grid-view/ibzemployee-pickup-grid-view.vue'));
Vue.component('ibzdepartment-edit-view', () => import('@pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view.vue'));
Vue.component('ibzemployee-pickup-view', () => import('@pages/ou/ibzemployee-pickup-view/ibzemployee-pickup-view.vue'));
Vue.component('ibzdepartment-mpickup-view', () => import('@pages/ou/ibzdepartment-mpickup-view/ibzdepartment-mpickup-view.vue'));
Vue.component('ibzdept-member-edit-view', () => import('@pages/ou/ibzdept-member-edit-view/ibzdept-member-edit-view.vue'));
Vue.component('ibzorganization-pickup-view', () => import('@pages/ou/ibzorganization-pickup-view/ibzorganization-pickup-view.vue'));
Vue.component('ibzemployee-option-view', () => import('@pages/ou/ibzemployee-option-view/ibzemployee-option-view.vue'));
Vue.component('ibzpost-edit-view', () => import('@pages/ou/ibzpost-edit-view/ibzpost-edit-view.vue'));
Vue.component('ibzdepartment-tree-exp-view', () => import('@pages/ou/ibzdepartment-tree-exp-view/ibzdepartment-tree-exp-view.vue'));
Vue.component('ibzemployee-option-view', () => import('@pages/ou/ibzemployee-option-view/ibzemployee-option-view.vue'));
Vue.component('ibzdepartment-pickup-view', () => import('@pages/ou/ibzdepartment-pickup-view/ibzdepartment-pickup-view.vue'));
}
};
\ No newline at end of file
......@@ -44,6 +44,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibzdepartment', () => import('@/service/ibzdepartment/ibzdepartment-service'));
this.allEntityService.set('ibzemployee', () => import('@/service/ibzemployee/ibzemployee-service'));
this.allEntityService.set('ibzorganization', () => import('@/service/ibzorganization/ibzorganization-service'));
this.allEntityService.set('ibzpost', () => import('@/service/ibzpost/ibzpost-service'));
this.allEntityService.set('ibzteam', () => import('@/service/ibzteam/ibzteam-service'));
}
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 岗位服务对象基类
*
* @export
* @class IBZPostServiceBase
* @extends {EntityServie}
*/
export default class IBZPostServiceBase extends EntityService {
/**
* Creates an instance of IBZPostServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZPostServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof IBZPostServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='ibzpost';
this.APPDEKEY = 'postid';
this.APPDENAME = 'ibzposts';
this.APPDETEXT = 'postname';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzou';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/ibzposts/${context.ibzpost}/select`,isloading);
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibzposts/${context.ibzpost}`,data,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibzposts/getdraft`,isloading);
res.data.ibzpost = data.ibzpost;
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibzposts/${context.ibzpost}/save`,data,isloading);
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/ibzposts/${context.ibzpost}/checkkey`,data,isloading);
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/ibzposts/${context.ibzpost}`,isloading);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibzposts/${context.ibzpost}`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/ibzposts`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBZPostServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/ibzposts/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import IBZPostServiceBase from './ibzpost-service-base';
/**
* 岗位服务对象
*
* @export
* @class IBZPostService
* @extends {IBZPostServiceBase}
*/
export default class IBZPostService extends IBZPostServiceBase {
/**
* Creates an instance of IBZPostService.
*
* @param {*} [opts={}]
* @memberof IBZPostService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -3,18 +3,6 @@
*/
export const viewstate: any = {
appviews: [
{
viewtag: '0c24f382fdfded375e4ef737707fdd80',
viewmodule: 'ou',
viewname: 'IBZEmployeeEditGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'16f9ed1179f9b3cf686cbcd796512299',
'9e25d15d43ff644fa008c9cf7d063ac3',
'b59db4df07430a34645566a64d59244c',
],
},
{
viewtag: '12cffa053a1d3e22ab397b1164338cfb',
viewmodule: 'ou',
......@@ -70,17 +58,6 @@ export const viewstate: any = {
'61a772e0bde33e5e8e9b83ea0f354271',
],
},
{
viewtag: '230a2347ac7bca8734046b14777bc258',
viewmodule: 'ou',
viewname: 'IBZDepartmentEditGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'21259e2d03645750f1d3d71839f1223b',
'b59db4df07430a34645566a64d59244c',
],
},
{
viewtag: '25e23f456601163e730de6c1a825364b',
viewmodule: 'ou',
......@@ -180,7 +157,9 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'e87180c121ce75a22893d5e3ce0951fc',
'25e23f456601163e730de6c1a825364b',
'364460c8f6afc2c459f8857a6d228b1a',
'cace6f75674cff323d90d670e609aa21',
'9ed83d4d91fedf510a43bbe8908a21ba',
],
......@@ -195,15 +174,6 @@ export const viewstate: any = {
'66fa282d24a21eec39d958e7fc6c23a8',
],
},
{
viewtag: 'b752aab6603d699de44f7dc2c8164b9c',
viewmodule: 'ou',
viewname: 'IBZEmployeeChangePwdView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'bf9108c85aaa6f3d2498f87b2439b9df',
viewmodule: 'ou',
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBZPostService from '@/service/ibzpost/ibzpost-service';
/**
* 岗位UI服务对象基类
*
* @export
* @class IBZPostUIServiceBase
*/
export default class IBZPostUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof IBZPostUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBZPostUIServiceBase
*/
public dataService:IBZPostService = new IBZPostService();
/**
* 所有关联视图
*
* @memberof IBZPostUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof IBZPostUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof IBZPostUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof IBZPostUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof IBZPostUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of IBZPostUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZPostUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof IBZPostUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibzposts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibzposts'});
}
/**
* 初始化主状态集合
*
* @memberof IBZPostUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBZPostUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({ibzpost:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof IBZPostUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBZPostUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBZPostUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import IBZPostUIServiceBase from './ibzpost-ui-service-base';
/**
* 岗位UI服务对象
*
* @export
* @class IBZPostUIService
*/
export default class IBZPostUIService extends IBZPostUIServiceBase {
/**
* Creates an instance of IBZPostUIService.
*
* @param {*} [opts={}]
* @memberof IBZPostUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -79,6 +79,8 @@ export default class IBZTeamUIServiceBase extends UIService {
* @memberof IBZTeamUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibzteams'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibzteams'});
}
/**
......
......@@ -44,6 +44,7 @@ export class UIServiceRegister {
this.allUIService.set('ibzdepartment', () => import('@/uiservice/ibzdepartment/ibzdepartment-ui-service'));
this.allUIService.set('ibzemployee', () => import('@/uiservice/ibzemployee/ibzemployee-ui-service'));
this.allUIService.set('ibzorganization', () => import('@/uiservice/ibzorganization/ibzorganization-ui-service'));
this.allUIService.set('ibzpost', () => import('@/uiservice/ibzpost/ibzpost-ui-service'));
this.allUIService.set('ibzteam', () => import('@/uiservice/ibzteam/ibzteam-ui-service'));
}
......
......@@ -580,12 +580,18 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
navDataService.removeNavData(this.viewtag);
}
switch (item.appfunctag) {
case '_2':
this.click_2(item);
return;
case 'Auto5':
this.clickAuto5(item);
return;
case 'Auto3':
this.clickAuto3(item);
return;
case '_3':
this.click_3(item);
return;
case 'Auto4':
this.clickAuto4(item);
return;
......@@ -596,6 +602,29 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
}
/**
* 岗位管理
*
* @param {*} [item={}]
* @memberof OUIndexView
*/
public click_2(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibzposts', parameterName: 'ibzpost' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 组织树
*
......@@ -642,6 +671,29 @@ export default class OUIndexViewBase extends Vue implements ControlInterface {
})
}
/**
* 组管理
*
* @param {*} [item={}]
* @memberof OUIndexView
*/
public click_3(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibzteams', parameterName: 'ibzteam' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 部门树
*
......
......@@ -70,6 +70,44 @@ export default class OUIndexViewModel {
appfunctag: 'Auto4',
resourcetag: '',
authtag:'web-OUIndexView-menuitem3',
},
{
id: 'BF61871D-B5F5-4633-B6BA-30A66DE710BB',
name: 'menuitem4',
text: '岗位管理',
type: 'MENUITEM',
counterid: '',
tooltip: '岗位管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-simplybuilt',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
authtag:'web-OUIndexView-menuitem4',
},
{
id: '3EE7101C-7039-4836-8AB7-81C0CAD3C288',
name: 'menuitem5',
text: '组管理',
type: 'MENUITEM',
counterid: '',
tooltip: '组管理',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-group',
icon: '',
textcls: '',
appfunctag: '_3',
resourcetag: '',
authtag:'web-OUIndexView-menuitem5',
},
];
......@@ -81,6 +119,18 @@ export default class OUIndexViewModel {
* @memberof OUIndexViewModel
*/
public funcs: any[] = [
{
appfunctag: '_2',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibzpostgridview',
deResParameters: [],
routepath: '/ouindexview/:ouindexview?/ibzposts/:ibzpost?/gridview/:gridview?',
parameters: [
{ pathName: 'ibzposts', parameterName: 'ibzpost' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
{
appfunctag: 'Auto5',
appfuncyype: 'APPVIEW',
......@@ -105,6 +155,18 @@ export default class OUIndexViewModel {
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
{
appfunctag: '_3',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibzteamgridview',
deResParameters: [],
routepath: '/ouindexview/:ouindexview?/ibzteams/:ibzteam?/gridview/:gridview?',
parameters: [
{ pathName: 'ibzteams', parameterName: 'ibzteam' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
{
appfunctag: 'Auto4',
appfuncyype: 'APPVIEW',
......
......@@ -27,6 +27,10 @@ zuul:
path: /ibzorganizations/**
serviceId: ibzou-api
stripPrefix: false
ibzpost:
path: /ibzposts/**
serviceId: ibzou-api
stripPrefix: false
ibzteam:
path: /ibzteams/**
serviceId: ibzou-api
......
......@@ -34,7 +34,7 @@
<!--输出实体[IBZTEAM]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-ibzteam-40-2">
<changeSet author="a_A_5d9d78509" id="tab-ibzteam-41-2">
<createTable tableName="IBZTEAM">
<column name="TEAMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBZTEAM_TEAMID"/>
......@@ -130,7 +130,7 @@
<!--输出实体[IBZPOST]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-ibzpost-23-4">
<changeSet author="a_A_5d9d78509" id="tab-ibzpost-24-4">
<createTable tableName="IBZPOST">
<column name="POSTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBZPOST_POSTID"/>
......
......@@ -44,6 +44,14 @@
"datascope":[{"id":"all","name":"全部数据"}, {"id":"curorg","name":"当前单位"},{"id":"porg","name":"上级单位"},{"id":"sorg","name":"下级单位"} ]
}
, {
"dename":"IBZPost",
"delogicname":"岗位",
"sysmoudle":{"id":"OU","name":"ou"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"Create" , "name":"Create" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}]
}
, {
"dename":"IBZTeam",
"delogicname":"组",
"sysmoudle":{"id":"OU","name":"ou"},
......@@ -57,7 +65,7 @@
{
"appid":"web",
"appname":"统一组织单位",
"appmenu":[{"menuid":"OUIndexView", "menuname":"OUIndexView", "menuitem":[{ "id":"menuitem1" , "name":"单位管理" },{ "id":"menuitem2" , "name":"部门管理" },{ "id":"menuitem3" , "name":"人员管理" }] }]
"appmenu":[{"menuid":"OUIndexView", "menuname":"OUIndexView", "menuitem":[{ "id":"menuitem1" , "name":"单位管理" },{ "id":"menuitem2" , "name":"部门管理" },{ "id":"menuitem3" , "name":"人员管理" },{ "id":"menuitem4" , "name":"岗位管理" },{ "id":"menuitem5" , "name":"组管理" }] }]
}
]
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册