提交 5c367666 编写于 作者: ibizdev's avatar ibizdev

lab_gzf 部署微服务应用

上级 6d4933d2
......@@ -69,6 +69,16 @@
"viewtag": "1769804cd7ab51624ac3c88c2090363b",
"memo": "系统自动添加"
},
"eamapplytypeeditview": {
"title": "维护申请类型编辑",
"caption": "维护申请类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Apply",
"viewname": "EAMApplyTypeEditView",
"viewfilename": "eamapply-type-edit-view",
"viewtag": "1d768bbdaf3091c5d7131992a8ec7412",
"memo": "系统自动添加"
},
"eamlocationtreechildgridview": {
"title": "功能位置信息",
"caption": "功能位置",
......@@ -489,6 +499,26 @@
"viewtag": "c8bf8b682adc459f7f285328199ba4b4",
"memo": "系统自动添加"
},
"eamserviceleveleditview": {
"title": "服务等级编辑",
"caption": "服务等级",
"viewtype": "DEEDITVIEW",
"viewmodule": "WorkOrder",
"viewname": "EAMServiceLevelEditView",
"viewfilename": "eamservice-level-edit-view",
"viewtag": "ca41431df21901bec3c62db4097e36d4",
"memo": "系统自动添加"
},
"eamapplytypegridview": {
"title": "维护申请类型信息",
"caption": "维护申请类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Apply",
"viewname": "EAMApplyTypeGridView",
"viewfilename": "eamapply-type-grid-view",
"viewtag": "ca66d81a69c0f084e3f7cf1e99ae9d28",
"memo": ""
},
"eamlocationsummaryview": {
"title": "功能位置数据看板视图",
"caption": "功能位置",
......@@ -609,6 +639,16 @@
"viewtag": "ecd1ec6299b5b24e2004fa15c4eef92d",
"memo": "系统自动添加"
},
"eamservicelevelgridview": {
"title": "服务等级信息",
"caption": "服务等级",
"viewtype": "DEGRIDVIEW",
"viewmodule": "WorkOrder",
"viewname": "EAMServiceLevelGridView",
"viewfilename": "eamservice-level-grid-view",
"viewtag": "edea4ef4e4810cea28340d5636e6e28d",
"memo": ""
},
"eamlocationgridview": {
"title": "功能位置信息",
"caption": "功能位置",
......
......@@ -48,6 +48,7 @@ export class AuthServiceRegister {
this.allAuthService.set('eamassetstatemodelline', () => import('@/authservice/eamasset-state-model-line/eamasset-state-model-line-auth-service'));
this.allAuthService.set('eamapplytype', () => import('@/authservice/eamapply-type/eamapply-type-auth-service'));
this.allAuthService.set('eamproduct', () => import('@/authservice/eamproduct/eamproduct-auth-service'));
this.allAuthService.set('eamservicelevel', () => import('@/authservice/eamservice-level/eamservice-level-auth-service'));
this.allAuthService.set('eamsparepartspro', () => import('@/authservice/eamspare-parts-pro/eamspare-parts-pro-auth-service'));
this.allAuthService.set('eamapplystatemodelline', () => import('@/authservice/eamapply-state-model-line/eamapply-state-model-line-auth-service'));
this.allAuthService.set('eamsparepartsgroup', () => import('@/authservice/eamspare-parts-group/eamspare-parts-group-auth-service'));
......
import AuthService from '../auth-service';
/**
* 服务等级权限服务对象基类
*
* @export
* @class EAMServiceLevelAuthServiceBase
* @extends {AuthService}
*/
export default class EAMServiceLevelAuthServiceBase extends AuthService {
/**
* Creates an instance of EAMServiceLevelAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof EAMServiceLevelAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof EAMServiceLevelAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = JSON.parse(JSON.stringify(this.defaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import EAMServiceLevelAuthServiceBase from './eamservice-level-auth-service-base';
/**
* 服务等级权限服务对象
*
* @export
* @class EAMServiceLevelAuthService
* @extends {EAMServiceLevelAuthServiceBase}
*/
export default class EAMServiceLevelAuthService extends EAMServiceLevelAuthServiceBase {
/**
* Creates an instance of EAMServiceLevelAuthService.
*
* @param {*} [opts={}]
* @memberof EAMServiceLevelAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -61,4 +61,12 @@ export interface EAMApplyType {
* @memberof EAMApplyType
*/
eamapplystatemodelid?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMApplyType
*/
description?: any;
}
\ No newline at end of file
......@@ -101,4 +101,52 @@ export interface EAMApply {
* @memberof EAMApply
*/
endtime?: any;
/**
* 资产
*
* @returns {*}
* @memberof EAMApply
*/
assetname?: any;
/**
* 功能位置
*
* @returns {*}
* @memberof EAMApply
*/
eamlocationname?: any;
/**
* 维护申请类型
*
* @returns {*}
* @memberof EAMApply
*/
eamapplytypename?: any;
/**
* 维护申请编号
*
* @returns {*}
* @memberof EAMApply
*/
applynumber?: any;
/**
* 服务等级标识
*
* @returns {*}
* @memberof EAMApply
*/
eamservicelevelid?: any;
/**
* 服务等级
*
* @returns {*}
* @memberof EAMApply
*/
eamservicelevelname?: any;
}
\ No newline at end of file
......@@ -69,4 +69,12 @@ export interface EAMLocationType {
* @memberof EAMLocationType
*/
eamlocationstatemodelname?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMLocationType
*/
description?: any;
}
\ No newline at end of file
......@@ -109,4 +109,12 @@ export interface EAMLocation {
* @memberof EAMLocation
*/
locationnumber?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMLocation
*/
description?: any;
}
\ No newline at end of file
/**
* 服务等级
*
* @export
* @interface EAMServiceLevel
*/
export interface EAMServiceLevel {
/**
* 建立人
*
* @returns {*}
* @memberof EAMServiceLevel
*/
createman?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof EAMServiceLevel
*/
createdate?: any;
/**
* 服务等级标识
*
* @returns {*}
* @memberof EAMServiceLevel
*/
eamservicelevelid?: any;
/**
* 更新人
*
* @returns {*}
* @memberof EAMServiceLevel
*/
updateman?: any;
/**
* 服务等级名称
*
* @returns {*}
* @memberof EAMServiceLevel
*/
eamservicelevelname?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof EAMServiceLevel
*/
updatedate?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMServiceLevel
*/
description?: any;
}
\ No newline at end of file
......@@ -7,6 +7,7 @@ import eamassettype_en_US from '@locale/lanres/entities/eamasset-type/eamasset-t
import eamassetstatemodelline_en_US from '@locale/lanres/entities/eamasset-state-model-line/eamasset-state-model-line_en_US';
import eamapplytype_en_US from '@locale/lanres/entities/eamapply-type/eamapply-type_en_US';
import eamproduct_en_US from '@locale/lanres/entities/eamproduct/eamproduct_en_US';
import eamservicelevel_en_US from '@locale/lanres/entities/eamservice-level/eamservice-level_en_US';
import eamsparepartspro_en_US from '@locale/lanres/entities/eamspare-parts-pro/eamspare-parts-pro_en_US';
import eamapplystatemodelline_en_US from '@locale/lanres/entities/eamapply-state-model-line/eamapply-state-model-line_en_US';
import eamsparepartsgroup_en_US from '@locale/lanres/entities/eamspare-parts-group/eamspare-parts-group_en_US';
......@@ -139,6 +140,9 @@ export default {
appindexview: {
user_menus: "用户菜单",
top_menus: "顶部菜单",
menuitem15: "系统设置",
menuitem16: "服务等级",
menuitem17: "维护申请类型",
left_exp: "左侧菜单",
menuitem1: "功能位置",
menuitem6: "功能位置状态",
......@@ -261,6 +265,7 @@ export default {
eamassetstatemodelline: eamassetstatemodelline_en_US,
eamapplytype: eamapplytype_en_US,
eamproduct: eamproduct_en_US,
eamservicelevel: eamservicelevel_en_US,
eamsparepartspro: eamsparepartspro_en_US,
eamapplystatemodelline: eamapplystatemodelline_en_US,
eamsparepartsgroup: eamsparepartsgroup_en_US,
......
......@@ -7,6 +7,7 @@ import eamassettype_zh_CN from '@locale/lanres/entities/eamasset-type/eamasset-t
import eamassetstatemodelline_zh_CN from '@locale/lanres/entities/eamasset-state-model-line/eamasset-state-model-line_zh_CN';
import eamapplytype_zh_CN from '@locale/lanres/entities/eamapply-type/eamapply-type_zh_CN';
import eamproduct_zh_CN from '@locale/lanres/entities/eamproduct/eamproduct_zh_CN';
import eamservicelevel_zh_CN from '@locale/lanres/entities/eamservice-level/eamservice-level_zh_CN';
import eamsparepartspro_zh_CN from '@locale/lanres/entities/eamspare-parts-pro/eamspare-parts-pro_zh_CN';
import eamapplystatemodelline_zh_CN from '@locale/lanres/entities/eamapply-state-model-line/eamapply-state-model-line_zh_CN';
import eamsparepartsgroup_zh_CN from '@locale/lanres/entities/eamspare-parts-group/eamspare-parts-group_zh_CN';
......@@ -139,6 +140,9 @@ export default {
appindexview: {
user_menus: "用户菜单",
top_menus: "顶部菜单",
menuitem15: "系统设置",
menuitem16: "服务等级",
menuitem17: "维护申请类型",
left_exp: "左侧菜单",
menuitem1: "功能位置",
menuitem6: "功能位置状态",
......@@ -260,6 +264,7 @@ export default {
eamassetstatemodelline: eamassetstatemodelline_zh_CN,
eamapplytype: eamapplytype_zh_CN,
eamproduct: eamproduct_zh_CN,
eamservicelevel: eamservicelevel_zh_CN,
eamsparepartspro: eamsparepartspro_zh_CN,
eamapplystatemodelline: eamapplystatemodelline_zh_CN,
eamsparepartsgroup: eamsparepartsgroup_zh_CN,
......
......@@ -8,5 +8,107 @@ export default {
createdate: "建立时间",
createman: "建立人",
eamapplystatemodelid: "维护申请状态模型标识",
description: "描述",
},
views: {
editview: {
caption: "维护申请类型",
title: "维护申请类型编辑",
},
gridview: {
caption: "维护申请类型",
title: "维护申请类型信息",
},
},
main_form: {
details: {
group1: "维护申请类型基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "维护申请类型标识",
srfmajortext: "维护申请类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamapplytypeid: "维护申请类型标识",
eamapplytypename: "维护申请类型名称",
description: "描述",
},
uiactions: {
},
},
main_grid: {
columns: {
eamapplytypeid: "维护申请类型标识",
eamapplytypename: "维护申请类型名称",
description: "描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem2: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem1: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem5: {
caption: "New",
tip: "New",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "Edit",
tip: "Edit {0}",
},
seperator2: {
caption: "",
tip: "",
},
tbitem1: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem10: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
......@@ -7,5 +7,107 @@ export default {
createdate: "建立时间",
createman: "建立人",
eamapplystatemodelid: "维护申请状态模型标识",
description: "描述",
},
views: {
editview: {
caption: "维护申请类型",
title: "维护申请类型编辑",
},
gridview: {
caption: "维护申请类型",
title: "维护申请类型信息",
},
},
main_form: {
details: {
group1: "维护申请类型基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "维护申请类型标识",
srfmajortext: "维护申请类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamapplytypeid: "维护申请类型标识",
eamapplytypename: "维护申请类型名称",
description: "描述",
},
uiactions: {
},
},
main_grid: {
columns: {
eamapplytypeid: "维护申请类型标识",
eamapplytypename: "维护申请类型名称",
description: "描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem2: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem1: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem5: {
caption: "新建",
tip: "新建",
},
seperator1: {
caption: "",
tip: "",
},
tbitem2: {
caption: "编辑",
tip: "编辑",
},
seperator2: {
caption: "",
tip: "",
},
tbitem1: {
caption: "拷贝",
tip: "拷贝",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "导出",
tip: "导出",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem10: {
caption: "过滤",
tip: "过滤",
},
},
};
\ No newline at end of file
......@@ -13,5 +13,11 @@ export default {
description: "描述",
begintime: "希望开始时间",
endtime: "希望结束时间",
assetname: "资产",
eamlocationname: "功能位置",
eamapplytypename: "维护申请类型",
applynumber: "维护申请编号",
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级",
},
};
\ No newline at end of file
......@@ -12,5 +12,11 @@ export default {
description: "描述",
begintime: "希望开始时间",
endtime: "希望结束时间",
assetname: "资产",
eamlocationname: "功能位置",
eamapplytypename: "维护申请类型",
applynumber: "维护申请编号",
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级",
},
};
\ No newline at end of file
......@@ -9,6 +9,7 @@ export default {
updatedate: "更新时间",
eamlocationstatemodelid: "功能位置状态模型标识",
eamlocationstatemodelname: "功能位置状态模型",
description: "描述",
},
views: {
pickupview: {
......
......@@ -8,6 +8,7 @@ export default {
updatedate: "更新时间",
eamlocationstatemodelid: "功能位置状态模型标识",
eamlocationstatemodelname: "功能位置状态模型",
description: "描述",
},
views: {
pickupview: {
......
......@@ -14,6 +14,7 @@ export default {
eamlocationtypename: "功能位置类型",
eamlocationstatename: "功能位置状态",
locationnumber: "功能位置编号",
description: "描述",
},
views: {
treeexpview: {
......
......@@ -13,6 +13,7 @@ export default {
eamlocationtypename: "功能位置类型",
eamlocationstatename: "功能位置状态",
locationnumber: "功能位置编号",
description: "描述",
},
views: {
treeexpview: {
......
export default {
fields: {
createman: "建立人",
createdate: "建立时间",
eamservicelevelid: "服务等级标识",
updateman: "更新人",
eamservicelevelname: "服务等级名称",
updatedate: "更新时间",
description: "描述",
},
views: {
editview: {
caption: "服务等级",
title: "服务等级编辑",
},
gridview: {
caption: "服务等级",
title: "服务等级信息",
},
},
main_form: {
details: {
group1: "服务等级基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "服务等级标识",
srfmajortext: "服务等级名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级名称",
description: "描述",
},
uiactions: {
},
},
main_grid: {
columns: {
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级名称",
description: "描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem10: {
caption: "Save",
tip: "Save",
},
tbitem12: {
caption: "Save And New",
tip: "Save And New",
},
tbitem11: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem18: {
caption: "-",
tip: "",
},
tbitem9: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem19: {
caption: "-",
tip: "",
},
tbitem5: {
caption: "New",
tip: "New",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem1: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem22: {
caption: "-",
tip: "",
},
tbitem2: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem7: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem6: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem4: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem25: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "Help",
tip: "Help",
},
},
gridviewtoolbar_toolbar: {
tbitem5: {
caption: "New",
tip: "New",
},
tbitem2: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem1: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem20: {
caption: "其它",
tip: "其它",
},
tbitem24: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem25: {
caption: "数据导入",
tip: "数据导入",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem10: {
caption: "Filter",
tip: "Filter",
},
tbitem4: {
caption: "Help",
tip: "Help",
},
},
};
\ No newline at end of file
export default {
fields: {
createman: "建立人",
createdate: "建立时间",
eamservicelevelid: "服务等级标识",
updateman: "更新人",
eamservicelevelname: "服务等级名称",
updatedate: "更新时间",
description: "描述",
},
views: {
editview: {
caption: "服务等级",
title: "服务等级编辑",
},
gridview: {
caption: "服务等级",
title: "服务等级信息",
},
},
main_form: {
details: {
group1: "服务等级基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "服务等级标识",
srfmajortext: "服务等级名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级名称",
description: "描述",
},
uiactions: {
},
},
main_grid: {
columns: {
eamservicelevelid: "服务等级标识",
eamservicelevelname: "服务等级名称",
description: "描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem10: {
caption: "保存",
tip: "保存",
},
tbitem12: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem11: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem18: {
caption: "-",
tip: "",
},
tbitem9: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem19: {
caption: "-",
tip: "",
},
tbitem5: {
caption: "新建",
tip: "新建",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem1: {
caption: "拷贝",
tip: "拷贝",
},
tbitem22: {
caption: "-",
tip: "",
},
tbitem2: {
caption: "第一个记录",
tip: "第一个记录",
},
tbitem7: {
caption: "上一个记录",
tip: "上一个记录",
},
tbitem6: {
caption: "下一个记录",
tip: "下一个记录",
},
tbitem4: {
caption: "最后一个记录",
tip: "最后一个记录",
},
tbitem25: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "帮助",
tip: "帮助",
},
},
gridviewtoolbar_toolbar: {
tbitem5: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "编辑",
tip: "编辑",
},
tbitem1: {
caption: "拷贝",
tip: "拷贝",
},
tbitem15: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "导出",
tip: "导出",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem20: {
caption: "其它",
tip: "其它",
},
tbitem24: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem25: {
caption: "数据导入",
tip: "数据导入",
},
tbitem21: {
caption: "-",
tip: "",
},
tbitem10: {
caption: "过滤",
tip: "过滤",
},
tbitem4: {
caption: "帮助",
tip: "帮助",
},
},
};
\ No newline at end of file
......@@ -45,6 +45,64 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '72EF9A96-DED9-4262-8219-3212E7A332B6',
name: 'menuitem15',
text: '系统设置',
type: 'MENUITEM',
counterid: '',
tooltip: '系统设置',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-cog',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
items: [
{
id: '0F6F0CEA-5965-4D70-AD5E-F149819CAA76',
name: 'menuitem16',
text: '服务等级',
type: 'MENUITEM',
counterid: '',
tooltip: '服务等级',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-server',
icon: '',
textcls: '',
appfunctag: '_12',
resourcetag: '',
},
{
id: '7C4D180A-5AC9-451E-A7BE-969707F6E5E9',
name: 'menuitem17',
text: '维护申请类型',
type: 'MENUITEM',
counterid: '',
tooltip: '维护申请类型',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_4',
resourcetag: '',
},
],
},
],
},
{
id: '7428CF1E-09D0-477F-838B-3CB98A776FBA',
......@@ -97,7 +155,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-life-ring',
icon: '',
textcls: '',
appfunctag: '_6',
appfunctag: '_7',
resourcetag: '',
},
{
......@@ -115,7 +173,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-cube',
icon: '',
textcls: '',
appfunctag: '_5',
appfunctag: '_6',
resourcetag: '',
},
{
......@@ -133,7 +191,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_7',
appfunctag: '_8',
resourcetag: '',
},
{
......@@ -151,7 +209,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-navicon',
icon: '',
textcls: '',
appfunctag: '_10',
appfunctag: '_11',
resourcetag: '',
},
],
......@@ -225,7 +283,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_9',
appfunctag: '_10',
resourcetag: '',
},
{
......@@ -243,7 +301,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-rocket',
icon: '',
textcls: '',
appfunctag: '_8',
appfunctag: '_9',
resourcetag: '',
},
{
......@@ -261,7 +319,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-instagram',
icon: '',
textcls: '',
appfunctag: '_4',
appfunctag: '_5',
resourcetag: '',
},
],
......
......@@ -16,6 +16,7 @@ import './entity/eamasset-types/eamasset-types';
import './entity/eamasset-state-model-lines/eamasset-state-model-lines';
import './entity/eamapply-types/eamapply-types';
import './entity/eamproducts/eamproducts';
import './entity/eamservice-levels/eamservice-levels';
import './entity/eamspare-parts-pros/eamspare-parts-pros';
import './entity/eamapply-state-model-lines/eamapply-state-model-lines';
import './entity/eamspare-parts-groups/eamspare-parts-groups';
......
......@@ -63,6 +63,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMLocationEditView",
"viewtag": "1769804cd7ab51624ac3c88c2090363b"
},
"eamapplytypeeditview": {
"title": "维护申请类型编辑",
"caption": "维护申请类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Apply",
"viewname": "EAMApplyTypeEditView",
"viewtag": "1d768bbdaf3091c5d7131992a8ec7412"
},
"eamlocationtreechildgridview": {
"title": "功能位置信息",
"caption": "功能位置",
......@@ -399,6 +407,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMAssetChildGridView",
"viewtag": "c8bf8b682adc459f7f285328199ba4b4"
},
"eamserviceleveleditview": {
"title": "服务等级编辑",
"caption": "服务等级",
"viewtype": "DEEDITVIEW",
"viewmodule": "WorkOrder",
"viewname": "EAMServiceLevelEditView",
"viewtag": "ca41431df21901bec3c62db4097e36d4"
},
"eamapplytypegridview": {
"title": "维护申请类型信息",
"caption": "维护申请类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Apply",
"viewname": "EAMApplyTypeGridView",
"viewtag": "ca66d81a69c0f084e3f7cf1e99ae9d28"
},
"eamlocationsummaryview": {
"title": "功能位置数据看板视图",
"caption": "功能位置",
......@@ -495,6 +519,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMLocationStateModelLineGridView",
"viewtag": "ecd1ec6299b5b24e2004fa15c4eef92d"
},
"eamservicelevelgridview": {
"title": "服务等级信息",
"caption": "服务等级",
"viewtype": "DEGRIDVIEW",
"viewmodule": "WorkOrder",
"viewname": "EAMServiceLevelGridView",
"viewtag": "edea4ef4e4810cea28340d5636e6e28d"
},
"eamlocationgridview": {
"title": "功能位置信息",
"caption": "功能位置",
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import EAMApplyTypeService from '@/service/eamapply-type/eamapply-type-service';
import EAMApplyTypeAuthService from '@/authservice/eamapply-type/eamapply-type-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import EAMApplyTypeUIService from '@/uiservice/eamapply-type/eamapply-type-ui-service';
/**
* 维护申请类型编辑视图基类
*
* @export
* @class EAMApplyTypeEditViewBase
* @extends {EditViewBase}
*/
export class EAMApplyTypeEditViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMApplyTypeEditViewBase
*/
protected appDeName: string = 'eamapplytype';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMApplyTypeEditViewBase
*/
protected appDeKey: string = 'eamapplytypeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMApplyTypeEditViewBase
*/
protected appDeMajor: string = 'eamapplytypename';
/**
* 实体服务对象
*
* @type {EAMApplyTypeService}
* @memberof EAMApplyTypeEditViewBase
*/
protected appEntityService: EAMApplyTypeService = new EAMApplyTypeService;
/**
* 实体权限服务对象
*
* @type EAMApplyTypeUIService
* @memberof EAMApplyTypeEditViewBase
*/
public appUIService: EAMApplyTypeUIService = new EAMApplyTypeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMApplyTypeEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMApplyTypeEditViewBase
*/
protected model: any = {
srfCaption: 'entities.eamapplytype.views.editview.caption',
srfTitle: 'entities.eamapplytype.views.editview.title',
srfSubTitle: 'entities.eamapplytype.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMApplyTypeEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof EAMApplyTypeEditView
*/
public toolBarModels: any = {
tbitem2: { name: 'tbitem2', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'sx-tb-saveandclose', icon: '../sasrfex/images/default/icon_saveandclose.png', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem1: { name: 'tbitem1', 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 = '1d768bbdaf3091c5d7131992a8ec7412';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMApplyTypeEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMApplyTypeEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'eamapplytype',
majorPSDEField: 'eamapplytypename',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMApplyTypeEditViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMApplyTypeEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMApplyTypeEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMApplyTypeEditViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @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.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"EAMApplyType");
}
/**
* 逻辑事件
*
* @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.Exit(datas, contextJO,paramJO, $event, xData,this,"EAMApplyType");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMApplyTypeEditViewBase
*/
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 EAMApplyTypeEditViewBase
*/
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="eamapplytypeeditview" viewTitle="维护申请类型编辑" class='deeditview eamapply-type-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="./eamapply-type-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMApplyTypeEditViewBase } from './eamapply-type-edit-view-base';
import view_form from '@widgets/eamapply-type/main-form/main-form.vue';
/**
* 维护申请类型编辑视图
*
* @export
* @class EAMApplyTypeEditView
* @extends {EAMApplyTypeEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMApplyTypeEditView extends EAMApplyTypeEditViewBase { }
</script>
<studio-view-style2 viewName="eamapplytypegridview" viewTitle="维护申请类型信息" class='degridview eamapply-type-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="./eamapply-type-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMApplyTypeGridViewBase } from './eamapply-type-grid-view-base';
import view_grid from '@widgets/eamapply-type/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamapply-type/default-searchform/default-searchform.vue';
/**
* 维护申请类型信息视图
*
* @export
* @class EAMApplyTypeGridView
* @extends {EAMApplyTypeGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMApplyTypeGridView extends EAMApplyTypeGridViewBase { }
</script>
......@@ -3,6 +3,7 @@ export const PageComponents = {
Vue.component('eamspare-parts-group-grid-view', () => import('@pages/asset/eamspare-parts-group-grid-view/eamspare-parts-group-grid-view.vue'));
Vue.component('eamasset-type-pickup-view', () => import('@pages/asset/eamasset-type-pickup-view/eamasset-type-pickup-view.vue'));
Vue.component('eamproductpickup-view', () => import('@pages/asset/eamproductpickup-view/eamproductpickup-view.vue'));
Vue.component('eamapply-type-edit-view', () => import('@pages/apply/eamapply-type-edit-view/eamapply-type-edit-view.vue'));
Vue.component('eamasset-state-model-line-edit-view', () => import('@pages/asset/eamasset-state-model-line-edit-view/eamasset-state-model-line-edit-view.vue'));
Vue.component('eamasset-tree-exp-view', () => import('@pages/asset/eamasset-tree-exp-view/eamasset-tree-exp-view.vue'));
Vue.component('eamasset-child-grid-view', () => import('@pages/asset/eamasset-child-grid-view/eamasset-child-grid-view.vue'));
......@@ -12,6 +13,7 @@ export const PageComponents = {
Vue.component('eamasset-state-edit-view', () => import('@pages/asset/eamasset-state-edit-view/eamasset-state-edit-view.vue'));
Vue.component('eamlocation-tree-child-grid-view', () => import('@pages/location/eamlocation-tree-child-grid-view/eamlocation-tree-child-grid-view.vue'));
Vue.component('eamlocation-state-pickup-grid-view', () => import('@pages/location/eamlocation-state-pickup-grid-view/eamlocation-state-pickup-grid-view.vue'));
Vue.component('eamservice-level-grid-view', () => import('@pages/work-order/eamservice-level-grid-view/eamservice-level-grid-view.vue'));
Vue.component('eamasset-grid-view', () => import('@pages/asset/eamasset-grid-view/eamasset-grid-view.vue'));
Vue.component('eamspare-parts-group-edit-view', () => import('@pages/asset/eamspare-parts-group-edit-view/eamspare-parts-group-edit-view.vue'));
Vue.component('eamspare-parts-proparts-pro-grid-view', () => import('@pages/asset/eamspare-parts-proparts-pro-grid-view/eamspare-parts-proparts-pro-grid-view.vue'));
......@@ -29,6 +31,7 @@ export const PageComponents = {
Vue.component('eamasset-edit-view', () => import('@pages/asset/eamasset-edit-view/eamasset-edit-view.vue'));
Vue.component('eamasset-type-grid-view', () => import('@pages/asset/eamasset-type-grid-view/eamasset-type-grid-view.vue'));
Vue.component('eamasset-state-model-pickup-grid-view', () => import('@pages/asset/eamasset-state-model-pickup-grid-view/eamasset-state-model-pickup-grid-view.vue'));
Vue.component('eamservice-level-edit-view', () => import('@pages/work-order/eamservice-level-edit-view/eamservice-level-edit-view.vue'));
Vue.component('eamasset-location-asset-grid-view', () => import('@pages/asset/eamasset-location-asset-grid-view/eamasset-location-asset-grid-view.vue'));
Vue.component('eamasset-parts-group-parts-asset-grid-view', () => import('@pages/asset/eamasset-parts-group-parts-asset-grid-view/eamasset-parts-group-parts-asset-grid-view.vue'));
Vue.component('eamspare-parts-group-info-view', () => import('@pages/asset/eamspare-parts-group-info-view/eamspare-parts-group-info-view.vue'));
......@@ -38,8 +41,8 @@ export const PageComponents = {
Vue.component('eamasset-type-edit-view', () => import('@pages/asset/eamasset-type-edit-view/eamasset-type-edit-view.vue'));
Vue.component('eamasset-summary-view', () => import('@pages/asset/eamasset-summary-view/eamasset-summary-view.vue'));
Vue.component('eamasset-state-model-line-grid-view', () => import('@pages/asset/eamasset-state-model-line-grid-view/eamasset-state-model-line-grid-view.vue'));
Vue.component('eamlocation-type-grid-view', () => import('@pages/location/eamlocation-type-grid-view/eamlocation-type-grid-view.vue'));
Vue.component('eamlocation-state-edit-view', () => import('@pages/location/eamlocation-state-edit-view/eamlocation-state-edit-view.vue'));
Vue.component('eamlocation-type-grid-view', () => import('@pages/location/eamlocation-type-grid-view/eamlocation-type-grid-view.vue'));
Vue.component('eamasset-info-view', () => import('@pages/asset/eamasset-info-view/eamasset-info-view.vue'));
Vue.component('eamasset-state-model-edit-view', () => import('@pages/asset/eamasset-state-model-edit-view/eamasset-state-model-edit-view.vue'));
Vue.component('eamasset-state-pickup-grid-view', () => import('@pages/asset/eamasset-state-pickup-grid-view/eamasset-state-pickup-grid-view.vue'));
......@@ -58,9 +61,10 @@ export const PageComponents = {
Vue.component('eamlocation-summary-view', () => import('@pages/location/eamlocation-summary-view/eamlocation-summary-view.vue'));
Vue.component('eamasset-pickup-view', () => import('@pages/asset/eamasset-pickup-view/eamasset-pickup-view.vue'));
Vue.component('eamasset-quick-create-view', () => import('@pages/asset/eamasset-quick-create-view/eamasset-quick-create-view.vue'));
Vue.component('eamapply-type-grid-view', () => import('@pages/apply/eamapply-type-grid-view/eamapply-type-grid-view.vue'));
Vue.component('eamlocation-grid-view', () => import('@pages/location/eamlocation-grid-view/eamlocation-grid-view.vue'));
Vue.component('eamlocation-state-model-grid-view', () => import('@pages/location/eamlocation-state-model-grid-view/eamlocation-state-model-grid-view.vue'));
Vue.component('eamasset-type-pickup-grid-view', () => import('@pages/asset/eamasset-type-pickup-grid-view/eamasset-type-pickup-grid-view.vue'));
Vue.component('eamlocation-state-model-grid-view', () => import('@pages/location/eamlocation-state-model-grid-view/eamlocation-state-model-grid-view.vue'));
Vue.component('eamspare-parts-proedit-view', () => import('@pages/asset/eamspare-parts-proedit-view/eamspare-parts-proedit-view.vue'));
}
};
\ No newline at end of file
<studio-view-style2 viewName="eamserviceleveleditview" viewTitle="服务等级编辑" class='deeditview eamservice-level-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="./eamservice-level-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMServiceLevelEditViewBase } from './eamservice-level-edit-view-base';
import view_form from '@widgets/eamservice-level/main-form/main-form.vue';
/**
* 服务等级编辑视图
*
* @export
* @class EAMServiceLevelEditView
* @extends {EAMServiceLevelEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMServiceLevelEditView extends EAMServiceLevelEditViewBase { }
</script>
<studio-view-style2 viewName="eamservicelevelgridview" viewTitle="服务等级信息" class='degridview eamservice-level-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="./eamservice-level-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMServiceLevelGridViewBase } from './eamservice-level-grid-view-base';
import view_grid from '@widgets/eamservice-level/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamservice-level/default-searchform/default-searchform.vue';
/**
* 服务等级信息视图
*
* @export
* @class EAMServiceLevelGridView
* @extends {EAMServiceLevelGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMServiceLevelGridView extends EAMServiceLevelGridViewBase { }
</script>
import { Http,Util } from '@/utils';
import EAMServiceLevelServiceBase from './eamservice-level-service-base';
/**
* 服务等级服务对象
*
* @export
* @class EAMServiceLevelService
* @extends {EAMServiceLevelServiceBase}
*/
export default class EAMServiceLevelService extends EAMServiceLevelServiceBase {
/**
* Creates an instance of EAMServiceLevelService.
*
* @param {*} [opts={}]
* @memberof EAMServiceLevelService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -48,6 +48,7 @@ export class EntityServiceRegister {
this.allEntityService.set('eamassetstatemodelline', () => import('@/service/eamasset-state-model-line/eamasset-state-model-line-service'));
this.allEntityService.set('eamapplytype', () => import('@/service/eamapply-type/eamapply-type-service'));
this.allEntityService.set('eamproduct', () => import('@/service/eamproduct/eamproduct-service'));
this.allEntityService.set('eamservicelevel', () => import('@/service/eamservice-level/eamservice-level-service'));
this.allEntityService.set('eamsparepartspro', () => import('@/service/eamspare-parts-pro/eamspare-parts-pro-service'));
this.allEntityService.set('eamapplystatemodelline', () => import('@/service/eamapply-state-model-line/eamapply-state-model-line-service'));
this.allEntityService.set('eamsparepartsgroup', () => import('@/service/eamspare-parts-group/eamspare-parts-group-service'));
......
......@@ -89,6 +89,8 @@ export default class EAMApplyTypeUIServiceBase extends UIService {
* @memberof EAMApplyTypeUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'eamapplytypes'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'eamapplytypes'});
}
/**
......
......@@ -48,6 +48,7 @@ export class UIServiceRegister {
this.allUIService.set('eamassetstatemodelline', () => import('@/uiservice/eamasset-state-model-line/eamasset-state-model-line-ui-service'));
this.allUIService.set('eamapplytype', () => import('@/uiservice/eamapply-type/eamapply-type-ui-service'));
this.allUIService.set('eamproduct', () => import('@/uiservice/eamproduct/eamproduct-ui-service'));
this.allUIService.set('eamservicelevel', () => import('@/uiservice/eamservice-level/eamservice-level-ui-service'));
this.allUIService.set('eamsparepartspro', () => import('@/uiservice/eamspare-parts-pro/eamspare-parts-pro-ui-service'));
this.allUIService.set('eamapplystatemodelline', () => import('@/uiservice/eamapply-state-model-line/eamapply-state-model-line-ui-service'));
this.allUIService.set('eamsparepartsgroup', () => import('@/uiservice/eamspare-parts-group/eamspare-parts-group-ui-service'));
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册