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

xignzi006 发布系统代码

上级 674dfc27
...@@ -409,6 +409,16 @@ ...@@ -409,6 +409,16 @@
"viewtag": "2665d630c1446030eab8f52c5ebca818", "viewtag": "2665d630c1446030eab8f52c5ebca818",
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"incidentbyparentkey": {
"title": "服务案例信息",
"caption": "案例",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IncidentByParentKey",
"viewfilename": "incident-by-parent-key",
"viewtag": "26e0707950d8676b9a9363c6bc46ee89",
"memo": ""
},
"accountpickupview": { "accountpickupview": {
"title": "客户数据选择视图", "title": "客户数据选择视图",
"caption": "客户", "caption": "客户",
......
...@@ -109,6 +109,10 @@ export default { ...@@ -109,6 +109,10 @@ export default {
caption: "案例", caption: "案例",
title: "子案例信息", title: "子案例信息",
}, },
byparentkey: {
caption: "案例",
title: "服务案例信息",
},
gridview: { gridview: {
caption: "案例", caption: "案例",
title: "服务案例信息", title: "服务案例信息",
...@@ -142,12 +146,10 @@ export default { ...@@ -142,12 +146,10 @@ export default {
title: "案例数据看板视图", title: "案例数据看板视图",
}, },
}, },
main_form: { quickcreate_form: {
details: { details: {
group1: "incident基本信息", group1: "案例基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "案例", srfkey: "案例",
...@@ -157,18 +159,23 @@ export default { ...@@ -157,18 +159,23 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
createman: "建立人", subjectname: "主题",
createdate: "建立时间", customerid: "客户",
updateman: "更新人", caseorigincode: "起源",
updatedate: "更新时间", productname: "产品",
entitlementname: "权利",
productid: "产品",
incidentid: "案例", incidentid: "案例",
subjectid: "主题",
entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
edit_childincident_form: { info_incident_form: {
details: { details: {
group1: "案例信息", group1: "案例基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -179,25 +186,25 @@ export default { ...@@ -179,25 +186,25 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
customerid: "客户",
subjectname: "主题", subjectname: "主题",
casetypecode: "案例类型", customerid: "客户",
primarycontactname: "联系人",
caseorigincode: "起源", caseorigincode: "起源",
productname: "产品", productname: "产品",
entitlementname: "权利", entitlementname: "权利",
productid: "产品", primarycontactname: "联系人",
casetypecode: "案例类型",
parentcasename: "上级案例",
escalated: "已升级",
followupby: "跟进工作截止日期",
description: "说明",
incidentid: "案例", incidentid: "案例",
primarycontactid: "联系人",
subjectid: "主题",
entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: { edit_childincident_form: {
details: { details: {
group1: "案例基本信息", group1: "案例信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -208,24 +215,28 @@ export default { ...@@ -208,24 +215,28 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
subjectname: "主题",
customerid: "客户", customerid: "客户",
subjectname: "主题",
casetypecode: "案例类型",
primarycontactname: "联系人",
caseorigincode: "起源", caseorigincode: "起源",
productname: "产品", productname: "产品",
entitlementname: "权利", entitlementname: "权利",
productid: "产品", productid: "产品",
incidentid: "案例", incidentid: "案例",
primarycontactid: "联系人",
subjectid: "主题", subjectid: "主题",
entitlementid: "权利", entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
info_incident_form: { main_form: {
details: { details: {
group1: "案例基本信息", group1: "incident基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "案例", srfkey: "案例",
...@@ -235,17 +246,10 @@ export default { ...@@ -235,17 +246,10 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
subjectname: "主题", createman: "建立人",
customerid: "客户", createdate: "建立时间",
caseorigincode: "起源", updateman: "更新人",
productname: "产品", updatedate: "更新时间",
entitlementname: "权利",
primarycontactname: "联系人",
casetypecode: "案例类型",
parentcasename: "上级案例",
escalated: "已升级",
followupby: "跟进工作截止日期",
description: "说明",
incidentid: "案例", incidentid: "案例",
}, },
uiactions: { uiactions: {
...@@ -270,6 +274,60 @@ export default { ...@@ -270,6 +274,60 @@ export default {
uiactions: { uiactions: {
}, },
}, },
childincidentgridviewtoolbar_toolbar: {
},
edit_chlidincidenttoolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
byparentkeytoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "Save", caption: "Save",
...@@ -308,18 +366,6 @@ export default { ...@@ -308,18 +366,6 @@ export default {
tip: "Copy {0}", tip: "Copy {0}",
}, },
}, },
edit_chlidincidenttoolbar_toolbar: {
tbitem1: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
childincidentgridviewtoolbar_toolbar: {
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: { tbitem1_openquickcreateview: {
caption: "新建", caption: "新建",
......
...@@ -108,6 +108,10 @@ export default { ...@@ -108,6 +108,10 @@ export default {
caption: "案例", caption: "案例",
title: "子案例信息", title: "子案例信息",
}, },
byparentkey: {
caption: "案例",
title: "服务案例信息",
},
gridview: { gridview: {
caption: "案例", caption: "案例",
title: "服务案例信息", title: "服务案例信息",
...@@ -141,12 +145,10 @@ export default { ...@@ -141,12 +145,10 @@ export default {
title: "案例数据看板视图", title: "案例数据看板视图",
}, },
}, },
main_form: { quickcreate_form: {
details: { details: {
group1: "incident基本信息", group1: "案例基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "案例", srfkey: "案例",
...@@ -156,18 +158,23 @@ export default { ...@@ -156,18 +158,23 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
createman: "建立人", subjectname: "主题",
createdate: "建立时间", customerid: "客户",
updateman: "更新人", caseorigincode: "起源",
updatedate: "更新时间", productname: "产品",
entitlementname: "权利",
productid: "产品",
incidentid: "案例", incidentid: "案例",
subjectid: "主题",
entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
edit_childincident_form: { info_incident_form: {
details: { details: {
group1: "案例信息", group1: "案例基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -178,25 +185,25 @@ export default { ...@@ -178,25 +185,25 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
customerid: "客户",
subjectname: "主题", subjectname: "主题",
casetypecode: "案例类型", customerid: "客户",
primarycontactname: "联系人",
caseorigincode: "起源", caseorigincode: "起源",
productname: "产品", productname: "产品",
entitlementname: "权利", entitlementname: "权利",
productid: "产品", primarycontactname: "联系人",
casetypecode: "案例类型",
parentcasename: "上级案例",
escalated: "已升级",
followupby: "跟进工作截止日期",
description: "说明",
incidentid: "案例", incidentid: "案例",
primarycontactid: "联系人",
subjectid: "主题",
entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: { edit_childincident_form: {
details: { details: {
group1: "案例基本信息", group1: "案例信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -207,24 +214,28 @@ export default { ...@@ -207,24 +214,28 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
subjectname: "主题",
customerid: "客户", customerid: "客户",
subjectname: "主题",
casetypecode: "案例类型",
primarycontactname: "联系人",
caseorigincode: "起源", caseorigincode: "起源",
productname: "产品", productname: "产品",
entitlementname: "权利", entitlementname: "权利",
productid: "产品", productid: "产品",
incidentid: "案例", incidentid: "案例",
primarycontactid: "联系人",
subjectid: "主题", subjectid: "主题",
entitlementid: "权利", entitlementid: "权利",
}, },
uiactions: { uiactions: {
}, },
}, },
info_incident_form: { main_form: {
details: { details: {
group1: "案例基本信息", group1: "incident基本信息",
grouppanel1: "详细信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "案例", srfkey: "案例",
...@@ -234,17 +245,10 @@ export default { ...@@ -234,17 +245,10 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
title: "案例标题", title: "案例标题",
subjectname: "主题", createman: "建立人",
customerid: "客户", createdate: "建立时间",
caseorigincode: "起源", updateman: "更新人",
productname: "产品", updatedate: "更新时间",
entitlementname: "权利",
primarycontactname: "联系人",
casetypecode: "案例类型",
parentcasename: "上级案例",
escalated: "已升级",
followupby: "跟进工作截止日期",
description: "说明",
incidentid: "案例", incidentid: "案例",
}, },
uiactions: { uiactions: {
...@@ -269,6 +273,60 @@ export default { ...@@ -269,6 +273,60 @@ export default {
uiactions: { uiactions: {
}, },
}, },
childincidentgridviewtoolbar_toolbar: {
},
edit_chlidincidenttoolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
byparentkeytoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "保存", caption: "保存",
...@@ -307,18 +365,6 @@ export default { ...@@ -307,18 +365,6 @@ export default {
tip: "拷贝", tip: "拷贝",
}, },
}, },
edit_chlidincidenttoolbar_toolbar: {
tbitem1: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem2: {
caption: "关闭",
tip: "关闭",
},
},
childincidentgridviewtoolbar_toolbar: {
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: { tbitem1_openquickcreateview: {
caption: "新建", caption: "新建",
......
...@@ -271,6 +271,50 @@ mock.onPost(new RegExp(/^\/incidents\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply(( ...@@ -271,6 +271,50 @@ mock.onPost(new RegExp(/^\/incidents\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((
return [status, data]; return [status, data];
}); });
// FetchByParentKey
mock.onGet(new RegExp(/^\/incidents\/fetchbyparentkey$/)).reply((config: any) => {
console.groupCollapsed("实体:incident 方法: FetchByParentKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas);
console.groupEnd();
console.groupEnd();
return [status, mockDatas ? mockDatas : []];
});
// FetchByParentKey
mock.onGet(new RegExp(/^\/incidents\/fetchbyparentkey(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:incident 方法: FetchByParentKey");
console.table({url:config.url, method: config.method, data:config.data});
if(config.url.includes('page')){
let url = config.url.split('?')[1];
let params = qs.parse(url);
Object.assign(config, params);
}
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
let total = mockDatas.length;
let records: Array<any> = [];
if(!config.page || !config.size){
records = mockDatas;
}else{
if((config.page-1)*config.size < total){
records = mockDatas.slice(config.page,config.size);
}
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(records ? records : []);
console.groupEnd();
console.groupEnd();
return [status, records ? records : []];
});
// FetchDefault // FetchDefault
mock.onGet(new RegExp(/^\/incidents\/fetchdefault$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/incidents\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:incident 方法: FetchDefault"); console.groupCollapsed("实体:incident 方法: FetchDefault");
......
...@@ -335,6 +335,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -335,6 +335,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "GoalPickupView", "viewname": "GoalPickupView",
"viewtag": "2665d630c1446030eab8f52c5ebca818" "viewtag": "2665d630c1446030eab8f52c5ebca818"
}, },
"incidentbyparentkey": {
"title": "服务案例信息",
"caption": "案例",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IncidentByParentKey",
"viewtag": "26e0707950d8676b9a9363c6bc46ee89"
},
"accountpickupview": { "accountpickupview": {
"title": "客户数据选择视图", "title": "客户数据选择视图",
"caption": "客户", "caption": "客户",
......
<studio-view-style2 viewName="incidentbyparentkey" viewTitle="服务案例信息" class='degridview incident-by-parent-key'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" 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"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchByParentKey"
:newdata="newdata"
:opendata="opendata"
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="./incident-by-parent-key.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IncidentByParentKeyBase } from './incident-by-parent-key-base';
import view_grid from '@widgets/incident/main-grid/main-grid.vue';
import view_searchform from '@widgets/incident/default-searchform/default-searchform.vue';
/**
* 服务案例信息视图
*
* @export
* @class IncidentByParentKey
* @extends {IncidentByParentKeyBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class IncidentByParentKey extends IncidentByParentKeyBase { }
</script>
...@@ -132,6 +132,7 @@ export const PageComponents = { ...@@ -132,6 +132,7 @@ export const PageComponents = {
Vue.component('invoice-info-view', () => import('@pages/finance/invoice-info-view/invoice-info-view.vue')); Vue.component('invoice-info-view', () => import('@pages/finance/invoice-info-view/invoice-info-view.vue'));
Vue.component('contact-by-account', () => import('@pages/base/contact-by-account/contact-by-account.vue')); Vue.component('contact-by-account', () => import('@pages/base/contact-by-account/contact-by-account.vue'));
Vue.component('lead-qualification', () => import('@pages/sales/lead-qualification/lead-qualification.vue')); Vue.component('lead-qualification', () => import('@pages/sales/lead-qualification/lead-qualification.vue'));
Vue.component('incident-by-parent-key', () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.vue'));
Vue.component('account-status-tab-view', () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue')); Vue.component('account-status-tab-view', () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue'));
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue')); Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
Vue.component('sales-literature-item-grid-view', () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue')); Vue.component('sales-literature-item-grid-view', () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'));
......
...@@ -3612,6 +3612,20 @@ const router = new Router({ ...@@ -3612,6 +3612,20 @@ const router = new Router({
}, },
component: () => import('@pages/sales/lead-qualification/lead-qualification.vue'), component: () => import('@pages/sales/lead-qualification/lead-qualification.vue'),
}, },
{
path: 'incidents/:incident?/byparentkey/:byparentkey?',
meta: {
caption: 'entities.incident.views.byparentkey.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'incidents', parameterName: 'incident' },
{ pathName: 'byparentkey', parameterName: 'byparentkey' },
],
requireAuth: true,
},
component: () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.vue'),
},
{ {
path: 'salesliteratures/:salesliterature?/competitorsalesliteratures/:competitorsalesliterature?/sallitcompgridview/:sallitcompgridview?', path: 'salesliteratures/:salesliterature?/competitorsalesliteratures/:competitorsalesliterature?/sallitcompgridview/:sallitcompgridview?',
meta: { meta: {
......
...@@ -211,6 +211,20 @@ export default class IncidentServiceBase extends EntityService { ...@@ -211,6 +211,20 @@ export default class IncidentServiceBase extends EntityService {
return res; return res;
} }
/**
* FetchByParentKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IncidentServiceBase
*/
public async FetchByParentKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/incidents/fetchbyparentkey`,tempData,isloading);
}
/** /**
* FetchDefault接口方法 * FetchDefault接口方法
* *
......
...@@ -355,6 +355,17 @@ export const viewstate: any = { ...@@ -355,6 +355,17 @@ export const viewstate: any = {
'2d001ccdcb51e48a9d4273278b26d782', '2d001ccdcb51e48a9d4273278b26d782',
], ],
}, },
{
viewtag: '26e0707950d8676b9a9363c6bc46ee89',
viewmodule: 'Service',
viewname: 'IncidentByParentKey',
viewaction: '',
viewdatachange: false,
refviews: [
'540213698dac06ea2ef3193da7fe9b11',
'f440f1d3b950a89e6cb72cadea120b74',
],
},
{ {
viewtag: '29bfcd628ab25e297248ff0524d12908', viewtag: '29bfcd628ab25e297248ff0524d12908',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -438,6 +449,7 @@ export const viewstate: any = { ...@@ -438,6 +449,7 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'fb06f2c1cea1ac2a5a70c20f4a277ae5', 'fb06f2c1cea1ac2a5a70c20f4a277ae5',
'26e0707950d8676b9a9363c6bc46ee89',
'5c7e90ccfaeb49b5bd84ae6c17b479e3', '5c7e90ccfaeb49b5bd84ae6c17b479e3',
'bae77557d2f7a7852b634dc5d5a93435', 'bae77557d2f7a7852b634dc5d5a93435',
'016e75bb460270519a0ee9dda57b2c90', '016e75bb460270519a0ee9dda57b2c90',
...@@ -2019,6 +2031,7 @@ export const viewstate: any = { ...@@ -2019,6 +2031,7 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'6f35f461b53398775ff2f1a563776fa3', '6f35f461b53398775ff2f1a563776fa3',
'26e0707950d8676b9a9363c6bc46ee89',
'bae77557d2f7a7852b634dc5d5a93435', 'bae77557d2f7a7852b634dc5d5a93435',
'50138c2b066081ec8b6fe67c88af5371', '50138c2b066081ec8b6fe67c88af5371',
'6168a7e787ead13b1e0f9a55007bc68c', '6168a7e787ead13b1e0f9a55007bc68c',
......
...@@ -81,6 +81,7 @@ export default class IncidentUIServiceBase extends UIService { ...@@ -81,6 +81,7 @@ export default class IncidentUIServiceBase extends UIService {
public initViewMap(){ public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'incidents'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'edit_chlidincident',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'edit_chlidincident',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'incidents'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'});
......
...@@ -50,6 +50,7 @@ export class InfotabexppanelTabexppanelBase extends TabExpPanelControlBase { ...@@ -50,6 +50,7 @@ export class InfotabexppanelTabexppanelBase extends TabExpPanelControlBase {
tabviewpanel2: false , tabviewpanel2: false ,
tabviewpanel3: false , tabviewpanel3: false ,
tabviewpanel4: false , tabviewpanel4: false ,
tabviewpanel5: false ,
} }
/** /**
......
...@@ -120,5 +120,29 @@ ...@@ -120,5 +120,29 @@
@closeview="closeView($event)"> @closeview="closeView($event)">
</view_tabviewpanel4> </view_tabviewpanel4>
</tab-pane> </tab-pane>
<tab-pane :index="4" name='tabviewpanel5' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('span', '服务案例'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel5
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel5"
name="tabviewpanel5"
ref='tabviewpanel5'
:expActive="activatedTabViewPanel === 'tabviewpanel5'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel5>
</tab-pane>
</tabs> </tabs>
</div> </div>
\ No newline at end of file
...@@ -7,6 +7,7 @@ import view_tabviewpanel from '@widgets/account/infotabviewpanel-tabviewpanel/in ...@@ -7,6 +7,7 @@ import view_tabviewpanel from '@widgets/account/infotabviewpanel-tabviewpanel/in
import view_tabviewpanel2 from '@widgets/account/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.vue'; import view_tabviewpanel2 from '@widgets/account/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.vue';
import view_tabviewpanel3 from '@widgets/account/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue'; import view_tabviewpanel3 from '@widgets/account/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue';
import view_tabviewpanel4 from '@widgets/account/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.vue'; import view_tabviewpanel4 from '@widgets/account/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.vue';
import view_tabviewpanel5 from '@widgets/account/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.vue';
/** /**
...@@ -22,6 +23,7 @@ import view_tabviewpanel4 from '@widgets/account/infotabviewpanel4-tabviewpanel/ ...@@ -22,6 +23,7 @@ import view_tabviewpanel4 from '@widgets/account/infotabviewpanel4-tabviewpanel/
view_tabviewpanel2, view_tabviewpanel2,
view_tabviewpanel3, view_tabviewpanel3,
view_tabviewpanel4, view_tabviewpanel4,
view_tabviewpanel5,
} }
}) })
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import Infotabviewpanel5Service from './infotabviewpanel5-tabviewpanel-service';
/**
* tabviewpanel5部件基类
*
* @export
* @class MainControlBase
* @extends {Infotabviewpanel5TabviewpanelBase}
*/
export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel5Service}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
public service: Infotabviewpanel5Service = new Infotabviewpanel5Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
protected appDeName: string = 'account';
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel5
*/
@Prop()
public expActive!: any;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel5
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel5
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel5
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel5
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel5
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel5
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel5
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel5
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel5
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata =JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel5
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel5
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel5
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* Infotabviewpanel5 部件模型
*
* @export
* @class Infotabviewpanel5Model
*/
export default class Infotabviewpanel5Model {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Infotabviewpanel5Model
*/
public getDataItems(): any[] {
return [
{
name: 'address1_primarycontactname',
},
{
name: 'openrevenue_date',
},
{
name: 'address2_utcoffset',
},
{
name: 'fax',
},
{
name: 'address1_composite',
},
{
name: 'entityimage',
},
{
name: 'emailaddress1',
},
{
name: 'overriddencreatedon',
},
{
name: 'address1_stateorprovince',
},
{
name: 'openrevenue',
},
{
name: 'address1_upszone',
},
{
name: 'followemail',
},
{
name: 'marketingonly',
},
{
name: 'numberofemployees',
},
{
name: 'telephone1',
},
{
name: 'aging60',
},
{
name: 'sharesoutstanding',
},
{
name: 'address2_freighttermscode',
},
{
name: 'entityimage_timestamp',
},
{
name: 'revenue_base',
},
{
name: 'accountratingcode',
},
{
name: 'donotbulkemail',
},
{
name: 'aging30',
},
{
name: 'donotbulkpostalmail',
},
{
name: 'creditlimit_base',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'customertypecode',
},
{
name: 'address2_longitude',
},
{
name: 'accountname',
},
{
name: 'participatesinworkflow',
},
{
name: 'preferredcontactmethodcode',
},
{
name: 'preferredappointmentdaycode',
},
{
name: 'marketcap',
},
{
name: 'address2_telephone1',
},
{
name: 'businesstypecode',
},
{
name: 'entityimageid',
},
{
name: 'address2_city',
},
{
name: 'ownershipcode',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'accountnumber',
},
{
name: 'address1_telephone2',
},
{
name: 'address1_line1',
},
{
name: 'donotphone',
},
{
name: 'address1_telephone3',
},
{
name: 'exchangerate',
},
{
name: 'address2_line2',
},
{
name: 'address2_telephone3',
},
{
name: 'address1_telephone1',
},
{
name: 'address1_fax',
},
{
name: 'address1_freighttermscode',
},
{
name: 'description',
},
{
name: 'merged',
},
{
name: 'address1_shippingmethodcode',
},
{
name: 'address1_name',
},
{
name: 'aging30_base',
},
{
name: 'address2_telephone2',
},
{
name: 'account',
prop: 'accountid',
},
{
name: 'primarytwitterid',
},
{
name: 'tickersymbol',
},
{
name: 'stockexchange',
},
{
name: 'address2_stateorprovince',
},
{
name: 'ftpsiteurl',
},
{
name: 'statuscode',
},
{
name: 'websiteurl',
},
{
name: 'donotpostalmail',
},
{
name: 'address1_city',
},
{
name: 'address2_fax',
},
{
name: 'aging90_base',
},
{
name: 'opendeals_date',
},
{
name: 'traversedpath',
},
{
name: 'shippingmethodcode',
},
{
name: 'address1_line2',
},
{
name: 'openrevenue_base',
},
{
name: 'updatedate',
},
{
name: 'preferredsystemuseridyominame',
},
{
name: 'address2_line3',
},
{
name: 'address1_postalcode',
},
{
name: 'address2_latitude',
},
{
name: 'ibizprivate',
},
{
name: 'territorycode',
},
{
name: 'teamsfollowed',
},
{
name: 'yominame',
},
{
name: 'address1_latitude',
},
{
name: 'telephone3',
},
{
name: 'ownerid',
},
{
name: 'address2_country',
},
{
name: 'masteraccountidyominame',
},
{
name: 'industrycode',
},
{
name: 'lastonholdtime',
},
{
name: 'address2_addressid',
},
{
name: 'onholdtime',
},
{
name: 'accountclassificationcode',
},
{
name: 'address1_country',
},
{
name: 'address1_addresstypecode',
},
{
name: 'statecode',
},
{
name: 'address2_addresstypecode',
},
{
name: 'accountcategorycode',
},
{
name: 'emailaddress2',
},
{
name: 'address2_shippingmethodcode',
},
{
name: 'importsequencenumber',
},
{
name: 'primarysatoriid',
},
{
name: 'customersizecode',
},
{
name: 'opendeals',
},
{
name: 'donotsendmm',
},
{
name: 'processid',
},
{
name: 'paymenttermscode',
},
{
name: 'sic',
},
{
name: 'address2_primarycontactname',
},
{
name: 'address1_utcoffset',
},
{
name: 'owneridyominame',
},
{
name: 'lastusedincampaign',
},
{
name: 'aging60_base',
},
{
name: 'donotfax',
},
{
name: 'updateman',
},
{
name: 'openrevenue_state',
},
{
name: 'opendeals_state',
},
{
name: 'versionnumber',
},
{
name: 'address1_longitude',
},
{
name: 'aging90',
},
{
name: 'entityimage_url',
},
{
name: 'creditlimit',
},
{
name: 'preferredsystemuserid',
},
{
name: 'revenue',
},
{
name: 'address1_county',
},
{
name: 'address1_line3',
},
{
name: 'stageid',
},
{
name: 'donotemail',
},
{
name: 'address2_postalcode',
},
{
name: 'preferredappointmenttimecode',
},
{
name: 'address2_upszone',
},
{
name: 'createdate',
},
{
name: 'address2_county',
},
{
name: 'owneridtype',
},
{
name: 'address2_composite',
},
{
name: 'address2_name',
},
{
name: 'address2_line1',
},
{
name: 'marketcap_base',
},
{
name: 'emailaddress3',
},
{
name: 'telephone2',
},
{
name: 'createman',
},
{
name: 'address1_postofficebox',
},
{
name: 'creditonhold',
},
{
name: 'address1_addressid',
},
{
name: 'address2_postofficebox',
},
{
name: 'slaname',
},
{
name: 'originatingleadid',
},
{
name: 'transactioncurrencyid',
},
{
name: 'defaultpricelevelid',
},
{
name: 'parentaccountid',
},
{
name: 'preferredequipmentid',
},
{
name: 'territoryid',
},
{
name: 'primarycontactid',
},
{
name: 'slaid',
},
{
name: 'preferredserviceid',
},
{
name: 'originatingleadname',
},
{
name: 'defaultpricelevelname',
},
{
name: 'territoryname',
},
{
name: 'parentaccountname',
},
{
name: 'preferredequipmentname',
},
{
name: 'preferredservicename',
},
{
name: 'primarycontactname',
},
{
name: 'transactioncurrencyname',
},
{
name: 'childaccountcount',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel5 部件服务对象
*
* @export
* @class Infotabviewpanel5Service
*/
export default class Infotabviewpanel5Service extends ControlService {
}
\ No newline at end of file
<div class='tabviewpanel' v-if='isActivied'>
<incident-by-parent-key
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false"
:viewUsage="7"
:expActive="expActive"
/>
</div>
\ No newline at end of file
<template src="./infotabviewpanel5-tabviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Infotabviewpanel5TabviewpanelBase } from './infotabviewpanel5-tabviewpanel-base';
/**
* tabviewpanel5部件
*
* @export
* @class Infotabviewpanel5Tabviewpanel
* @extends {Infotabviewpanel5TabviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Infotabviewpanel5Tabviewpanel extends Infotabviewpanel5TabviewpanelBase { }
</script>
...@@ -50,6 +50,7 @@ export class InfotabexppanelTabexppanelBase extends TabExpPanelControlBase { ...@@ -50,6 +50,7 @@ export class InfotabexppanelTabexppanelBase extends TabExpPanelControlBase {
tabviewpanel4: false , tabviewpanel4: false ,
tabviewpanel2: false , tabviewpanel2: false ,
tabviewpanel3: false , tabviewpanel3: false ,
tabviewpanel5: false ,
} }
/** /**
......
...@@ -120,5 +120,29 @@ ...@@ -120,5 +120,29 @@
@closeview="closeView($event)"> @closeview="closeView($event)">
</view_tabviewpanel3> </view_tabviewpanel3>
</tab-pane> </tab-pane>
<tab-pane :index="4" name='tabviewpanel5' tab='infotabexppanel' class=''
:label="(h) =>{
return h('div', [
h('span', '服务案例'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel5
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel5"
name="tabviewpanel5"
ref='tabviewpanel5'
:expActive="activatedTabViewPanel === 'tabviewpanel5'"
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel5>
</tab-pane>
</tabs> </tabs>
</div> </div>
\ No newline at end of file
...@@ -7,6 +7,7 @@ import view_tabviewpanel from '@widgets/contact/infotabviewpanel-tabviewpanel/in ...@@ -7,6 +7,7 @@ import view_tabviewpanel from '@widgets/contact/infotabviewpanel-tabviewpanel/in
import view_tabviewpanel4 from '@widgets/contact/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.vue'; import view_tabviewpanel4 from '@widgets/contact/infotabviewpanel4-tabviewpanel/infotabviewpanel4-tabviewpanel.vue';
import view_tabviewpanel2 from '@widgets/contact/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.vue'; import view_tabviewpanel2 from '@widgets/contact/infotabviewpanel2-tabviewpanel/infotabviewpanel2-tabviewpanel.vue';
import view_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue'; import view_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue';
import view_tabviewpanel5 from '@widgets/contact/infotabviewpanel5-tabviewpanel/infotabviewpanel5-tabviewpanel.vue';
/** /**
...@@ -22,6 +23,7 @@ import view_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/ ...@@ -22,6 +23,7 @@ import view_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/
view_tabviewpanel4, view_tabviewpanel4,
view_tabviewpanel2, view_tabviewpanel2,
view_tabviewpanel3, view_tabviewpanel3,
view_tabviewpanel5,
} }
}) })
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel5Service from './infotabviewpanel5-tabviewpanel-service';
/**
* tabviewpanel5部件基类
*
* @export
* @class MainControlBase
* @extends {Infotabviewpanel5TabviewpanelBase}
*/
export class Infotabviewpanel5TabviewpanelBase extends MainControlBase {
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel5Service}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
public service: Infotabviewpanel5Service = new Infotabviewpanel5Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Infotabviewpanel5TabviewpanelBase
*/
protected appDeName: string = 'contact';
/**
* 导航模式下项是否激活
*
* @type {*}
* @memberof Infotabviewpanel5
*/
@Prop()
public expActive!: any;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel5
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel5
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel5
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel5
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel5
*/
public localViewParam: any = null;
/**
* 传入上下文
*
* @type {string}
* @memberof TabExpViewtabviewpanel
*/
public viewdata: string = JSON.stringify(this.context);
/**
* 传入视图参数
*
* @type {string}
* @memberof PickupViewpickupviewpanel
*/
public viewparam: string = JSON.stringify(this.viewparams);
/**
* 视图面板过滤项
*
* @type {string}
* @memberof Infotabviewpanel5
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel5
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel5
*/
public afterCreated(){
this.initNavParam();
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
this.$forceUpdate();
this.initNavParam();
});
}
}
/**
* 初始化导航参数
*
* @memberof Infotabviewpanel5
*/
public initNavParam(){
if(!Object.is(this.navfilter,"")){
Object.assign(this.viewparams,{[this.navfilter]:this.context['majorentity']})
}
if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context);
}
if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param);
}
this.viewdata =JSON.stringify(this.context);
this.viewparam = JSON.stringify(this.viewparams);
}
/**
* 视图数据变化
*
* @memberof Infotabviewpanel5
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel5
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel5
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel5 部件服务对象
*
* @export
* @class Infotabviewpanel5Service
*/
export default class Infotabviewpanel5Service extends ControlService {
}
\ No newline at end of file
<div class='tabviewpanel' v-if='isActivied'>
<incident-by-parent-key
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false"
:viewUsage="7"
:expActive="expActive"
/>
</div>
\ No newline at end of file
<template src="./infotabviewpanel5-tabviewpanel.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Infotabviewpanel5TabviewpanelBase } from './infotabviewpanel5-tabviewpanel-base';
/**
* tabviewpanel5部件
*
* @export
* @class Infotabviewpanel5Tabviewpanel
* @extends {Infotabviewpanel5TabviewpanelBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Infotabviewpanel5Tabviewpanel extends Infotabviewpanel5TabviewpanelBase { }
</script>
...@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSONObject;
public interface IncidentMapper extends BaseMapper<Incident>{ public interface IncidentMapper extends BaseMapper<Incident>{
Page<Incident> searchByParentKey(IPage page, @Param("srf") IncidentSearchContext context, @Param("ew") Wrapper<Incident> wrapper) ;
Page<Incident> searchDefault(IPage page, @Param("srf") IncidentSearchContext context, @Param("ew") Wrapper<Incident> wrapper) ; Page<Incident> searchDefault(IPage page, @Param("srf") IncidentSearchContext context, @Param("ew") Wrapper<Incident> wrapper) ;
@Override @Override
Incident selectById(Serializable id); Incident selectById(Serializable id);
......
...@@ -36,6 +36,7 @@ public interface IIncidentService extends IService<Incident>{ ...@@ -36,6 +36,7 @@ public interface IIncidentService extends IService<Incident>{
boolean checkKey(Incident et) ; boolean checkKey(Incident et) ;
boolean save(Incident et) ; boolean save(Incident et) ;
void saveBatch(List<Incident> list) ; void saveBatch(List<Incident> list) ;
Page<Incident> searchByParentKey(IncidentSearchContext context) ;
Page<Incident> searchDefault(IncidentSearchContext context) ; Page<Incident> searchDefault(IncidentSearchContext context) ;
List<Incident> selectByPrimarycontactid(String contactid) ; List<Incident> selectByPrimarycontactid(String contactid) ;
void removeByPrimarycontactid(String contactid) ; void removeByPrimarycontactid(String contactid) ;
......
...@@ -327,6 +327,15 @@ public class IncidentServiceImpl extends ServiceImpl<IncidentMapper, Incident> i ...@@ -327,6 +327,15 @@ public class IncidentServiceImpl extends ServiceImpl<IncidentMapper, Incident> i
} }
/**
* 查询集合 ByParentKey
*/
@Override
public Page<Incident> searchByParentKey(IncidentSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<Incident> pages=baseMapper.searchByParentKey(context.getPages(),context,context.getSelectCond());
return new PageImpl<Incident>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
/** /**
* 查询集合 DEFAULT * 查询集合 DEFAULT
*/ */
......
...@@ -158,6 +158,15 @@ ...@@ -158,6 +158,15 @@
where transactioncurrencyid=#{transactioncurrencyid} where transactioncurrencyid=#{transactioncurrencyid}
</select> </select>
<!--数据集合[ByParentKey]-->
<select id="searchByParentKey" parameterType="cn.ibizlab.businesscentral.core.service.filter.IncidentSearchContext" resultMap="IncidentResultMap">
select t1.* from (
<include refid="ByParentKey" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据集合[Default]--> <!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.service.filter.IncidentSearchContext" resultMap="IncidentResultMap"> <select id="searchDefault" parameterType="cn.ibizlab.businesscentral.core.service.filter.IncidentSearchContext" resultMap="IncidentResultMap">
select t1.* from ( select t1.* from (
...@@ -167,6 +176,12 @@ ...@@ -167,6 +176,12 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if> <if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select> </select>
<!--数据查询[ByParentKey]-->
<sql id="ByParentKey" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTIDYOMINAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTIDYOMINAME`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTIDYOMINAME`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1
WHERE ( t1.`CUSTOMERID` = #{srf.datacontext.srfparentkey} )
]]>
</sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTIDYOMINAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTIDYOMINAME`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTIDYOMINAME`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1 <![CDATA[ SELECT t1.`ACCOUNTIDYOMINAME`, t1.`ACTIVITIESCOMPLETE`, t1.`ACTUALSERVICEUNITS`, t1.`BILLEDSERVICEUNITS`, t1.`BLOCKEDPROFILE`, t1.`CASEORIGINCODE`, t1.`CASETYPECODE`, t1.`CHECKEMAIL`, t1.`CONTACTIDYOMINAME`, t1.`CONTRACTDETAILID`, t1.`CONTRACTDETAILNAME`, t1.`CONTRACTID`, t1.`CONTRACTNAME`, t1.`CONTRACTSERVICELEVELCODE`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CUSTOMERCONTACTED`, t1.`CUSTOMERID`, t1.`CUSTOMERIDTYPE`, t1.`CUSTOMERIDYOMINAME`, t1.`CUSTOMERSATISFACTIONCODE`, t1.`DECREMENTENTITLEMENTTERM`, t1.`DECREMENTING`, t1.`DESCRIPTION`, t1.`EMAILADDRESS`, t1.`ENTITLEMENTID`, t1.`ENTITLEMENTNAME`, t1.`ENTITYIMAGE`, t1.`ENTITYIMAGEID`, t1.`ENTITYIMAGE_TIMESTAMP`, t1.`ENTITYIMAGE_URL`, t1.`ESCALATED`, t1.`ESCALATEDON`, t1.`EXCHANGERATE`, t1.`EXISTINGCASE`, t1.`EXISTINGCASENAME`, t1.`FIRSTRESPONSEBYKPIID`, t1.`FIRSTRESPONSEBYKPINAME`, t1.`FIRSTRESPONSESENT`, t1.`FIRSTRESPONSESLASTATUS`, t1.`FOLLOWUPBY`, t1.`FOLLOWUPTASKCREATED`, t1.`IMPORTSEQUENCENUMBER`, t1.`INCIDENTID`, t1.`INCIDENTSTAGECODE`, t1.`INFLUENCESCORE`, t1.`KBARTICLEID`, t1.`LASTONHOLDTIME`, t1.`MASTERID`, t1.`MASTERNAME`, t1.`MERGED`, t1.`MESSAGETYPECODE`, t1.`NUMBEROFCHILDINCIDENTS`, t1.`ONHOLDTIME`, t1.`OVERRIDDENCREATEDON`, t1.`OWNERID`, t1.`OWNERIDTYPE`, t1.`OWNERIDYOMINAME`, t1.`PARENTCASEID`, t1.`PARENTCASENAME`, t1.`PRIMARYCONTACTID`, t1.`PRIMARYCONTACTIDYOMINAME`, t1.`PRIMARYCONTACTNAME`, t1.`PRIORITYCODE`, t1.`PROCESSID`, t1.`PRODUCTID`, t1.`PRODUCTNAME`, t1.`PRODUCTSERIALNUMBER`, t1.`RESOLVEBY`, t1.`RESOLVEBYKPIID`, t1.`RESOLVEBYKPINAME`, t1.`RESOLVEBYSLASTATUS`, t1.`RESPONSEBY`, t1.`RESPONSIBLECONTACTID`, t1.`RESPONSIBLECONTACTIDYOMINAME`, t1.`RESPONSIBLECONTACTNAME`, t1.`ROUTECASE`, t1.`SENTIMENTVALUE`, t1.`SERVICESTAGE`, t1.`SEVERITYCODE`, t1.`SLAID`, t1.`SLANAME`, t1.`SOCIALPROFILEID`, t1.`STAGEID`, t1.`STATECODE`, t1.`STATUSCODE`, t1.`SUBJECTID`, t1.`SUBJECTNAME`, t1.`TICKETNUMBER`, t1.`TIMEZONERULEVERSIONNUMBER`, t1.`TITLE`, t1.`TRANSACTIONCURRENCYID`, t1.`TRANSACTIONCURRENCYNAME`, t1.`TRAVERSEDPATH`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`UTCCONVERSIONTIMEZONECODE`, t1.`VERSIONNUMBER` FROM `INCIDENT` t1
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
"dename":"Incident", "dename":"Incident",
"delogicname":"案例", "delogicname":"案例",
"sysmoudle":{"id":"SERVICE","name":"Service"}, "sysmoudle":{"id":"SERVICE","name":"Service"},
"dedataset":[{"id":"Default" , "name":"DEFAULT"}], "dedataset":[{"id":"ByParentKey" , "name":"ByParentKey"},{"id":"Default" , "name":"DEFAULT"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }], "deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}] "datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册