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

xignzi006 发布系统代码

上级 301ad303
...@@ -599,6 +599,16 @@ ...@@ -599,6 +599,16 @@
"viewtag": "30458f00562fda145be535e56948b067", "viewtag": "30458f00562fda145be535e56948b067",
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"multipickdataacgrid": {
"title": "客户、联系人",
"caption": "客户、联系人",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "MultiPickDataACGrid",
"viewfilename": "multi-pick-data-acgrid",
"viewtag": "30f3fc1e50e20f8330c255ae85dca393",
"memo": "系统自动添加"
},
"listcontactgridview": { "listcontactgridview": {
"title": "营销列表-联系人表格视图", "title": "营销列表-联系人表格视图",
"caption": "营销列表-联系人", "caption": "营销列表-联系人",
......
/**
* 多类选择实体
*
* @export
* @interface MultiPickData
*/
export interface MultiPickData {
/**
* 数据标识
*
* @returns {*}
* @memberof MultiPickData
*/
pickdataid?: any;
/**
* 数据名称
*
* @returns {*}
* @memberof MultiPickData
*/
pickdataname?: any;
/**
* 信息描述
*
* @returns {*}
* @memberof MultiPickData
*/
pickdatainfo?: any;
/**
* 数据类型
*
* @returns {*}
* @memberof MultiPickData
*/
pickdatatype?: any;
/**
* 用户数据
*
* @returns {*}
* @memberof MultiPickData
*/
userdata?: any;
/**
* 用户数据2
*
* @returns {*}
* @memberof MultiPickData
*/
userdata2?: any;
/**
* 用户数据3
*
* @returns {*}
* @memberof MultiPickData
*/
userdata3?: any;
/**
* 用户数据4
*
* @returns {*}
* @memberof MultiPickData
*/
userdata4?: any;
/**
* 用户时间
*
* @returns {*}
* @memberof MultiPickData
*/
userdate?: any;
/**
* 用户时间2
*
* @returns {*}
* @memberof MultiPickData
*/
userdate2?: any;
}
\ No newline at end of file
...@@ -44,6 +44,7 @@ import opportunitycompetitor_en_US from '@locale/lanres/entities/opportunity-com ...@@ -44,6 +44,7 @@ import opportunitycompetitor_en_US from '@locale/lanres/entities/opportunity-com
import competitorsalesliterature_en_US from '@locale/lanres/entities/competitor-sales-literature/competitor-sales-literature_en_US'; import competitorsalesliterature_en_US from '@locale/lanres/entities/competitor-sales-literature/competitor-sales-literature_en_US';
import knowledgearticle_en_US from '@locale/lanres/entities/knowledge-article/knowledge-article_en_US'; import knowledgearticle_en_US from '@locale/lanres/entities/knowledge-article/knowledge-article_en_US';
import salesliteratureitem_en_US from '@locale/lanres/entities/sales-literature-item/sales-literature-item_en_US'; import salesliteratureitem_en_US from '@locale/lanres/entities/sales-literature-item/sales-literature-item_en_US';
import multipickdata_en_US from '@locale/lanres/entities/multi-pick-data/multi-pick-data_en_US';
import contact_en_US from '@locale/lanres/entities/contact/contact_en_US'; import contact_en_US from '@locale/lanres/entities/contact/contact_en_US';
import product_en_US from '@locale/lanres/entities/product/product_en_US'; import product_en_US from '@locale/lanres/entities/product/product_en_US';
import competitor_en_US from '@locale/lanres/entities/competitor/competitor_en_US'; import competitor_en_US from '@locale/lanres/entities/competitor/competitor_en_US';
...@@ -151,7 +152,6 @@ export default { ...@@ -151,7 +152,6 @@ export default {
menuitem23: "市场营销", menuitem23: "市场营销",
menuitem30: "市场活动", menuitem30: "市场活动",
menuitem15: "市场营销列表", menuitem15: "市场营销列表",
menuitem29: "快速市场活动",
menuitem24: "绩效", menuitem24: "绩效",
menuitem25: "目标", menuitem25: "目标",
menuitem31: "目标度量", menuitem31: "目标度量",
...@@ -215,6 +215,7 @@ export default { ...@@ -215,6 +215,7 @@ export default {
competitorsalesliterature: competitorsalesliterature_en_US, competitorsalesliterature: competitorsalesliterature_en_US,
knowledgearticle: knowledgearticle_en_US, knowledgearticle: knowledgearticle_en_US,
salesliteratureitem: salesliteratureitem_en_US, salesliteratureitem: salesliteratureitem_en_US,
multipickdata: multipickdata_en_US,
contact: contact_en_US, contact: contact_en_US,
product: product_en_US, product: product_en_US,
competitor: competitor_en_US, competitor: competitor_en_US,
......
...@@ -44,6 +44,7 @@ import opportunitycompetitor_zh_CN from '@locale/lanres/entities/opportunity-com ...@@ -44,6 +44,7 @@ import opportunitycompetitor_zh_CN from '@locale/lanres/entities/opportunity-com
import competitorsalesliterature_zh_CN from '@locale/lanres/entities/competitor-sales-literature/competitor-sales-literature_zh_CN'; import competitorsalesliterature_zh_CN from '@locale/lanres/entities/competitor-sales-literature/competitor-sales-literature_zh_CN';
import knowledgearticle_zh_CN from '@locale/lanres/entities/knowledge-article/knowledge-article_zh_CN'; import knowledgearticle_zh_CN from '@locale/lanres/entities/knowledge-article/knowledge-article_zh_CN';
import salesliteratureitem_zh_CN from '@locale/lanres/entities/sales-literature-item/sales-literature-item_zh_CN'; import salesliteratureitem_zh_CN from '@locale/lanres/entities/sales-literature-item/sales-literature-item_zh_CN';
import multipickdata_zh_CN from '@locale/lanres/entities/multi-pick-data/multi-pick-data_zh_CN';
import contact_zh_CN from '@locale/lanres/entities/contact/contact_zh_CN'; import contact_zh_CN from '@locale/lanres/entities/contact/contact_zh_CN';
import product_zh_CN from '@locale/lanres/entities/product/product_zh_CN'; import product_zh_CN from '@locale/lanres/entities/product/product_zh_CN';
import competitor_zh_CN from '@locale/lanres/entities/competitor/competitor_zh_CN'; import competitor_zh_CN from '@locale/lanres/entities/competitor/competitor_zh_CN';
...@@ -151,7 +152,6 @@ export default { ...@@ -151,7 +152,6 @@ export default {
menuitem23: "市场营销", menuitem23: "市场营销",
menuitem30: "市场活动", menuitem30: "市场活动",
menuitem15: "市场营销列表", menuitem15: "市场营销列表",
menuitem29: "快速市场活动",
menuitem24: "绩效", menuitem24: "绩效",
menuitem25: "目标", menuitem25: "目标",
menuitem31: "目标度量", menuitem31: "目标度量",
...@@ -215,6 +215,7 @@ export default { ...@@ -215,6 +215,7 @@ export default {
competitorsalesliterature: competitorsalesliterature_zh_CN, competitorsalesliterature: competitorsalesliterature_zh_CN,
knowledgearticle: knowledgearticle_zh_CN, knowledgearticle: knowledgearticle_zh_CN,
salesliteratureitem: salesliteratureitem_zh_CN, salesliteratureitem: salesliteratureitem_zh_CN,
multipickdata: multipickdata_zh_CN,
contact: contact_zh_CN, contact: contact_zh_CN,
product: product_zh_CN, product: product_zh_CN,
competitor: competitor_zh_CN, competitor: competitor_zh_CN,
......
export default {
fields: {
pickdataid: "数据标识",
pickdataname: "数据名称",
pickdatainfo: "信息描述",
pickdatatype: "数据类型",
userdata: "用户数据",
userdata2: "用户数据2",
userdata3: "用户数据3",
userdata4: "用户数据4",
userdate: "用户时间",
userdate2: "用户时间2",
},
views: {
acgrid: {
caption: "客户、联系人",
title: "客户、联系人",
},
},
main_grid: {
columns: {
pickdataname: "数据名称",
pickdatatype: "数据类型",
userdata: "用户数据",
userdata2: "用户数据2",
userdata3: "用户数据3",
userdata4: "用户数据4",
pickdatainfo: "信息描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_pickdataname_like: "数据名称(%)",
},
uiactions: {
},
},
};
\ No newline at end of file
export default {
fields: {
pickdataid: "数据标识",
pickdataname: "数据名称",
pickdatainfo: "信息描述",
pickdatatype: "数据类型",
userdata: "用户数据",
userdata2: "用户数据2",
userdata3: "用户数据3",
userdata4: "用户数据4",
userdate: "用户时间",
userdate2: "用户时间2",
},
views: {
acgrid: {
caption: "客户、联系人",
title: "客户、联系人",
},
},
main_grid: {
columns: {
pickdataname: "数据名称",
pickdatatype: "数据类型",
userdata: "用户数据",
userdata2: "用户数据2",
userdata3: "用户数据3",
userdata4: "用户数据4",
pickdatainfo: "信息描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_pickdataname_like: "数据名称(%)",
},
uiactions: {
},
},
};
\ No newline at end of file
...@@ -543,24 +543,6 @@ mock.onGet('v7/centralappmenu').reply((config: any) => { ...@@ -543,24 +543,6 @@ mock.onGet('v7/centralappmenu').reply((config: any) => {
textcls: '', textcls: '',
appfunctag: 'Auto1', appfunctag: 'Auto1',
resourcetag: '', resourcetag: '',
},
{
id: '5bcda52e467d81ca235e117c389c2f1e',
name: 'menuitem29',
text: '快速市场活动',
type: 'MENUITEM',
counterid: '',
tooltip: '快速市场活动',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-volume-off',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
}, },
], ],
}, },
......
...@@ -53,6 +53,7 @@ import './entity/opportunity-competitors/opportunity-competitors'; ...@@ -53,6 +53,7 @@ import './entity/opportunity-competitors/opportunity-competitors';
import './entity/competitor-sales-literatures/competitor-sales-literatures'; import './entity/competitor-sales-literatures/competitor-sales-literatures';
import './entity/knowledge-articles/knowledge-articles'; import './entity/knowledge-articles/knowledge-articles';
import './entity/sales-literature-items/sales-literature-items'; import './entity/sales-literature-items/sales-literature-items';
import './entity/multi-pick-datas/multi-pick-datas';
import './entity/contacts/contacts'; import './entity/contacts/contacts';
import './entity/products/products'; import './entity/products/products';
import './entity/competitors/competitors'; import './entity/competitors/competitors';
......
...@@ -487,6 +487,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -487,6 +487,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CampaignActivityEditView", "viewname": "CampaignActivityEditView",
"viewtag": "30458f00562fda145be535e56948b067" "viewtag": "30458f00562fda145be535e56948b067"
}, },
"multipickdataacgrid": {
"title": "客户、联系人",
"caption": "客户、联系人",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "MultiPickDataACGrid",
"viewtag": "30f3fc1e50e20f8330c255ae85dca393"
},
"listcontactgridview": { "listcontactgridview": {
"title": "营销列表-联系人表格视图", "title": "营销列表-联系人表格视图",
"caption": "营销列表-联系人", "caption": "营销列表-联系人",
......
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import MultiPickDataService from '@/service/multi-pick-data/multi-pick-data-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
/**
* 客户、联系人视图基类
*
* @export
* @class MultiPickDataACGridBase
* @extends {PickupGridViewBase}
*/
export class MultiPickDataACGridBase extends PickupGridViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof MultiPickDataACGridBase
*/
protected appDeName: string = 'multipickdata';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof MultiPickDataACGridBase
*/
protected appDeKey: string = 'pickdataid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof MultiPickDataACGridBase
*/
protected appDeMajor: string = 'pickdataname';
/**
* 实体服务对象
*
* @type {MultiPickDataService}
* @memberof MultiPickDataACGridBase
*/
protected appEntityService: MultiPickDataService = new MultiPickDataService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof MultiPickDataACGridBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof MultiPickDataACGridBase
*/
protected model: any = {
srfCaption: 'entities.multipickdata.views.acgrid.caption',
srfTitle: 'entities.multipickdata.views.acgrid.title',
srfSubTitle: 'entities.multipickdata.views.acgrid.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof MultiPickDataACGridBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '30f3fc1e50e20f8330c255ae85dca393';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof MultiPickDataACGridBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof MultiPickDataACGridBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'multipickdata',
majorPSDEField: 'pickdataname',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof MultiPickDataACGridBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof MultiPickDataACGridBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="multipickdataacgrid" viewTitle="客户、联系人" class='depickupgridview multi-pick-data-acgrid'>
<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"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchAC"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./multi-pick-data-acgrid.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MultiPickDataACGridBase } from './multi-pick-data-acgrid-base';
import view_grid from '@widgets/multi-pick-data/main-grid/main-grid.vue';
import view_searchform from '@widgets/multi-pick-data/default-searchform/default-searchform.vue';
/**
* 客户、联系人视图
*
* @export
* @class MultiPickDataACGrid
* @extends {MultiPickDataACGridBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class MultiPickDataACGrid extends MultiPickDataACGridBase { }
</script>
...@@ -64,6 +64,7 @@ export const PageComponents = { ...@@ -64,6 +64,7 @@ export const PageComponents = {
Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue')); Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue'));
Vue.component('incident-info-view', () => import('@pages/service/incident-info-view/incident-info-view.vue')); Vue.component('incident-info-view', () => import('@pages/service/incident-info-view/incident-info-view.vue'));
Vue.component('knowledge-article-quick-create-view', () => import('@pages/base/knowledge-article-quick-create-view/knowledge-article-quick-create-view.vue')); Vue.component('knowledge-article-quick-create-view', () => import('@pages/base/knowledge-article-quick-create-view/knowledge-article-quick-create-view.vue'));
Vue.component('multi-pick-data-acgrid', () => import('@pages/base/multi-pick-data-acgrid/multi-pick-data-acgrid.vue'));
Vue.component('opportunity-summary', () => import('@pages/sales/opportunity-summary/opportunity-summary.vue')); Vue.component('opportunity-summary', () => import('@pages/sales/opportunity-summary/opportunity-summary.vue'));
Vue.component('goal-pickup-grid-view', () => import('@pages/sales/goal-pickup-grid-view/goal-pickup-grid-view.vue')); Vue.component('goal-pickup-grid-view', () => import('@pages/sales/goal-pickup-grid-view/goal-pickup-grid-view.vue'));
Vue.component('contact-info', () => import('@pages/base/contact-info/contact-info.vue')); Vue.component('contact-info', () => import('@pages/base/contact-info/contact-info.vue'));
...@@ -173,8 +174,8 @@ export const PageComponents = { ...@@ -173,8 +174,8 @@ export const PageComponents = {
Vue.component('incident-by-parent-key', () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.vue')); Vue.component('incident-by-parent-key', () => import('@pages/service/incident-by-parent-key/incident-by-parent-key.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('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('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.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'));
Vue.component('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'));
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue')); Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue')); Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'));
Vue.component('sales-order-by-parent-key', () => import('@pages/sales/sales-order-by-parent-key/sales-order-by-parent-key.vue')); Vue.component('sales-order-by-parent-key', () => import('@pages/sales/sales-order-by-parent-key/sales-order-by-parent-key.vue'));
......
...@@ -2050,6 +2050,20 @@ const router = new Router({ ...@@ -2050,6 +2050,20 @@ const router = new Router({
}, },
component: () => import('@pages/base/knowledge-article-quick-create-view/knowledge-article-quick-create-view.vue'), component: () => import('@pages/base/knowledge-article-quick-create-view/knowledge-article-quick-create-view.vue'),
}, },
{
path: 'multipickdata/:multipickdata?/acgrid/:acgrid?',
meta: {
caption: 'entities.multipickdata.views.acgrid.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'multipickdata', parameterName: 'multipickdata' },
{ pathName: 'acgrid', parameterName: 'acgrid' },
],
requireAuth: true,
},
component: () => import('@pages/base/multi-pick-data-acgrid/multi-pick-data-acgrid.vue'),
},
{ {
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/summary/:summary?', path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/summary/:summary?',
meta: { meta: {
...@@ -5686,44 +5700,43 @@ const router = new Router({ ...@@ -5686,44 +5700,43 @@ const router = new Router({
component: () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue'), component: () => import('@pages/base/account-status-tab-view/account-status-tab-view.vue'),
}, },
{ {
path: 'accounts/:account?/contacts/:contact?/leads/:lead?/dashboardview/:dashboardview?', path: 'salesliteratures/:salesliterature?/salesliteratureitems/:salesliteratureitem?/gridview/:gridview?',
meta: { meta: {
caption: 'entities.lead.views.dashboardview.title', caption: 'entities.salesliteratureitem.views.gridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'salesliteratures', parameterName: 'salesliterature' },
{ pathName: 'contacts', parameterName: 'contact' }, { pathName: 'salesliteratureitems', parameterName: 'salesliteratureitem' },
{ pathName: 'leads', parameterName: 'lead' }, { pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'), component: () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'),
}, },
{ {
path: 'contacts/:contact?/leads/:lead?/dashboardview/:dashboardview?', path: 'salesliteratureitems/:salesliteratureitem?/gridview/:gridview?',
meta: { meta: {
caption: 'entities.lead.views.dashboardview.title', caption: 'entities.salesliteratureitem.views.gridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' }, { pathName: 'salesliteratureitems', parameterName: 'salesliteratureitem' },
{ pathName: 'leads', parameterName: 'lead' }, { pathName: 'gridview', parameterName: 'gridview' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'), component: () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'),
}, },
{ {
path: 'campaigns/:campaign?/leads/:lead?/dashboardview/:dashboardview?', path: 'accounts/:account?/contacts/:contact?/leads/:lead?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.lead.views.dashboardview.title', caption: 'entities.lead.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' }, { pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'leads', parameterName: 'lead' }, { pathName: 'leads', parameterName: 'lead' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
...@@ -5732,13 +5745,13 @@ const router = new Router({ ...@@ -5732,13 +5745,13 @@ const router = new Router({
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'), component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
}, },
{ {
path: 'accounts/:account?/leads/:lead?/dashboardview/:dashboardview?', path: 'contacts/:contact?/leads/:lead?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.lead.views.dashboardview.title', caption: 'entities.lead.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'leads', parameterName: 'lead' }, { pathName: 'leads', parameterName: 'lead' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
...@@ -5747,12 +5760,13 @@ const router = new Router({ ...@@ -5747,12 +5760,13 @@ const router = new Router({
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'), component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
}, },
{ {
path: 'leads/:lead?/dashboardview/:dashboardview?', path: 'campaigns/:campaign?/leads/:lead?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.lead.views.dashboardview.title', caption: 'entities.lead.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'campaigns', parameterName: 'campaign' },
{ pathName: 'leads', parameterName: 'lead' }, { pathName: 'leads', parameterName: 'lead' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
...@@ -5761,33 +5775,33 @@ const router = new Router({ ...@@ -5761,33 +5775,33 @@ const router = new Router({
component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'), component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
}, },
{ {
path: 'salesliteratures/:salesliterature?/salesliteratureitems/:salesliteratureitem?/gridview/:gridview?', path: 'accounts/:account?/leads/:lead?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.salesliteratureitem.views.gridview.title', caption: 'entities.lead.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'salesliteratures', parameterName: 'salesliterature' }, { pathName: 'accounts', parameterName: 'account' },
{ pathName: 'salesliteratureitems', parameterName: 'salesliteratureitem' }, { pathName: 'leads', parameterName: 'lead' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'), component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
}, },
{ {
path: 'salesliteratureitems/:salesliteratureitem?/gridview/:gridview?', path: 'leads/:lead?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.salesliteratureitem.views.gridview.title', caption: 'entities.lead.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'central', parameterName: 'central' }, { pathName: 'central', parameterName: 'central' },
{ pathName: 'salesliteratureitems', parameterName: 'salesliteratureitem' }, { pathName: 'leads', parameterName: 'lead' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue'), component: () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'),
}, },
{ {
path: 'ibizlists/:ibizlist?/listaccounts/:listaccount?/quickcreatebylist/:quickcreatebylist?', path: 'ibizlists/:ibizlist?/listaccounts/:listaccount?/quickcreatebylist/:quickcreatebylist?',
......
...@@ -62,21 +62,6 @@ export default class CampaignServiceBase extends EntityService { ...@@ -62,21 +62,6 @@ export default class CampaignServiceBase extends EntityService {
*/ */
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = []; let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){ if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any); campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
...@@ -107,6 +92,21 @@ export default class CampaignServiceBase extends EntityService { ...@@ -107,6 +92,21 @@ export default class CampaignServiceBase extends EntityService {
} }
} }
masterData.campaigncampaigns = campaigncampaignsData; masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData); Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){ if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null; data[this.APPDEKEY] = null;
...@@ -116,9 +116,9 @@ export default class CampaignServiceBase extends EntityService { ...@@ -116,9 +116,9 @@ export default class CampaignServiceBase extends EntityService {
} }
let tempContext:any = JSON.parse(JSON.stringify(context)); let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/campaigns`,data,isloading); let res:any = await Http.getInstance().post(`/campaigns`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(tempContext.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists)); this.tempStorage.setItem(tempContext.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(tempContext.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns)); this.tempStorage.setItem(tempContext.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(tempContext.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res; return res;
} }
...@@ -133,21 +133,6 @@ export default class CampaignServiceBase extends EntityService { ...@@ -133,21 +133,6 @@ export default class CampaignServiceBase extends EntityService {
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = []; let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){ if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any); campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
...@@ -178,11 +163,26 @@ export default class CampaignServiceBase extends EntityService { ...@@ -178,11 +163,26 @@ export default class CampaignServiceBase extends EntityService {
} }
} }
masterData.campaigncampaigns = campaigncampaignsData; masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/campaigns/${context.campaign}`,data,isloading); let res:any = await Http.getInstance().put(`/campaigns/${context.campaign}`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists)); this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns)); this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res; return res;
} }
...@@ -210,9 +210,9 @@ export default class CampaignServiceBase extends EntityService { ...@@ -210,9 +210,9 @@ export default class CampaignServiceBase extends EntityService {
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/campaigns/${context.campaign}`,isloading); let res:any = await Http.getInstance().get(`/campaigns/${context.campaign}`,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists)); this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns)); this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res; return res;
} }
...@@ -228,9 +228,9 @@ export default class CampaignServiceBase extends EntityService { ...@@ -228,9 +228,9 @@ export default class CampaignServiceBase extends EntityService {
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/campaigns/getdraft`,isloading); let res:any = await Http.getInstance().get(`/campaigns/getdraft`,isloading);
res.data.campaign = data.campaign; res.data.campaign = data.campaign;
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists)); this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns)); this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res; return res;
} }
...@@ -258,21 +258,6 @@ export default class CampaignServiceBase extends EntityService { ...@@ -258,21 +258,6 @@ export default class CampaignServiceBase extends EntityService {
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
let campaignlistsData:any = []; let campaignlistsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){ if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists'),'undefined')){
campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any); campaignlistsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_campaignlists') as any);
...@@ -303,11 +288,26 @@ export default class CampaignServiceBase extends EntityService { ...@@ -303,11 +288,26 @@ export default class CampaignServiceBase extends EntityService {
} }
} }
masterData.campaigncampaigns = campaigncampaignsData; masterData.campaigncampaigns = campaigncampaignsData;
let leadsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_leads'),'undefined')){
leadsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_leads') as any);
if(leadsData && leadsData.length && leadsData.length > 0){
leadsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.leadid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.leads = leadsData;
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/campaigns/${context.campaign}/save`,data,isloading); let res:any = await Http.getInstance().post(`/campaigns/${context.campaign}/save`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists)); this.tempStorage.setItem(context.srfsessionkey+'_campaignlists',JSON.stringify(res.data.campaignlists));
this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns)); this.tempStorage.setItem(context.srfsessionkey+'_campaigncampaigns',JSON.stringify(res.data.campaigncampaigns));
this.tempStorage.setItem(context.srfsessionkey+'_leads',JSON.stringify(res.data.leads));
return res; return res;
} }
......
...@@ -85,6 +85,7 @@ export class EntityServiceRegister { ...@@ -85,6 +85,7 @@ export class EntityServiceRegister {
this.allEntityService.set('competitorsalesliterature', () => import('@/service/competitor-sales-literature/competitor-sales-literature-service')); this.allEntityService.set('competitorsalesliterature', () => import('@/service/competitor-sales-literature/competitor-sales-literature-service'));
this.allEntityService.set('knowledgearticle', () => import('@/service/knowledge-article/knowledge-article-service')); this.allEntityService.set('knowledgearticle', () => import('@/service/knowledge-article/knowledge-article-service'));
this.allEntityService.set('salesliteratureitem', () => import('@/service/sales-literature-item/sales-literature-item-service')); this.allEntityService.set('salesliteratureitem', () => import('@/service/sales-literature-item/sales-literature-item-service'));
this.allEntityService.set('multipickdata', () => import('@/service/multi-pick-data/multi-pick-data-service'));
this.allEntityService.set('contact', () => import('@/service/contact/contact-service')); this.allEntityService.set('contact', () => import('@/service/contact/contact-service'));
this.allEntityService.set('product', () => import('@/service/product/product-service')); this.allEntityService.set('product', () => import('@/service/product/product-service'));
this.allEntityService.set('competitor', () => import('@/service/competitor/competitor-service')); this.allEntityService.set('competitor', () => import('@/service/competitor/competitor-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 多类选择实体服务对象基类
*
* @export
* @class MultiPickDataServiceBase
* @extends {EntityServie}
*/
export default class MultiPickDataServiceBase extends EntityService {
/**
* Creates an instance of MultiPickDataServiceBase.
*
* @param {*} [opts={}]
* @memberof MultiPickDataServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof MultiPickDataServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='multipickdata';
this.APPDEKEY = 'pickdataid';
this.APPDENAME = 'multipickdata';
this.APPDETEXT = 'pickdataname';
this.APPNAME = 'crm';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/multipickdata/${context.multipickdata}/select`,isloading);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/multipickdata`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/multipickdata/${context.multipickdata}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/multipickdata/${context.multipickdata}`,isloading);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/multipickdata/${context.multipickdata}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/multipickdata/getdraft`,isloading);
res.data.multipickdata = data.multipickdata;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/multipickdata/${context.multipickdata}/checkkey`,data,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/multipickdata/${context.multipickdata}/save`,data,isloading);
return res;
}
/**
* FetchAC接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async FetchAC(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/multipickdata/fetchac`,tempData,isloading);
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MultiPickDataServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/multipickdata/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import MultiPickDataServiceBase from './multi-pick-data-service-base';
/**
* 多类选择实体服务对象
*
* @export
* @class MultiPickDataService
* @extends {MultiPickDataServiceBase}
*/
export default class MultiPickDataService extends MultiPickDataServiceBase {
/**
* Creates an instance of MultiPickDataService.
*
* @param {*} [opts={}]
* @memberof MultiPickDataService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -526,6 +526,15 @@ export const viewstate: any = { ...@@ -526,6 +526,15 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '30f3fc1e50e20f8330c255ae85dca393',
viewmodule: 'Base',
viewname: 'MultiPickDataACGrid',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: '3124753ba4abff3aaf49355a5197c4ab', viewtag: '3124753ba4abff3aaf49355a5197c4ab',
viewmodule: 'Marketing', viewmodule: 'Marketing',
...@@ -1290,6 +1299,7 @@ export const viewstate: any = { ...@@ -1290,6 +1299,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'30f3fc1e50e20f8330c255ae85dca393',
], ],
}, },
{ {
......
import MultiPickDataUIServiceBase from './multi-pick-data-ui-service-base';
/**
* 多类选择实体UI服务对象
*
* @export
* @class MultiPickDataUIService
*/
export default class MultiPickDataUIService extends MultiPickDataUIServiceBase {
/**
* Creates an instance of MultiPickDataUIService.
*
* @param {*} [opts={}]
* @memberof MultiPickDataUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -85,6 +85,7 @@ export class UIServiceRegister { ...@@ -85,6 +85,7 @@ export class UIServiceRegister {
this.allUIService.set('competitorsalesliterature', () => import('@/uiservice/competitor-sales-literature/competitor-sales-literature-ui-service')); this.allUIService.set('competitorsalesliterature', () => import('@/uiservice/competitor-sales-literature/competitor-sales-literature-ui-service'));
this.allUIService.set('knowledgearticle', () => import('@/uiservice/knowledge-article/knowledge-article-ui-service')); this.allUIService.set('knowledgearticle', () => import('@/uiservice/knowledge-article/knowledge-article-ui-service'));
this.allUIService.set('salesliteratureitem', () => import('@/uiservice/sales-literature-item/sales-literature-item-ui-service')); this.allUIService.set('salesliteratureitem', () => import('@/uiservice/sales-literature-item/sales-literature-item-ui-service'));
this.allUIService.set('multipickdata', () => import('@/uiservice/multi-pick-data/multi-pick-data-ui-service'));
this.allUIService.set('contact', () => import('@/uiservice/contact/contact-ui-service')); this.allUIService.set('contact', () => import('@/uiservice/contact/contact-ui-service'));
this.allUIService.set('product', () => import('@/uiservice/product/product-ui-service')); this.allUIService.set('product', () => import('@/uiservice/product/product-ui-service'));
this.allUIService.set('competitor', () => import('@/uiservice/competitor/competitor-ui-service')); this.allUIService.set('competitor', () => import('@/uiservice/competitor/competitor-ui-service'));
......
...@@ -606,25 +606,6 @@ export default class CentralModel { ...@@ -606,25 +606,6 @@ export default class CentralModel {
viewname: 'ibiz-list-grid-view', viewname: 'ibiz-list-grid-view',
resourcetag: '', resourcetag: '',
} }
,
{
id: '5bcda52e467d81ca235e117c389c2f1e',
name: 'menuitem29',
text: '快速市场活动',
type: 'MENUITEM',
counterid: '',
tooltip: '快速市场活动',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-volume-off',
icon: '',
textcls: '',
appfunctag: '',
resourcetag: '',
}
, ,
], ],
} }
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, SearchFormControlBase } from '@/studio-core';
import MultiPickDataService from '@/service/multi-pick-data/multi-pick-data-service';
import DefaultService from './default-searchform-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export class DefaultSearchFormBase extends SearchFormControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected controlType: string = 'SEARCHFORM';
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {MultiPickDataService}
* @memberof DefaultSearchFormBase
*/
public appEntityService: MultiPickDataService = new MultiPickDataService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected appDeName: string = 'multipickdata';
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public data: any = {
n_pickdataname_like: null,
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public detailsModel: any = {
formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
n_pickdataname_like: new FormItemModel({ caption: '数据名称(%)', detailType: 'FORMITEM', name: 'n_pickdataname_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
};
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册