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

lab_gzf 部署微服务应用

上级 c6217e49
......@@ -9,6 +9,16 @@
"viewtag": "00fcbd6336b5d40a31a2c3d5c346d16c",
"memo": ""
},
"eamdocumentassettypedocgridview": {
"title": "文档表格视图",
"caption": "文档",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentAssetTypeDocGridView",
"viewfilename": "eamdocument-asset-type-doc-grid-view",
"viewtag": "04760f08f434367b552fa8ab8cf191dd",
"memo": "系统自动添加"
},
"eamassettreeexpview": {
"title": "资产信息",
"caption": "资产",
......@@ -19,6 +29,16 @@
"viewtag": "075e8b706da4cd2328cf2239fd6f4d06",
"memo": ""
},
"eamassettypeinfoview": {
"title": "资产类型信息",
"caption": "资产类型",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeInfoView",
"viewfilename": "eamasset-type-info-view",
"viewtag": "0a6cec446cd7b36771eccacdf2ce4b54",
"memo": ""
},
"eamlocationstateeditview": {
"title": "功能位置状态信息",
"caption": "功能位置状态",
......@@ -39,6 +59,26 @@
"viewtag": "0ef17d615938cdc829d919042267c23a",
"memo": ""
},
"eamassettypeinfo_mainview": {
"title": "资产类型主信息",
"caption": "资产类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeInfo_MainView",
"viewfilename": "eamasset-type-info-main-view",
"viewtag": "0f5279839c91bc31fde9eebfa1b00f36",
"memo": ""
},
"eamassetpartsgroupassetpartsgridview": {
"title": "备件包相关资产",
"caption": "资产备件包",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetPartsGroupAssetPartsGridView",
"viewfilename": "eamasset-parts-group-asset-parts-grid-view",
"viewtag": "106abbe5884e49ca4506a105bd3d2031",
"memo": "系统自动添加"
},
"eamsparepartsgroupeditview": {
"title": "备件包编辑视图",
"caption": "备件包",
......@@ -219,6 +259,16 @@
"viewtag": "3d676a12800fca23bec463d5c5217413",
"memo": "系统自动添加"
},
"eamdocumenttypegridview": {
"title": "文档类型信息",
"caption": "文档类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypeGridView",
"viewfilename": "eamdocument-type-grid-view",
"viewtag": "3fefaea52048336382356c9d224d17c1",
"memo": ""
},
"eamwotypegridview": {
"title": "工单类型表格视图",
"caption": "工单类型",
......@@ -449,6 +499,16 @@
"viewtag": "7bf1327f579d782d5cdb98528999a5e0",
"memo": "系统自动添加"
},
"eamdocumenteditview": {
"title": "文档编辑视图",
"caption": "文档",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentEditView",
"viewfilename": "eamdocument-edit-view",
"viewtag": "7d7cbe6f35cdf729007b90156298a515",
"memo": "系统自动添加"
},
"eamassetpartsgroupeditview": {
"title": "资产备件包编辑视图",
"caption": "资产备件包",
......@@ -499,6 +559,16 @@
"viewtag": "8a03ef5ec2679c20c8072339004dcaaf",
"memo": ""
},
"eamdocumenttypepickupgridview": {
"title": "文档类型选择表格视图",
"caption": "文档类型",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypePickupGridView",
"viewfilename": "eamdocument-type-pickup-grid-view",
"viewtag": "8dad4ab59adf6e7eb152878eb283da71",
"memo": "系统自动添加"
},
"eamworkordereditview": {
"title": "工单编辑视图",
"caption": "工单",
......@@ -539,6 +609,26 @@
"viewtag": "96e58ee9a57415beb8209aae53b14926",
"memo": ""
},
"eamdocumentgridview": {
"title": "文档表格视图",
"caption": "文档",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentGridView",
"viewfilename": "eamdocument-grid-view",
"viewtag": "9930ab7fa32bcb829b706489a25ca808",
"memo": ""
},
"eamdocumenttypeeditview": {
"title": "文档类型编辑",
"caption": "文档类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypeEditView",
"viewfilename": "eamdocument-type-edit-view",
"viewtag": "9cfb79c7e6fd653338c0366c9d304384",
"memo": "系统自动添加"
},
"eamsparepartsgroupinfoview": {
"title": "备件包信息",
"caption": "备件包",
......@@ -869,6 +959,16 @@
"viewtag": "d768b752c0404797713700991cbf95c5",
"memo": "系统自动添加"
},
"eamdocumenttypepickupview": {
"title": "文档类型数据选择视图",
"caption": "文档类型",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypePickupView",
"viewfilename": "eamdocument-type-pickup-view",
"viewtag": "d7f78755bc3c9a5855de8a2fc67e668e",
"memo": "系统自动添加"
},
"eamplangridview": {
"title": "维护计划信息",
"caption": "维护计划",
......@@ -909,6 +1009,16 @@
"viewtag": "e3f067b2352dbb274918bccb115ebcde",
"memo": "系统自动添加"
},
"eamassettypesummaryview": {
"title": "资产类型主信息看板",
"caption": "资产类型",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeSummaryView",
"viewfilename": "eamasset-type-summary-view",
"viewtag": "e82ae69965b5b61347246f54ab96dc6f",
"memo": ""
},
"eamsparepartsgrouppickupgridview": {
"title": "备件包选择表格视图",
"caption": "备件包",
......
......@@ -39,7 +39,8 @@ export class AuthServiceRegister {
* @memberof AuthServiceRegister
*/
protected init(): void {
this.allAuthService.set('eamlocationstatemodel', () => import('@/authservice/eamlocation-state-model/eamlocation-state-model-auth-service'));
this.allAuthService.set('eamdocument', () => import('@/authservice/eamdocument/eamdocument-auth-service'));
this.allAuthService.set('eamlocationstatemodel', () => import('@/authservice/eamlocation-state-model/eamlocation-state-model-auth-service'));
this.allAuthService.set('eamlocationtype', () => import('@/authservice/eamlocation-type/eamlocation-type-auth-service'));
this.allAuthService.set('eamworkorder', () => import('@/authservice/eamwork-order/eamwork-order-auth-service'));
this.allAuthService.set('eamlocation', () => import('@/authservice/eamlocation/eamlocation-auth-service'));
......@@ -65,6 +66,7 @@ export class AuthServiceRegister {
this.allAuthService.set('eamapplystate', () => import('@/authservice/eamapply-state/eamapply-state-auth-service'));
this.allAuthService.set('eamapply', () => import('@/authservice/eamapply/eamapply-auth-service'));
this.allAuthService.set('eamwostate', () => import('@/authservice/eamwostate/eamwostate-auth-service'));
this.allAuthService.set('eamdocumenttype', () => import('@/authservice/eamdocument-type/eamdocument-type-auth-service'));
this.allAuthService.set('eamassetstatemodel', () => import('@/authservice/eamasset-state-model/eamasset-state-model-auth-service'));
this.allAuthService.set('eamwotype', () => import('@/authservice/eamwotype/eamwotype-auth-service'));
}
......
import AuthService from '../auth-service';
/**
* 文档类型权限服务对象基类
*
* @export
* @class EAMDocumentTypeAuthServiceBase
* @extends {AuthService}
*/
export default class EAMDocumentTypeAuthServiceBase extends AuthService {
/**
* Creates an instance of EAMDocumentTypeAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof EAMDocumentTypeAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof EAMDocumentTypeAuthServiceBase
*/
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 EAMDocumentTypeAuthServiceBase from './eamdocument-type-auth-service-base';
/**
* 文档类型权限服务对象
*
* @export
* @class EAMDocumentTypeAuthService
* @extends {EAMDocumentTypeAuthServiceBase}
*/
export default class EAMDocumentTypeAuthService extends EAMDocumentTypeAuthServiceBase {
/**
* Creates an instance of EAMDocumentTypeAuthService.
*
* @param {*} [opts={}]
* @memberof EAMDocumentTypeAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 文档权限服务对象基类
*
* @export
* @class EAMDocumentAuthServiceBase
* @extends {AuthService}
*/
export default class EAMDocumentAuthServiceBase extends AuthService {
/**
* Creates an instance of EAMDocumentAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof EAMDocumentAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof EAMDocumentAuthServiceBase
*/
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 EAMDocumentAuthServiceBase from './eamdocument-auth-service-base';
/**
* 文档权限服务对象
*
* @export
* @class EAMDocumentAuthService
* @extends {EAMDocumentAuthServiceBase}
*/
export default class EAMDocumentAuthService extends EAMDocumentAuthServiceBase {
/**
* Creates an instance of EAMDocumentAuthService.
*
* @param {*} [opts={}]
* @memberof EAMDocumentAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -149,7 +149,7 @@ export default class Login extends Vue {
const data = response.data;
if (data && data.token) {
localStorage.setItem('token', data.token);
this.setCookie('ibzuaa-token', data.token, 0);
this.setCookie('ibzuaa-token', data.token, 1);
}
// 设置cookie,保存账号密码7天
this.setCookie("loginname", this.form.loginname, 7);
......
......@@ -6,7 +6,7 @@ export const Environment = {
// 应用 title
AppTitle: '资产管理',
// 应用基础路径
BaseUrl: '../',
BaseUrl: '',
// 系统名称
SysName: 'iBizAssetManagement',
// 远程登录地址,本地开发调试使用
......
......@@ -77,4 +77,12 @@ export interface EAMAssetType {
* @memberof EAMAssetType
*/
assettypenumber?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMAssetType
*/
description?: any;
}
\ No newline at end of file
......@@ -125,4 +125,12 @@ export interface EAMAsset {
* @memberof EAMAsset
*/
assetnumber?: any;
/**
* 描述
*
* @returns {*}
* @memberof EAMAsset
*/
description?: any;
}
\ No newline at end of file
/**
* 文档类型
*
* @export
* @interface EAMDocumentType
*/
export interface EAMDocumentType {
/**
* 文档类型名称
*
* @returns {*}
* @memberof EAMDocumentType
*/
eamdocumenttypename?: any;
/**
* 文档类型标识
*
* @returns {*}
* @memberof EAMDocumentType
*/
eamdocumenttypeid?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof EAMDocumentType
*/
createdate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof EAMDocumentType
*/
updateman?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof EAMDocumentType
*/
updatedate?: any;
/**
* 建立人
*
* @returns {*}
* @memberof EAMDocumentType
*/
createman?: any;
/**
* 上级文档类型标识
*
* @returns {*}
* @memberof EAMDocumentType
*/
peamdocumenttypeid?: any;
/**
* 上级文档类型
*
* @returns {*}
* @memberof EAMDocumentType
*/
peamdocumenttypename?: any;
}
\ No newline at end of file
/**
* 文档
*
* @export
* @interface EAMDocument
*/
export interface EAMDocument {
/**
* 建立时间
*
* @returns {*}
* @memberof EAMDocument
*/
createdate?: any;
/**
* 文档名称
*
* @returns {*}
* @memberof EAMDocument
*/
eamdocumentname?: any;
/**
* 建立人
*
* @returns {*}
* @memberof EAMDocument
*/
createman?: any;
/**
* 文档标识
*
* @returns {*}
* @memberof EAMDocument
*/
eamdocumentid?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof EAMDocument
*/
updatedate?: any;
/**
* 更新人
*
* @returns {*}
* @memberof EAMDocument
*/
updateman?: any;
/**
* 资产类型标识
*
* @returns {*}
* @memberof EAMDocument
*/
eamassettypeid?: any;
/**
* 资产类型
*
* @returns {*}
* @memberof EAMDocument
*/
eamassettypename?: any;
/**
* 文档编号
*
* @returns {*}
* @memberof EAMDocument
*/
documentnumber?: any;
/**
* 文档类型标识
*
* @returns {*}
* @memberof EAMDocument
*/
eamdocumenttypeid?: any;
/**
* 文档类型
*
* @returns {*}
* @memberof EAMDocument
*/
eamdocumenttypename?: any;
/**
* 内容
*
* @returns {*}
* @memberof EAMDocument
*/
content?: any;
/**
* 文件
*
* @returns {*}
* @memberof EAMDocument
*/
docfile?: any;
}
\ No newline at end of file
import eamdocument_en_US from '@locale/lanres/entities/eamdocument/eamdocument_en_US';
import eamlocationstatemodel_en_US from '@locale/lanres/entities/eamlocation-state-model/eamlocation-state-model_en_US';
import eamlocationtype_en_US from '@locale/lanres/entities/eamlocation-type/eamlocation-type_en_US';
import eamworkorder_en_US from '@locale/lanres/entities/eamwork-order/eamwork-order_en_US';
......@@ -24,6 +25,7 @@ import eamasset_en_US from '@locale/lanres/entities/eamasset/eamasset_en_US';
import eamapplystate_en_US from '@locale/lanres/entities/eamapply-state/eamapply-state_en_US';
import eamapply_en_US from '@locale/lanres/entities/eamapply/eamapply_en_US';
import eamwostate_en_US from '@locale/lanres/entities/eamwostate/eamwostate_en_US';
import eamdocumenttype_en_US from '@locale/lanres/entities/eamdocument-type/eamdocument-type_en_US';
import eamassetstatemodel_en_US from '@locale/lanres/entities/eamasset-state-model/eamasset-state-model_en_US';
import eamwotype_en_US from '@locale/lanres/entities/eamwotype/eamwotype_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
......@@ -150,6 +152,7 @@ export default {
user_menus: "用户菜单",
top_menus: "顶部菜单",
menuitem15: "系统设置",
menuitem21: "文档类型",
menuitem16: "服务等级",
menuitem17: "维护申请类型",
menuitem19: "工单类型",
......@@ -164,6 +167,7 @@ export default {
menuitem11: "资产状态模型",
menuitem12: "资产类型",
menuitem13: "资产管理",
menuitem22: "文档",
menuitem14: "备件包",
menuitem4: "工单管理",
menuitem3: "维护申请",
......@@ -268,6 +272,7 @@ export default {
}
},
entities: {
eamdocument: eamdocument_en_US,
eamlocationstatemodel: eamlocationstatemodel_en_US,
eamlocationtype: eamlocationtype_en_US,
eamworkorder: eamworkorder_en_US,
......@@ -294,6 +299,7 @@ export default {
eamapplystate: eamapplystate_en_US,
eamapply: eamapply_en_US,
eamwostate: eamwostate_en_US,
eamdocumenttype: eamdocumenttype_en_US,
eamassetstatemodel: eamassetstatemodel_en_US,
eamwotype: eamwotype_en_US,
},
......
import eamdocument_zh_CN from '@locale/lanres/entities/eamdocument/eamdocument_zh_CN';
import eamlocationstatemodel_zh_CN from '@locale/lanres/entities/eamlocation-state-model/eamlocation-state-model_zh_CN';
import eamlocationtype_zh_CN from '@locale/lanres/entities/eamlocation-type/eamlocation-type_zh_CN';
import eamworkorder_zh_CN from '@locale/lanres/entities/eamwork-order/eamwork-order_zh_CN';
......@@ -24,6 +25,7 @@ import eamasset_zh_CN from '@locale/lanres/entities/eamasset/eamasset_zh_CN';
import eamapplystate_zh_CN from '@locale/lanres/entities/eamapply-state/eamapply-state_zh_CN';
import eamapply_zh_CN from '@locale/lanres/entities/eamapply/eamapply_zh_CN';
import eamwostate_zh_CN from '@locale/lanres/entities/eamwostate/eamwostate_zh_CN';
import eamdocumenttype_zh_CN from '@locale/lanres/entities/eamdocument-type/eamdocument-type_zh_CN';
import eamassetstatemodel_zh_CN from '@locale/lanres/entities/eamasset-state-model/eamasset-state-model_zh_CN';
import eamwotype_zh_CN from '@locale/lanres/entities/eamwotype/eamwotype_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
......@@ -150,6 +152,7 @@ export default {
user_menus: "用户菜单",
top_menus: "顶部菜单",
menuitem15: "系统设置",
menuitem21: "文档类型",
menuitem16: "服务等级",
menuitem17: "维护申请类型",
menuitem19: "工单类型",
......@@ -164,6 +167,7 @@ export default {
menuitem11: "资产状态模型",
menuitem12: "资产类型",
menuitem13: "资产管理",
menuitem22: "文档",
menuitem14: "备件包",
menuitem4: "工单管理",
menuitem3: "维护申请",
......@@ -267,6 +271,7 @@ export default {
}
},
entities: {
eamdocument: eamdocument_zh_CN,
eamlocationstatemodel: eamlocationstatemodel_zh_CN,
eamlocationtype: eamlocationtype_zh_CN,
eamworkorder: eamworkorder_zh_CN,
......@@ -293,6 +298,7 @@ export default {
eamapplystate: eamapplystate_zh_CN,
eamapply: eamapply_zh_CN,
eamwostate: eamwostate_zh_CN,
eamdocumenttype: eamdocumenttype_zh_CN,
eamassetstatemodel: eamassetstatemodel_zh_CN,
eamwotype: eamwotype_zh_CN,
},
......
......@@ -13,6 +13,10 @@ export default {
eamassettypename: "资产类型",
},
views: {
assetpartsgridview: {
caption: "资产备件包",
title: "备件包相关资产",
},
partsassetgridview: {
caption: "资产备件包",
title: "备件包相关资产",
......@@ -60,7 +64,7 @@ export default {
uiactions: {
},
},
partsassetgridviewtoolbar_toolbar: {
assetpartsgridviewtoolbar_toolbar: {
tbitem5: {
caption: "New",
tip: "New",
......@@ -92,4 +96,26 @@ export default {
tip: "关闭",
},
},
partsassetgridviewtoolbar_toolbar: {
tbitem5: {
caption: "New",
tip: "New",
},
seperator1: {
caption: "",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
},
};
\ No newline at end of file
......@@ -12,6 +12,10 @@ export default {
eamassettypename: "资产类型",
},
views: {
assetpartsgridview: {
caption: "资产备件包",
title: "备件包相关资产",
},
partsassetgridview: {
caption: "资产备件包",
title: "备件包相关资产",
......@@ -59,7 +63,7 @@ export default {
uiactions: {
},
},
partsassetgridviewtoolbar_toolbar: {
assetpartsgridviewtoolbar_toolbar: {
tbitem5: {
caption: "新建",
tip: "新建",
......@@ -91,4 +95,26 @@ export default {
tip: "关闭",
},
},
partsassetgridviewtoolbar_toolbar: {
tbitem5: {
caption: "新建",
tip: "新建",
},
seperator1: {
caption: "",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem3: {
caption: "导出",
tip: "导出",
},
},
};
\ No newline at end of file
......@@ -10,8 +10,17 @@ export default {
eamassetstatemodelid: "资产状态模型标识",
eamassetstatemodelname: "资产状态模型",
assettypenumber: "资产类型编号",
description: "描述",
},
views: {
infoview: {
caption: "资产类型",
title: "资产类型信息",
},
info_mainview: {
caption: "资产类型",
title: "资产类型主信息",
},
pickupgridview: {
caption: "资产类型",
title: "资产类型选择表格视图",
......@@ -28,6 +37,31 @@ export default {
caption: "资产类型",
title: "资产类型信息",
},
summaryview: {
caption: "资产类型",
title: "资产类型主信息看板",
},
},
if_001_form: {
details: {
group1: "基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "资产类型标识",
srfmajortext: "资产类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
assettypenumber: "资产类型编号",
eamassettypename: "资产类型名称",
eamassetstatemodelname: "资产状态模型",
description: "描述",
eamassettypeid: "资产类型标识",
},
uiactions: {
},
},
main_form: {
details: {
......@@ -44,6 +78,7 @@ export default {
assettypenumber: "资产类型编号",
eamassettypename: "资产类型名称",
eamassetstatemodelname: "资产状态模型",
description: "描述",
eamassetstatemodelid: "资产状态模型标识",
eamassettypeid: "资产类型标识",
},
......
......@@ -9,8 +9,17 @@ export default {
eamassetstatemodelid: "资产状态模型标识",
eamassetstatemodelname: "资产状态模型",
assettypenumber: "资产类型编号",
description: "描述",
},
views: {
infoview: {
caption: "资产类型",
title: "资产类型信息",
},
info_mainview: {
caption: "资产类型",
title: "资产类型主信息",
},
pickupgridview: {
caption: "资产类型",
title: "资产类型选择表格视图",
......@@ -27,6 +36,31 @@ export default {
caption: "资产类型",
title: "资产类型信息",
},
summaryview: {
caption: "资产类型",
title: "资产类型主信息看板",
},
},
if_001_form: {
details: {
group1: "基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "资产类型标识",
srfmajortext: "资产类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
assettypenumber: "资产类型编号",
eamassettypename: "资产类型名称",
eamassetstatemodelname: "资产状态模型",
description: "描述",
eamassettypeid: "资产类型标识",
},
uiactions: {
},
},
main_form: {
details: {
......@@ -43,6 +77,7 @@ export default {
assettypenumber: "资产类型编号",
eamassettypename: "资产类型名称",
eamassetstatemodelname: "资产状态模型",
description: "描述",
eamassetstatemodelid: "资产状态模型标识",
eamassettypeid: "资产类型标识",
},
......
......@@ -16,6 +16,7 @@ export default {
eamassetstatename: "资产状态",
passetname: "上级资产",
assetnumber: "资产编号",
description: "描述",
},
views: {
treeexpview: {
......
......@@ -15,6 +15,7 @@ export default {
eamassetstatename: "资产状态",
passetname: "上级资产",
assetnumber: "资产编号",
description: "描述",
},
views: {
treeexpview: {
......
export default {
fields: {
eamdocumenttypename: "文档类型名称",
eamdocumenttypeid: "文档类型标识",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
createman: "建立人",
peamdocumenttypeid: "上级文档类型标识",
peamdocumenttypename: "上级文档类型",
},
views: {
gridview: {
caption: "文档类型",
title: "文档类型信息",
},
pickupgridview: {
caption: "文档类型",
title: "文档类型选择表格视图",
},
editview: {
caption: "文档类型",
title: "文档类型编辑",
},
pickupview: {
caption: "文档类型",
title: "文档类型数据选择视图",
},
},
main_form: {
details: {
group1: "文档类型基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "文档类型标识",
srfmajortext: "文档类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型名称",
peamdocumenttypename: "上级文档类型",
peamdocumenttypeid: "上级文档类型标识",
},
uiactions: {
},
},
main_grid: {
columns: {
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型名称",
peamdocumenttypename: "上级文档类型",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
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",
},
},
editviewtoolbar_toolbar: {
tbitem2: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem1: {
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
export default {
fields: {
eamdocumenttypename: "文档类型名称",
eamdocumenttypeid: "文档类型标识",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
createman: "建立人",
peamdocumenttypeid: "上级文档类型标识",
peamdocumenttypename: "上级文档类型",
},
views: {
gridview: {
caption: "文档类型",
title: "文档类型信息",
},
pickupgridview: {
caption: "文档类型",
title: "文档类型选择表格视图",
},
editview: {
caption: "文档类型",
title: "文档类型编辑",
},
pickupview: {
caption: "文档类型",
title: "文档类型数据选择视图",
},
},
main_form: {
details: {
group1: "文档类型基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "文档类型标识",
srfmajortext: "文档类型名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型名称",
peamdocumenttypename: "上级文档类型",
peamdocumenttypeid: "上级文档类型标识",
},
uiactions: {
},
},
main_grid: {
columns: {
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型名称",
peamdocumenttypename: "上级文档类型",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
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: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem2: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem1: {
caption: "关闭",
tip: "关闭",
},
},
};
\ No newline at end of file
export default {
fields: {
createdate: "建立时间",
eamdocumentname: "文档名称",
createman: "建立人",
eamdocumentid: "文档标识",
updatedate: "更新时间",
updateman: "更新人",
eamassettypeid: "资产类型标识",
eamassettypename: "资产类型",
documentnumber: "文档编号",
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型",
content: "内容",
docfile: "文件",
},
views: {
assettypedocgridview: {
caption: "文档",
title: "文档表格视图",
},
editview: {
caption: "文档",
title: "文档编辑视图",
},
gridview: {
caption: "文档",
title: "文档表格视图",
},
},
main_form: {
details: {
group1: "文档基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "文档标识",
srfmajortext: "文档名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
documentnumber: "文档编号",
eamdocumentname: "文档名称",
eamdocumenttypename: "文档类型",
content: "内容",
docfile: "文件",
eamdocumenttypeid: "文档类型标识",
eamdocumentid: "文档标识",
},
uiactions: {
},
},
main_grid: {
columns: {
documentnumber: "文档编号",
eamdocumentname: "文档名称",
eamdocumenttypename: "文档类型",
eamassettypename: "资产类型",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
assettypedocgridviewtoolbar_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",
},
},
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: {
createdate: "建立时间",
eamdocumentname: "文档名称",
createman: "建立人",
eamdocumentid: "文档标识",
updatedate: "更新时间",
updateman: "更新人",
eamassettypeid: "资产类型标识",
eamassettypename: "资产类型",
documentnumber: "文档编号",
eamdocumenttypeid: "文档类型标识",
eamdocumenttypename: "文档类型",
content: "内容",
docfile: "文件",
},
views: {
assettypedocgridview: {
caption: "文档",
title: "文档表格视图",
},
editview: {
caption: "文档",
title: "文档编辑视图",
},
gridview: {
caption: "文档",
title: "文档表格视图",
},
},
main_form: {
details: {
group1: "文档基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "文档标识",
srfmajortext: "文档名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
documentnumber: "文档编号",
eamdocumentname: "文档名称",
eamdocumenttypename: "文档类型",
content: "内容",
docfile: "文件",
eamdocumenttypeid: "文档类型标识",
eamdocumentid: "文档标识",
},
uiactions: {
},
},
main_grid: {
columns: {
documentnumber: "文档编号",
eamdocumentname: "文档名称",
eamdocumenttypename: "文档类型",
eamassettypename: "资产类型",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
assettypedocgridviewtoolbar_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: "过滤",
},
},
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
......@@ -65,6 +65,24 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
resourcetag: '',
items: [
{
id: '2EC2E657-B9FB-4ABF-B936-97222E18BB74',
name: 'menuitem21',
text: '文档类型',
type: 'MENUITEM',
counterid: '',
tooltip: '文档类型',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-file',
icon: '',
textcls: '',
appfunctag: '_18',
resourcetag: '',
},
{
id: '0F6F0CEA-5965-4D70-AD5E-F149819CAA76',
name: 'menuitem16',
text: '服务等级',
......@@ -79,7 +97,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-server',
icon: '',
textcls: '',
appfunctag: '_15',
appfunctag: '_16',
resourcetag: '',
},
{
......@@ -97,7 +115,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_4',
appfunctag: '_5',
resourcetag: '',
},
{
......@@ -115,7 +133,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_6',
appfunctag: '_7',
resourcetag: '',
},
],
......@@ -173,7 +191,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-life-ring',
icon: '',
textcls: '',
appfunctag: '_9',
appfunctag: '_10',
resourcetag: '',
},
{
......@@ -191,7 +209,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-cube',
icon: '',
textcls: '',
appfunctag: '_8',
appfunctag: '_9',
resourcetag: '',
},
{
......@@ -209,7 +227,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_11',
appfunctag: '_12',
resourcetag: '',
},
{
......@@ -227,7 +245,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-navicon',
icon: '',
textcls: '',
appfunctag: '_14',
appfunctag: '_15',
resourcetag: '',
},
],
......@@ -265,7 +283,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-life-ring',
icon: '',
textcls: '',
appfunctag: '_2',
appfunctag: '_3',
resourcetag: '',
},
{
......@@ -283,7 +301,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-cube',
icon: '',
textcls: '',
appfunctag: '_3',
appfunctag: '_4',
resourcetag: '',
},
{
......@@ -301,7 +319,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-legal',
icon: '',
textcls: '',
appfunctag: '_13',
appfunctag: '_14',
resourcetag: '',
},
{
......@@ -319,7 +337,25 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-rocket',
icon: '',
textcls: '',
appfunctag: '_12',
appfunctag: '_13',
resourcetag: '',
},
{
id: '5AF50A95-EA23-4E22-B354-FFA3CBD58356',
name: 'menuitem22',
text: '文档',
type: 'MENUITEM',
counterid: '',
tooltip: '文档',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-files-o',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
{
......@@ -337,7 +373,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-instagram',
icon: '',
textcls: '',
appfunctag: '_7',
appfunctag: '_8',
resourcetag: '',
},
],
......@@ -375,7 +411,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-share-square',
icon: '',
textcls: '',
appfunctag: '_10',
appfunctag: '_11',
resourcetag: '',
},
{
......@@ -393,7 +429,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-file-word-o',
icon: '',
textcls: '',
appfunctag: '_5',
appfunctag: '_6',
resourcetag: '',
},
],
......@@ -431,7 +467,7 @@ mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
iconcls: 'fa fa-calendar',
icon: '',
textcls: '',
appfunctag: '_16',
appfunctag: '_17',
resourcetag: '',
},
],
......
......@@ -7,6 +7,7 @@ import './login/login';
import './upload/upload';
// 实体级接口对象
import './entity/eamdocuments/eamdocuments';
import './entity/eamlocation-state-models/eamlocation-state-models';
import './entity/eamlocation-types/eamlocation-types';
import './entity/eamwork-orders/eamwork-orders';
......@@ -33,5 +34,6 @@ import './entity/eamassets/eamassets';
import './entity/eamapply-states/eamapply-states';
import './entity/eamapplys/eamapplys';
import './entity/eamwostates/eamwostates';
import './entity/eamdocument-types/eamdocument-types';
import './entity/eamasset-state-models/eamasset-state-models';
import './entity/eamwotypes/eamwotypes';
......@@ -15,6 +15,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMAssetStateGridView",
"viewtag": "00fcbd6336b5d40a31a2c3d5c346d16c"
},
"eamdocumentassettypedocgridview": {
"title": "文档表格视图",
"caption": "文档",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentAssetTypeDocGridView",
"viewtag": "04760f08f434367b552fa8ab8cf191dd"
},
"eamassettreeexpview": {
"title": "资产信息",
"caption": "资产",
......@@ -23,6 +31,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMAssetTreeExpView",
"viewtag": "075e8b706da4cd2328cf2239fd6f4d06"
},
"eamassettypeinfoview": {
"title": "资产类型信息",
"caption": "资产类型",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeInfoView",
"viewtag": "0a6cec446cd7b36771eccacdf2ce4b54"
},
"eamlocationstateeditview": {
"title": "功能位置状态信息",
"caption": "功能位置状态",
......@@ -39,6 +55,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMApplyInfo_MainView",
"viewtag": "0ef17d615938cdc829d919042267c23a"
},
"eamassettypeinfo_mainview": {
"title": "资产类型主信息",
"caption": "资产类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeInfo_MainView",
"viewtag": "0f5279839c91bc31fde9eebfa1b00f36"
},
"eamassetpartsgroupassetpartsgridview": {
"title": "备件包相关资产",
"caption": "资产备件包",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetPartsGroupAssetPartsGridView",
"viewtag": "106abbe5884e49ca4506a105bd3d2031"
},
"eamsparepartsgroupeditview": {
"title": "备件包编辑视图",
"caption": "备件包",
......@@ -183,6 +215,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMLocationStateModelPickupView",
"viewtag": "3d676a12800fca23bec463d5c5217413"
},
"eamdocumenttypegridview": {
"title": "文档类型信息",
"caption": "文档类型",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypeGridView",
"viewtag": "3fefaea52048336382356c9d224d17c1"
},
"eamwotypegridview": {
"title": "工单类型表格视图",
"caption": "工单类型",
......@@ -367,6 +407,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMLocationStateModelEditView",
"viewtag": "7bf1327f579d782d5cdb98528999a5e0"
},
"eamdocumenteditview": {
"title": "文档编辑视图",
"caption": "文档",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentEditView",
"viewtag": "7d7cbe6f35cdf729007b90156298a515"
},
"eamassetpartsgroupeditview": {
"title": "资产备件包编辑视图",
"caption": "资产备件包",
......@@ -407,6 +455,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMWorkOrderChildWOGridView",
"viewtag": "8a03ef5ec2679c20c8072339004dcaaf"
},
"eamdocumenttypepickupgridview": {
"title": "文档类型选择表格视图",
"caption": "文档类型",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypePickupGridView",
"viewtag": "8dad4ab59adf6e7eb152878eb283da71"
},
"eamworkordereditview": {
"title": "工单编辑视图",
"caption": "工单",
......@@ -439,6 +495,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMApplyInfoView",
"viewtag": "96e58ee9a57415beb8209aae53b14926"
},
"eamdocumentgridview": {
"title": "文档表格视图",
"caption": "文档",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentGridView",
"viewtag": "9930ab7fa32bcb829b706489a25ca808"
},
"eamdocumenttypeeditview": {
"title": "文档类型编辑",
"caption": "文档类型",
"viewtype": "DEEDITVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypeEditView",
"viewtag": "9cfb79c7e6fd653338c0366c9d304384"
},
"eamsparepartsgroupinfoview": {
"title": "备件包信息",
"caption": "备件包",
......@@ -703,6 +775,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMPRODUCTPickupView",
"viewtag": "d768b752c0404797713700991cbf95c5"
},
"eamdocumenttypepickupview": {
"title": "文档类型数据选择视图",
"caption": "文档类型",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Asset",
"viewname": "EAMDocumentTypePickupView",
"viewtag": "d7f78755bc3c9a5855de8a2fc67e668e"
},
"eamplangridview": {
"title": "维护计划信息",
"caption": "维护计划",
......@@ -735,6 +815,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "EAMApplyStateEditView",
"viewtag": "e3f067b2352dbb274918bccb115ebcde"
},
"eamassettypesummaryview": {
"title": "资产类型主信息看板",
"caption": "资产类型",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Asset",
"viewname": "EAMAssetTypeSummaryView",
"viewtag": "e82ae69965b5b61347246f54ab96dc6f"
},
"eamsparepartsgrouppickupgridview": {
"title": "备件包选择表格视图",
"caption": "备件包",
......
<studio-view-style2 viewName="eamassetpartsgroupassetpartsgridview" viewTitle="备件包相关资产" class='degridview eamasset-parts-group-asset-parts-grid-view'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="资产备件包名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </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="./eamasset-parts-group-asset-parts-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetPartsGroupAssetPartsGridViewBase } from './eamasset-parts-group-asset-parts-grid-view-base';
import view_grid from '@widgets/eamasset-parts-group/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamasset-parts-group/default-searchform/default-searchform.vue';
/**
* 备件包相关资产视图
*
* @export
* @class EAMAssetPartsGroupAssetPartsGridView
* @extends {EAMAssetPartsGroupAssetPartsGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetPartsGroupAssetPartsGridView extends EAMAssetPartsGroupAssetPartsGridViewBase { }
</script>
......@@ -371,9 +371,9 @@ export class EAMAssetPartsGroupPartsAssetGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.eamsparepartsgroup && true){
if(tempContext.eamassettype && true){
deResParameters = [
{ pathName: 'eamsparepartsgroups', parameterName: 'eamsparepartsgroup' },
{ pathName: 'eamassettypes', parameterName: 'eamassettype' },
]
}
const parameters: any[] = [
......@@ -421,9 +421,9 @@ export class EAMAssetPartsGroupPartsAssetGridViewBase extends GridViewBase {
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.eamsparepartsgroup && true){
if(tempContext.eamassettype && true){
deResParameters = [
{ pathName: 'eamsparepartsgroups', parameterName: 'eamsparepartsgroup' },
{ pathName: 'eamassettypes', parameterName: 'eamassettype' },
]
}
const parameters: any[] = [
......
......@@ -540,7 +540,7 @@ export class EAMAssetTypeGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'eamassettypes', parameterName: 'eamassettype' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'infoview', parameterName: 'infoview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import EAMAssetTypeService from '@/service/eamasset-type/eamasset-type-service';
import EAMAssetTypeAuthService from '@/authservice/eamasset-type/eamasset-type-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import EAMAssetTypeUIService from '@/uiservice/eamasset-type/eamasset-type-ui-service';
/**
* 资产类型主信息视图基类
*
* @export
* @class EAMAssetTypeInfo_MainViewBase
* @extends {EditViewBase}
*/
export class EAMAssetTypeInfo_MainViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected appDeName: string = 'eamassettype';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected appDeKey: string = 'eamassettypeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected appDeMajor: string = 'eamassettypename';
/**
* 实体服务对象
*
* @type {EAMAssetTypeService}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected appEntityService: EAMAssetTypeService = new EAMAssetTypeService;
/**
* 实体权限服务对象
*
* @type EAMAssetTypeUIService
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public appUIService: EAMAssetTypeUIService = new EAMAssetTypeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected model: any = {
srfCaption: 'entities.eamassettype.views.info_mainview.caption',
srfTitle: 'entities.eamassettype.views.info_mainview.title',
srfSubTitle: 'entities.eamassettype.views.info_mainview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '0f5279839c91bc31fde9eebfa1b00f36';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'eamassettype',
majorPSDEField: 'eamassettypename',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeInfo_MainViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="eamassettypeinfo_mainview" viewTitle="资产类型主信息" class='deeditview eamasset-type-info-main-view from-dashboard-style'>
<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="./eamasset-type-info-main-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetTypeInfo_MainViewBase } from './eamasset-type-info-main-view-base';
import view_form from '@widgets/eamasset-type/if-001-form/if-001-form.vue';
/**
* 资产类型主信息视图
*
* @export
* @class EAMAssetTypeInfo_MainView
* @extends {EAMAssetTypeInfo_MainViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetTypeInfo_MainView extends EAMAssetTypeInfo_MainViewBase { }
</script>
import { Subject } from 'rxjs';
import { TabExpViewBase } from '@/studio-core';
import EAMAssetTypeService from '@/service/eamasset-type/eamasset-type-service';
import EAMAssetTypeAuthService from '@/authservice/eamasset-type/eamasset-type-auth-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
import EAMAssetTypeUIService from '@/uiservice/eamasset-type/eamasset-type-ui-service';
/**
* 资产类型信息视图基类
*
* @export
* @class EAMAssetTypeInfoViewBase
* @extends {TabExpViewBase}
*/
export class EAMAssetTypeInfoViewBase extends TabExpViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfoViewBase
*/
protected appDeName: string = 'eamassettype';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfoViewBase
*/
protected appDeKey: string = 'eamassettypeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetTypeInfoViewBase
*/
protected appDeMajor: string = 'eamassettypename';
/**
* 实体服务对象
*
* @type {EAMAssetTypeService}
* @memberof EAMAssetTypeInfoViewBase
*/
protected appEntityService: EAMAssetTypeService = new EAMAssetTypeService;
/**
* 实体权限服务对象
*
* @type EAMAssetTypeUIService
* @memberof EAMAssetTypeInfoViewBase
*/
public appUIService: EAMAssetTypeUIService = new EAMAssetTypeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetTypeInfoViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetTypeInfoViewBase
*/
protected model: any = {
srfCaption: 'entities.eamassettype.views.infoview.caption',
srfTitle: 'entities.eamassettype.views.infoview.title',
srfSubTitle: 'entities.eamassettype.views.infoview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetTypeInfoViewBase
*/
protected containerModel: any = {
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '0a6cec446cd7b36771eccacdf2ce4b54';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetTypeInfoViewBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetTypeInfoViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'eamassettype',
majorPSDEField: 'eamassettypename',
isLoadDefault: true,
});
}
}
\ No newline at end of file
<studio-view-style2 viewName="eamassettypeinfoview" viewTitle="资产类型信息" class='detabexpview eamasset-type-info-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
name="tabexppanel"
ref='tabexppanel'
@closeview="closeView($event)">
</view_tabexppanel>
</studio-view-style2>
\ No newline at end of file
<template src="./eamasset-type-info-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetTypeInfoViewBase } from './eamasset-type-info-view-base';
import view_tabexppanel from '@widgets/eamasset-type/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.vue';
/**
* 资产类型信息视图
*
* @export
* @class EAMAssetTypeInfoView
* @extends {EAMAssetTypeInfoViewBase}
*/
@Component({
components: {
view_tabexppanel,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetTypeInfoView extends EAMAssetTypeInfoViewBase { }
</script>
import { Subject } from 'rxjs';
import { DashboardViewBase } from '@/studio-core';
import EAMAssetTypeService from '@/service/eamasset-type/eamasset-type-service';
import EAMAssetTypeAuthService from '@/authservice/eamasset-type/eamasset-type-auth-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
import EAMAssetTypeUIService from '@/uiservice/eamasset-type/eamasset-type-ui-service';
/**
* 资产类型主信息看板视图基类
*
* @export
* @class EAMAssetTypeSummaryViewBase
* @extends {DashboardViewBase}
*/
export class EAMAssetTypeSummaryViewBase extends DashboardViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected appDeName: string = 'eamassettype';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected appDeKey: string = 'eamassettypeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected appDeMajor: string = 'eamassettypename';
/**
* 实体服务对象
*
* @type {EAMAssetTypeService}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected appEntityService: EAMAssetTypeService = new EAMAssetTypeService;
/**
* 实体权限服务对象
*
* @type EAMAssetTypeUIService
* @memberof EAMAssetTypeSummaryViewBase
*/
public appUIService: EAMAssetTypeUIService = new EAMAssetTypeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected model: any = {
srfCaption: 'entities.eamassettype.views.summaryview.caption',
srfTitle: 'entities.eamassettype.views.summaryview.title',
srfSubTitle: 'entities.eamassettype.views.summaryview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMAssetTypeSummaryViewBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'e82ae69965b5b61347246f54ab96dc6f';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMAssetTypeSummaryViewBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMAssetTypeSummaryViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'eamassettype',
majorPSDEField: 'eamassettypename',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMAssetTypeSummaryViewBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="eamassettypesummaryview" viewTitle="资产类型主信息看板" class='deportalview eamasset-type-summary-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
name="dashboard"
ref='dashboard'
@load="dashboard_load($event)"
@closeview="closeView($event)">
</view_dashboard>
</studio-view-style2>
\ No newline at end of file
<template src="./eamasset-type-summary-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMAssetTypeSummaryViewBase } from './eamasset-type-summary-view-base';
import view_dashboard from '@widgets/eamasset-type/board-001-dashboard/board-001-dashboard.vue';
/**
* 资产类型主信息看板视图
*
* @export
* @class EAMAssetTypeSummaryView
* @extends {EAMAssetTypeSummaryViewBase}
*/
@Component({
components: {
view_dashboard,
}
})
@VueLifeCycleProcessing()
export default class EAMAssetTypeSummaryView extends EAMAssetTypeSummaryViewBase { }
</script>
<studio-view-style2 viewName="eamdocumentassettypedocgridview" viewTitle="文档表格视图" class='degridview eamdocument-asset-type-doc-grid-view'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" placeholder="文档名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/> </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="./eamdocument-asset-type-doc-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMDocumentAssetTypeDocGridViewBase } from './eamdocument-asset-type-doc-grid-view-base';
import view_grid from '@widgets/eamdocument/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamdocument/default-searchform/default-searchform.vue';
/**
* 文档表格视图视图
*
* @export
* @class EAMDocumentAssetTypeDocGridView
* @extends {EAMDocumentAssetTypeDocGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMDocumentAssetTypeDocGridView extends EAMDocumentAssetTypeDocGridViewBase { }
</script>
<studio-view-style2 viewName="eamdocumenteditview" viewTitle="文档编辑视图" class='deeditview eamdocument-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.apply(_self, arguments)"/> </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="./eamdocument-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMDocumentEditViewBase } from './eamdocument-edit-view-base';
import view_form from '@widgets/eamdocument/main-form/main-form.vue';
/**
* 文档编辑视图视图
*
* @export
* @class EAMDocumentEditView
* @extends {EAMDocumentEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class EAMDocumentEditView extends EAMDocumentEditViewBase { }
</script>
<studio-view-style2 viewName="eamdocumentgridview" viewTitle="文档表格视图" class='degridview eamdocument-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.apply(_self, arguments)"/> </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="./eamdocument-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { EAMDocumentGridViewBase } from './eamdocument-grid-view-base';
import view_grid from '@widgets/eamdocument/main-grid/main-grid.vue';
import view_searchform from '@widgets/eamdocument/default-searchform/default-searchform.vue';
/**
* 文档表格视图视图
*
* @export
* @class EAMDocumentGridView
* @extends {EAMDocumentGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class EAMDocumentGridView extends EAMDocumentGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import EAMDocumentTypeService from '@/service/eamdocument-type/eamdocument-type-service';
import EAMDocumentTypeAuthService from '@/authservice/eamdocument-type/eamdocument-type-auth-service';
import EditViewEngine from '@engine/view/edit-view-engine';
import EAMDocumentTypeUIService from '@/uiservice/eamdocument-type/eamdocument-type-ui-service';
/**
* 文档类型编辑视图基类
*
* @export
* @class EAMDocumentTypeEditViewBase
* @extends {EditViewBase}
*/
export class EAMDocumentTypeEditViewBase extends EditViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof EAMDocumentTypeEditViewBase
*/
protected appDeName: string = 'eamdocumenttype';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof EAMDocumentTypeEditViewBase
*/
protected appDeKey: string = 'eamdocumenttypeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof EAMDocumentTypeEditViewBase
*/
protected appDeMajor: string = 'eamdocumenttypename';
/**
* 实体服务对象
*
* @type {EAMDocumentTypeService}
* @memberof EAMDocumentTypeEditViewBase
*/
protected appEntityService: EAMDocumentTypeService = new EAMDocumentTypeService;
/**
* 实体权限服务对象
*
* @type EAMDocumentTypeUIService
* @memberof EAMDocumentTypeEditViewBase
*/
public appUIService: EAMDocumentTypeUIService = new EAMDocumentTypeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof EAMDocumentTypeEditViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof EAMDocumentTypeEditViewBase
*/
protected model: any = {
srfCaption: 'entities.eamdocumenttype.views.editview.caption',
srfTitle: 'entities.eamdocumenttype.views.editview.title',
srfSubTitle: 'entities.eamdocumenttype.views.editview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof EAMDocumentTypeEditViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof EAMDocumentTypeEditView
*/
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 = '9cfb79c7e6fd653338c0366c9d304384';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof EAMDocumentTypeEditViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof EAMDocumentTypeEditViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'eamdocumenttype',
majorPSDEField: 'eamdocumenttypename',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMDocumentTypeEditViewBase
*/
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 EAMDocumentTypeEditViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMDocumentTypeEditViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof EAMDocumentTypeEditViewBase
*/
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,"EAMDocumentType");
}
/**
* 逻辑事件
*
* @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,"EAMDocumentType");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof EAMDocumentTypeEditViewBase
*/
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 EAMDocumentTypeEditViewBase
*/
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
......@@ -73,6 +73,8 @@ export default class EAMAssetTypeServiceBase extends EntityService {
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/eamassettypes`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_eamassetpartsgroups',JSON.stringify(res.data.eamassetpartsgroups?res.data.eamassetpartsgroups:[]));
this.tempStorage.setItem(tempContext.srfsessionkey+'_eamdocuments',JSON.stringify(res.data.eamdocuments?res.data.eamdocuments:[]));
return res;
}
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册