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

xignzi006 发布系统代码

上级 deba2fe6
......@@ -1668,6 +1668,130 @@
}
]
},
{
"srfkey": "Quote__ShippingMethodCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "Airborne",
"text": "Airborne",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "2",
"label": "DHL",
"text": "DHL",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "3",
"label": "FedEx",
"text": "FedEx",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "6",
"label": "Full Load",
"text": "Full Load",
"data":"",
"codename":"Item_6",
"value": "6",
"disabled": false
}
, {
"id": "5",
"label": "Postal Mail",
"text": "Postal Mail",
"data":"",
"codename":"Item_5",
"value": "5",
"disabled": false
}
, {
"id": "4",
"label": "UPS",
"text": "UPS",
"data":"",
"codename":"Item_4",
"value": "4",
"disabled": false
}
, {
"id": "7",
"label": "Will Call",
"text": "Will Call",
"data":"",
"codename":"Item_7",
"value": "7",
"disabled": false
}
]
},
{
"srfkey": "Quote__PaymentTermsCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "2% 10, Net 30",
"text": "2% 10, Net 30",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "Net 30",
"text": "Net 30",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "3",
"label": "Net 45",
"text": "Net 45",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "4",
"label": "Net 60",
"text": "Net 60",
"data":"",
"codename":"Item_4",
"value": "4",
"disabled": false
}
]
},
{
"srfkey": "Account__CustomerTypeCode",
"emptytext": "未定义",
......@@ -2151,6 +2275,33 @@
}
]
},
{
"srfkey": "Quote__FreightTermsCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "FOB",
"text": "FOB",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "2",
"label": "No Charge",
"text": "No Charge",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
]
},
{
"srfkey": "Opportunity__PurchaseTimeframe",
"emptytext": "未定义",
......
......@@ -399,6 +399,16 @@
"viewtag": "3f78dcc732a7a8ba6d959dcf6007b225",
"memo": "系统自动添加"
},
"quoteinfoabstract": {
"title": "报价单编辑视图",
"caption": "报价单",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "QuoteInfoAbstract",
"viewfilename": "quote-info-abstract",
"viewtag": "4024b6fdff9a452e0ff55401498fbb51",
"memo": ""
},
"campaigneditview": {
"title": "市场活动编辑视图",
"caption": "市场活动",
......@@ -569,13 +579,13 @@
"viewtag": "615ceb2945e3cfe7404850aeadae188d",
"memo": ""
},
"contactdashboardview": {
"contactsummary": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewfilename": "contact-dashboard-view",
"viewname": "ContactSummary",
"viewfilename": "contact-summary",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c",
"memo": ""
},
......@@ -1399,13 +1409,13 @@
"viewtag": "fc2117de593df9cc982bd802cbdb2154",
"memo": "系统自动添加"
},
"contacttabexpview": {
"contactinfo": {
"title": "联系人信息",
"caption": "联系人",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Base",
"viewname": "ContactTabExpView",
"viewfilename": "contact-tab-exp-view",
"viewname": "ContactInfo",
"viewfilename": "contact-info",
"viewtag": "fcdb236b65d78c4a8ae64e74f9483a63",
"memo": ""
}
......
......@@ -221,6 +221,23 @@ export default {
'4': "Widowed",
empty: "",
},
Quote__ShippingMethodCode: {
'1': "Airborne",
'2': "DHL",
'3': "FedEx",
'6': "Full Load",
'5': "Postal Mail",
'4': "UPS",
'7': "Will Call",
empty: "",
},
Quote__PaymentTermsCode: {
'2': "2% 10, Net 30",
'1': "Net 30",
'3': "Net 45",
'4': "Net 60",
empty: "",
},
Account__CustomerTypeCode: {
'1': "Competitor",
'2': "Consultant",
......@@ -290,6 +307,11 @@ export default {
'3': "Phone",
empty: "",
},
Quote__FreightTermsCode: {
'1': "FOB",
'2': "No Charge",
empty: "",
},
Opportunity__PurchaseTimeframe: {
'0': "Immediate",
'2': "Next Quarter",
......
......@@ -221,6 +221,23 @@ export default {
'4': "Widowed",
empty: "",
},
Quote__ShippingMethodCode: {
'1': "Airborne",
'2': "DHL",
'3': "FedEx",
'6': "Full Load",
'5': "Postal Mail",
'4': "UPS",
'7': "Will Call",
empty: "",
},
Quote__PaymentTermsCode: {
'2': "2% 10, Net 30",
'1': "Net 30",
'3': "Net 45",
'4': "Net 60",
empty: "",
},
Account__CustomerTypeCode: {
'1': "Competitor",
'2': "Consultant",
......@@ -290,6 +307,11 @@ export default {
'3': "Phone",
empty: "",
},
Quote__FreightTermsCode: {
'1': "FOB",
'2': "No Charge",
empty: "",
},
Opportunity__PurchaseTimeframe: {
'0': "Immediate",
'2': "Next Quarter",
......
......@@ -233,7 +233,7 @@ export default {
caption: "联系人",
title: '联系人编辑视图',
},
dashboardview: {
summary: {
caption: "联系人",
title: '联系人数据看板视图',
},
......@@ -273,7 +273,7 @@ export default {
caption: "个人信息",
title: '联系人选项操作视图',
},
tabexpview: {
info: {
caption: "联系人",
title: '联系人信息',
},
......@@ -585,6 +585,36 @@ export default {
uiactions: {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
deuiaction2: {
caption: "刷新",
tip: "刷新",
},
seperator1: {
caption: "",
tip: "",
},
tbitem12: {
caption: "关闭",
tip: "关闭",
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: "新建",
......
......@@ -232,7 +232,7 @@ export default {
caption: '联系人',
title: '联系人编辑视图',
},
dashboardview: {
summary: {
caption: '联系人',
title: '联系人数据看板视图',
},
......@@ -272,7 +272,7 @@ export default {
caption: '个人信息',
title: '联系人选项操作视图',
},
tabexpview: {
info: {
caption: '联系人',
title: '联系人信息',
},
......@@ -584,6 +584,36 @@ export default {
uiactions: {
},
},
infotoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
deuiaction1: {
caption: '删除并关闭',
tip: '删除并关闭',
},
deuiaction2: {
caption: '刷新',
tip: '刷新',
},
seperator1: {
caption: '',
tip: '',
},
tbitem12: {
caption: '关闭',
tip: '关闭',
},
},
gridviewtoolbar_toolbar: {
tbitem1_openquickcreateview: {
caption: '新建',
......
......@@ -101,6 +101,10 @@ export default {
gridview: {
caption: "报价单",
title: '报价单表格视图',
},
infoabstract: {
caption: "报价单",
title: '报价单编辑视图',
},
oppquagridview: {
caption: "报价单",
......@@ -166,6 +170,47 @@ export default {
uiactions: {
},
},
abstractinfo_form: {
details: {
group1: "概要信息",
grouppanel1: "详细信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "报价单",
srfmajortext: "报价名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
quotenumber: "报价单 ID",
revisionnumber: "修订 ID",
quotename: "报价名称",
transactioncurrencyname: "货币",
opportunityname: "商机",
customerid: "潜在客户",
pricelevelname: "价目表",
statecode: "状态",
description: "说明",
paymenttermscode: "付款条件",
freighttermscode: "货运条款",
billto_postalcode: "帐单寄往地邮政编码",
formitem: "",
billto_country: "帐单寄往国家/地区",
billto_stateorprovince: "帐单寄往省/市/自治区",
billto_city: "帐单寄往市/县",
billto_line1: "帐单寄往街道",
shippingmethodcode: "送货方式",
shipto_postalcode: "送货地的邮政编码",
willcall: "送货地址",
transactioncurrencyid: "货币",
opportunityid: "商机",
pricelevelid: "价目表",
quoteid: "报价单",
},
uiactions: {
},
},
main_grid: {
columns: {
quotename: "报价名称",
......
......@@ -100,6 +100,10 @@ export default {
gridview: {
caption: '报价单',
title: '报价单表格视图',
},
infoabstract: {
caption: '报价单',
title: '报价单编辑视图',
},
oppquagridview: {
caption: '报价单',
......@@ -165,6 +169,47 @@ export default {
uiactions: {
},
},
abstractinfo_form: {
details: {
group1: '概要信息',
grouppanel1: '详细信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '报价单',
srfmajortext: '报价名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
quotenumber: '报价单 ID',
revisionnumber: '修订 ID',
quotename: '报价名称',
transactioncurrencyname: '货币',
opportunityname: '商机',
customerid: '潜在客户',
pricelevelname: '价目表',
statecode: '状态',
description: '说明',
paymenttermscode: '付款条件',
freighttermscode: '货运条款',
billto_postalcode: '帐单寄往地邮政编码',
formitem: '',
billto_country: '帐单寄往国家/地区',
billto_stateorprovince: '帐单寄往省/市/自治区',
billto_city: '帐单寄往市/县',
billto_line1: '帐单寄往街道',
shippingmethodcode: '送货方式',
shipto_postalcode: '送货地的邮政编码',
willcall: '送货地址',
transactioncurrencyid: '货币',
opportunityid: '商机',
pricelevelid: '价目表',
quoteid: '报价单',
},
uiactions: {
},
},
main_grid: {
columns: {
quotename: '报价名称',
......
......@@ -1676,6 +1676,130 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: 'Quote__ShippingMethodCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '1',
label: "Airborne",
text: "Airborne",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '2',
label: "DHL",
text: "DHL",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
{
id: '3',
label: "FedEx",
text: "FedEx",
"data":"",
"codename":"Item_3",
value: '3',
disabled: false,
},
{
id: '6',
label: "Full Load",
text: "Full Load",
"data":"",
"codename":"Item_6",
value: '6',
disabled: false,
},
{
id: '5',
label: "Postal Mail",
text: "Postal Mail",
"data":"",
"codename":"Item_5",
value: '5',
disabled: false,
},
{
id: '4',
label: "UPS",
text: "UPS",
"data":"",
"codename":"Item_4",
value: '4',
disabled: false,
},
{
id: '7',
label: "Will Call",
text: "Will Call",
"data":"",
"codename":"Item_7",
value: '7',
disabled: false,
},
]
},
{
srfkey: 'Quote__PaymentTermsCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '2',
label: "2% 10, Net 30",
text: "2% 10, Net 30",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
{
id: '1',
label: "Net 30",
text: "Net 30",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '3',
label: "Net 45",
text: "Net 45",
"data":"",
"codename":"Item_3",
value: '3',
disabled: false,
},
{
id: '4',
label: "Net 60",
text: "Net 60",
"data":"",
"codename":"Item_4",
value: '4',
disabled: false,
},
]
},
{
srfkey: 'Account__CustomerTypeCode',
emptytext: '未定义',
......@@ -2159,6 +2283,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: 'Quote__FreightTermsCode',
emptytext: '未定义',
"codelisttype":"static",
items: [
{
id: '1',
label: "FOB",
text: "FOB",
"data":"",
"codename":"Item_1",
value: '1',
disabled: false,
},
{
id: '2',
label: "No Charge",
text: "No Charge",
"data":"",
"codename":"Item_2",
value: '2',
disabled: false,
},
]
},
{
srfkey: 'Opportunity__PurchaseTimeframe',
emptytext: '未定义',
......
......@@ -327,6 +327,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "FaxEditView",
"viewtag": "3f78dcc732a7a8ba6d959dcf6007b225"
},
"quoteinfoabstract": {
"title": "报价单编辑视图",
"caption": "报价单",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sales",
"viewname": "QuoteInfoAbstract",
"viewtag": "4024b6fdff9a452e0ff55401498fbb51"
},
"campaigneditview": {
"title": "市场活动编辑视图",
"caption": "市场活动",
......@@ -463,12 +471,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactInfo_Market",
"viewtag": "615ceb2945e3cfe7404850aeadae188d"
},
"contactdashboardview": {
"contactsummary": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewname": "ContactSummary",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c"
},
"goalgridview": {
......@@ -1127,12 +1135,12 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CompetitorEditView",
"viewtag": "fc2117de593df9cc982bd802cbdb2154"
},
"contacttabexpview": {
"contactinfo": {
"title": "联系人信息",
"caption": "联系人",
"viewtype": "DETABEXPVIEW",
"viewmodule": "Base",
"viewname": "ContactTabExpView",
"viewname": "ContactInfo",
"viewtag": "fcdb236b65d78c4a8ae64e74f9483a63"
}
}];
......
......@@ -284,7 +284,7 @@ export default class ContactByAccountBase extends GridViewBase {
}
const parameters: any[] = [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
......@@ -599,7 +599,7 @@ export default class ContactGridViewBase extends GridViewBase {
}
const parameters: any[] = [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
// 避免空文件,后台不让空文件过
.contact-info {
--contact-info: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactInfoBase from './contact-info-base.vue';
import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ContactInfo extends ContactInfoBase {
}
</script>
\ No newline at end of file
<template>
<studio-view-style2 viewName="contactsummary" viewTitle="联系人数据看板视图" class='deportalview contact-summary'>
<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>
</template>
<script lang='tsx'>
import { Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { Subject } from 'rxjs';
import { UIActionTool, Util } from '@/utils';
import { VueLifeCycleProcessing, DashboardViewBase } from '@/studio-core';
import ContactService from '@/service/contact/contact-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 联系人数据看板视图视图基类
*
* @export
* @class ContactSummaryBase
* @extends {DashboardViewBase}
*/
@Component({})
@VueLifeCycleProcessing()
export default class ContactSummaryBase extends DashboardViewBase {
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof ContactSummaryBase
*/
protected appEntityService: ContactService = new ContactService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ContactSummaryBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected customViewNavContexts: any = {
'REGARDINGOBJECTID': { isRawValue: false, value: 'contact' },
'REGARDINGOBJECTTYPECODE': { isRawValue: true, value: 'CONTACT' }
};
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected customViewParams: any = {
};
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected model: any = {
srfCaption: 'entities.contact.views.summary.caption',
srfTitle: 'entities.contact.views.summary.title',
srfSubTitle: 'entities.contact.views.summary.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ContactSummaryBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ContactSummaryBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof ContactSummaryBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'contact',
majorPSDEField: 'fullname',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ContactSummaryBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
</script>
<style lang='less'>
@import './contact-summary.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-summary {
--contact-summary: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactSummaryBase from './contact-summary-base.vue';
import view_dashboard from '@widgets/contact/con-abs-dashboard/con-abs-dashboard.vue';
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class ContactSummary extends ContactSummaryBase {
}
</script>
\ No newline at end of file
......@@ -543,16 +543,28 @@ export default class CompetitorGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'competitors', parameterName: 'competitor' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'competitor-option-view',
height: 0,
width: 0,
title: this.$t('entities.competitor.views.optionview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
<template>
<studio-view-style2 viewName="opportunityoppprodashboardview" viewTitle="商机数据看板视图" class='deportalview opportunity-opp-pro-dashboard-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
......
......@@ -74,7 +74,7 @@ export const PageComponents = {
Vue.component('list-contact-inner', () => import('@pages/marketing/list-contact-inner/list-contact-inner.vue'));
Vue.component('campaign-info-campagin', () => import('@pages/marketing/campaign-info-campagin/campaign-info-campagin.vue'));
Vue.component('appointment-edit-view', () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'));
Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'));
Vue.component('contact-info', () => import('@pages/base/contact-info/contact-info.vue'));
Vue.component('contact-pickup-grid-view', () => import('@pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue'));
Vue.component('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
Vue.component('opportunity-info', () => import('@pages/sales/opportunity-info/opportunity-info.vue'));
......@@ -104,7 +104,7 @@ export const PageComponents = {
Vue.component('activity-pointer-by-parent-key', () => import('@pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue'));
Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'));
Vue.component('list-account-inner', () => import('@pages/marketing/list-account-inner/list-account-inner.vue'));
Vue.component('contact-dashboard-view', () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'));
Vue.component('contact-summary', () => import('@pages/base/contact-summary/contact-summary.vue'));
Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.vue'));
Vue.component('contact-info-market', () => import('@pages/base/contact-info-market/contact-info-market.vue'));
Vue.component('quote-edit-view', () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'));
......
......@@ -2256,33 +2256,33 @@ const router = new Router({
component: () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/tabexpview/:tabexpview?',
path: 'accounts/:account?/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: 'contacts/:contact?/tabexpview/:tabexpview?',
path: 'contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/pickupgridview/:pickupgridview?',
......@@ -3362,33 +3362,33 @@ const router = new Router({
component: () => import('@pages/base/account-edit-introduction/account-edit-introduction.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/dashboardview/:dashboardview?',
path: 'accounts/:account?/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: 'contacts/:contact?/dashboardview/:dashboardview?',
path: 'contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: 'tasks/:task?/editview/:editview?',
......@@ -5009,31 +5009,31 @@ const router = new Router({
component: () => import('@pages/base/contact-info-market/contact-info-market.vue'),
},
{
path: '/accounts/:account?/contacts/:contact?/dashboardview/:dashboardview?',
path: '/accounts/:account?/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: '/contacts/:contact?/dashboardview/:dashboardview?',
path: '/contacts/:contact?/summary/:summary?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
caption: 'entities.contact.views.summary.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
component: () => import('@pages/base/contact-summary/contact-summary.vue'),
},
{
path: '/goals/:goal?/gridview/:gridview?',
......@@ -6929,31 +6929,31 @@ const router = new Router({
component: () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'),
},
{
path: '/accounts/:account?/contacts/:contact?/tabexpview/:tabexpview?',
path: '/accounts/:account?/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
{
path: '/contacts/:contact?/tabexpview/:tabexpview?',
path: '/contacts/:contact?/info/:info?',
meta: {
caption: 'entities.contact.views.tabexpview.title',
caption: 'entities.contact.views.info.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'tabexpview', parameterName: 'tabexpview' },
{ pathName: 'info', parameterName: 'info' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'),
component: () => import('@pages/base/contact-info/contact-info.vue'),
},
...globalRoutes,
{
......
......@@ -545,7 +545,7 @@ export const viewstate: any = {
{
viewtag: '6168a7e787ead13b1e0f9a55007bc68c',
viewmodule: 'Base',
viewname: 'ContactDashboardView',
viewname: 'ContactSummary',
viewaction: '',
viewdatachange: false,
refviews: [
......@@ -1313,7 +1313,7 @@ export const viewstate: any = {
{
viewtag: 'fcdb236b65d78c4a8ae64e74f9483a63',
viewmodule: 'Base',
viewname: 'ContactTabExpView',
viewname: 'ContactInfo',
viewaction: '',
viewdatachange: false,
refviews: [
......
......@@ -130,14 +130,29 @@ export default class CompetitorUIServiceBase extends UIService {
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'competitors', parameterName: 'competitor' },
{ pathName: 'optionview', parameterName: 'optionview' },
];
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
return null;
}
openIndexViewTab(data);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
const _this: any = actionContext;
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
const view: any = {
viewname: 'competitor-option-view',
height: 0,
width: 0,
title: actionContext.$t('entities.competitor.views.optionview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......
......@@ -86,7 +86,7 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'info_book',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_market',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'editaddress',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'byaccount',srfappde:'contacts'});
......@@ -96,7 +96,7 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'quickcreate',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'editperson',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'tabexpview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info',srfappde:'contacts'});
}
/**
......
......@@ -80,6 +80,7 @@ export default class QuoteUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'infoabstract',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'oppquagridview',srfappde:'quotes'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'quotes'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'quotes'});
......
......@@ -7,7 +7,7 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 18, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container dashboard-viewdashboard-container1 ' :style="{}">
<div class='portlet-container summarydashboard-container1 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......@@ -97,7 +97,7 @@
<i-col :md="{ span: 24, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container dashboard-viewdashboard-container2 ' :style="{}">
<div class='portlet-container summarydashboard-container2 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import ContactService from '@/service/contact/contact-service';
import InfotabexppanelModel from './infotabexppanel-tabexppanel-model';
/**
* Infotabexppanel 部件服务对象
*
* @export
* @class InfotabexppanelService
*/
export default class InfotabexppanelService extends ControlService {
/**
* 联系人服务对象
*
* @type {ContactService}
* @memberof InfotabexppanelService
*/
public appEntityService: ContactService = new ContactService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof InfotabexppanelService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of InfotabexppanelService.
*
* @param {*} [opts={}]
* @memberof InfotabexppanelService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new InfotabexppanelModel();
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InfotabexppanelBase from './infotabexppanel-tabexppanel-base.vue';
import view_tabviewpanel from '@widgets/contact/infotabviewpanel-tabviewpanel/infotabviewpanel-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_tabviewpanel3 from '@widgets/contact/infotabviewpanel3-tabviewpanel/infotabviewpanel3-tabviewpanel.vue';
@Component({
components: {
view_tabviewpanel,
view_tabviewpanel4,
view_tabviewpanel2,
view_tabviewpanel3,
}
})
export default class Infotabexppanel extends InfotabexppanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<contact-summary
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</contact-summary>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import InfotabviewpanelService from './infotabviewpanel-tabviewpanel-service';
@Component({
components: {
}
})
export default class InfotabviewpanelBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {InfotabviewpanelService}
* @memberof Infotabviewpanel
*/
public service: InfotabviewpanelService = new InfotabviewpanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel
*/
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 Infotabviewpanel
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel
*/
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 Infotabviewpanel
*/
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 Infotabviewpanel
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel-tabviewpanel.less';
</style>
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel 部件服务对象
*
* @export
* @class InfotabviewpanelService
*/
export default class InfotabviewpanelService extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import InfotabviewpanelBase from './infotabviewpanel-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel extends InfotabviewpanelBase {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<lead-grid-view
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</lead-grid-view>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel2Service from './infotabviewpanel2-tabviewpanel-service';
@Component({
components: {
}
})
export default class Infotabviewpanel2Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel2
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel2
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel2
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel2
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel2
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel2Service}
* @memberof Infotabviewpanel2
*/
public service: Infotabviewpanel2Service = new Infotabviewpanel2Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel2
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel2
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel2
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel2
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel2
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel2
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel2
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel2
*/
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 Infotabviewpanel2
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel2
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel2
*/
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 Infotabviewpanel2
*/
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 Infotabviewpanel2
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel2
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel2
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel2-tabviewpanel.less';
</style>
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel2 部件服务对象
*
* @export
* @class Infotabviewpanel2Service
*/
export default class Infotabviewpanel2Service extends ControlService {
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Infotabviewpanel2Base from './infotabviewpanel2-tabviewpanel-base.vue';
@Component({
components: {
}
})
export default class Infotabviewpanel2 extends Infotabviewpanel2Base {
}
</script>
\ No newline at end of file
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<opportunity-grid-view
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</opportunity-grid-view>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import ContactService from '@/service/contact/contact-service';
import Infotabviewpanel3Service from './infotabviewpanel3-tabviewpanel-service';
@Component({
components: {
}
})
export default class Infotabviewpanel3Base extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Infotabviewpanel3
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Infotabviewpanel3
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Infotabviewpanel3
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Infotabviewpanel3
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Infotabviewpanel3
*/
public getControlType(): string {
return 'TABVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {Infotabviewpanel3Service}
* @memberof Infotabviewpanel3
*/
public service: Infotabviewpanel3Service = new Infotabviewpanel3Service({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof Infotabviewpanel3
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Infotabviewpanel3
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Infotabviewpanel3
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Infotabviewpanel3
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Infotabviewpanel3
*/
public getData(): any {
return null;
}
/**
* 是否被激活
*
* @type {boolean}
* @memberof Infotabviewpanel3
*/
public isActivied: boolean = true;
/**
* 局部上下文
*
* @type {*}
* @memberof Infotabviewpanel3
*/
public localContext: any = null;
/**
* 局部视图参数
*
* @type {*}
* @memberof Infotabviewpanel3
*/
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 Infotabviewpanel3
*/
public navfilter: string = "";
/**
* vue 生命周期
*
* @returns
* @memberof Infotabviewpanel3
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof Infotabviewpanel3
*/
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 Infotabviewpanel3
*/
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 Infotabviewpanel3
*/
public viewDatasChange($event:any){
this.$emit('viewpanelDatasChange',$event);
}
/**
* vue 生命周期
*
* @memberof Infotabviewpanel3
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof Infotabviewpanel3
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './infotabviewpanel3-tabviewpanel.less';
</style>
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Infotabviewpanel3 部件服务对象
*
* @export
* @class Infotabviewpanel3Service
*/
export default class Infotabviewpanel3Service extends ControlService {
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册