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

xignzi006 发布系统代码

上级 deae8148
......@@ -369,16 +369,6 @@
"viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3",
"memo": ""
},
"contactdashboardview9": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW9",
"viewmodule": "Base",
"viewname": "ContactDashboardView9",
"viewfilename": "contact-dashboard-view9",
"viewtag": "5f858bcdc7f62dbe7c0b05a5e3924240",
"memo": ""
},
"opportunitygridview": {
"title": "opportunity表格视图",
"caption": "商机",
......@@ -399,6 +389,16 @@
"viewtag": "60093dd36f07238d7a7e72e9ed372942",
"memo": ""
},
"contactdashboardview": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewfilename": "contact-dashboard-view",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c",
"memo": ""
},
"goalgridview": {
"title": "goal表格视图",
"caption": "目标",
......
......@@ -210,14 +210,14 @@ export default {
info_abstract: {
caption: "联系人",
title: '联系人编辑视图',
},
dashboardview9: {
caption: "联系人",
title: '联系人数据看板视图',
},
info_detail: {
caption: "联系人",
title: '联系人编辑视图',
},
dashboardview: {
caption: "联系人",
title: '联系人数据看板视图',
},
pickupgridview: {
caption: "联系人",
......
......@@ -209,14 +209,14 @@ export default {
info_abstract: {
caption: '联系人',
title: '联系人编辑视图',
},
dashboardview9: {
caption: '联系人',
title: '联系人数据看板视图',
},
info_detail: {
caption: '联系人',
title: '联系人编辑视图',
},
dashboardview: {
caption: '联系人',
title: '联系人数据看板视图',
},
pickupgridview: {
caption: '联系人',
......
......@@ -303,14 +303,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountGridView",
"viewtag": "5c7e90ccfaeb49b5bd84ae6c17b479e3"
},
"contactdashboardview9": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW9",
"viewmodule": "Base",
"viewname": "ContactDashboardView9",
"viewtag": "5f858bcdc7f62dbe7c0b05a5e3924240"
},
"opportunitygridview": {
"title": "opportunity表格视图",
"caption": "商机",
......@@ -327,6 +319,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactInfo_Detail",
"viewtag": "60093dd36f07238d7a7e72e9ed372942"
},
"contactdashboardview": {
"title": "联系人数据看板视图",
"caption": "联系人",
"viewtype": "DEPORTALVIEW",
"viewmodule": "Base",
"viewname": "ContactDashboardView",
"viewtag": "6168a7e787ead13b1e0f9a55007bc68c"
},
"goalgridview": {
"title": "goal表格视图",
"caption": "目标",
......
<template>
<studio-view viewName="contactdashboardview" viewTitle="联系人数据看板视图" class='deportalview contact-dashboard-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
name="dashboard"
ref='dashboard'
@load="dashboard_load($event)"
@closeview="closeView($event)">
</view_dashboard>
</studio-view>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { UIActionTool,Util } from '@/utils';
import { Subject } from 'rxjs';
import ContactService from '@/service/contact/contact-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
@Component({
components: {
},
})
export default class ContactDashboardViewBase extends Vue {
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof ContactDashboardViewBase
*/
public appEntityService: ContactService = new ContactService;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof ContactDashboardViewBase
*/
public counterServiceArray:Array<any> = [];
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof ContactDashboardViewBase
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof ContactDashboardViewBase
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof ContactDashboardViewBase
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof ContactDashboardViewBase
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图标识
*
* @type {string}
* @memberof ContactDashboardViewBase
*/
public viewtag: string = '6168a7e787ead13b1e0f9a55007bc68c';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public model: any = {
srfCaption: 'entities.contact.views.dashboardview.caption',
srfTitle: 'entities.contact.views.dashboardview.title',
srfSubTitle: 'entities.contact.views.dashboardview.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof ContactDashboardViewBase
*/
@Watch('viewparam',{immediate: true, deep: true})
onParamData(newVal: any, oldVal: any) {
if(newVal){
for(let key in this.viewparams){
delete this.viewparams[key];
}
Object.assign(this.viewparams, JSON.parse(this.viewparam));
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof ContactDashboardViewBase
*/
@Watch('viewdata')
onViewData(newVal: any, oldVal: any) {
const _this: any = this;
if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{
_this.parseViewParam();
_this.engine.load();
});
}
}
/**
* 容器模型
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 计数器刷新
*
* @memberof ContactDashboardViewBase
*/
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();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof ContactDashboardViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof ContactDashboardViewBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof ContactDashboardViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'contact',
majorPSDEField: 'fullname',
isLoadDefault: true,
});
}
/**
* 应用上下文
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof ContactDashboardViewBase
*/
public viewparams:any = {};
/**
* 解析视图参数
*
* @public
* @memberof ContactDashboardViewBase
*/
public parseViewParam(): void {
for(let key in this.context){
delete this.context[key];
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
Object.assign(this.context, JSON.parse(this.viewdata));
if(this.context && this.context.srfparentdename){
Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename});
}
if(this.context && this.context.srfparentkey){
Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey});
}
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
this.handleCustomViewData();
this.$forceUpdate();
return;
}
const path = (this.$route.matched[this.$route.matched.length - 1]).path;
const keys: Array<any> = [];
const curReg = this.$pathToRegExp.pathToRegexp(path, keys);
const matchArray = curReg.exec(this.$route.path);
let tempValue: Object = {};
keys.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item.name, {
enumerable: true,
value: matchArray[index + 1]
});
});
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
}
/**
* 处理自定义视图数据
*
* @memberof ContactDashboardViewBase
*/
public handleCustomViewData(){
if(Object.keys(this.customViewNavContexts).length > 0){
Object.keys(this.customViewNavContexts).forEach((item:any) =>{
let tempContext:any = {};
let curNavContext:any = this.customViewNavContexts[item];
this.handleCustomDataLogic(curNavContext,tempContext,item);
Object.assign(this.context,tempContext);
})
}
if(Object.keys(this.customViewParams).length > 0){
Object.keys(this.customViewParams).forEach((item:any) =>{
let tempParam:any = {};
let curNavParam:any = this.customViewParams[item];
this.handleCustomDataLogic(curNavParam,tempParam,item);
Object.assign(this.viewparams,tempParam);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof ContactDashboardViewBase
*/
public handleCustomDataLogic(curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(this.viewparams[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
/**
* Vue声明周期
*
* @memberof ContactDashboardViewBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof ContactDashboardViewBase
*/
public afterCreated(){
const secondtag = this.$util.createUUID();
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag;
this.parseViewParam();
}
/**
* 销毁之前
*
* @memberof ContactDashboardViewBase
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof ContactDashboardViewBase
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof ContactDashboardViewBase
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ContactDashboardViewBase
*/
public dashboard_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof ContactDashboardViewBase
*/
public closeView(args: any[]): void {
let _view: any = this;
if (_view.viewdata) {
_view.$emit('viewdataschange', [args]);
_view.$emit('close', [args]);
} else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof ContactDashboardViewBase
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof ContactDashboardViewBase
*/
public afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
}
</script>
<style lang='less'>
@import './contact-dashboard-view.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.contact-dashboard-view {
--contact-dashboard-view: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ContactDashboardViewBase from './contact-dashboard-view-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 ContactDashboardView extends ContactDashboardViewBase {
}
</script>
\ No newline at end of file
......@@ -23,7 +23,6 @@ export const PageComponents = {
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('account-info-account', () => import('@pages/base/account-info-account/account-info-account.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('contact-dashboard-view9', () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('account-info-contact-setting', () => import('@pages/base/account-info-contact-setting/account-info-contact-setting.vue'));
Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'));
......@@ -71,6 +70,7 @@ export const PageComponents = {
Vue.component('list-lead-grid-view', () => import('@pages/marketing/list-lead-grid-view/list-lead-grid-view.vue'));
Vue.component('lead-edit-view', () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'));
Vue.component('phone-call-edit-view', () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue'));
Vue.component('contact-dashboard-view', () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'));
Vue.component('task-edit-view', () => import('@pages/base/task-edit-view/task-edit-view.vue'));
Vue.component('lead-quick-create', () => import('@pages/sales/lead-quick-create/lead-quick-create.vue'));
Vue.component('price-level-pickup-view', () => import('@pages/product/price-level-pickup-view/price-level-pickup-view.vue'));
......
......@@ -445,20 +445,6 @@ const router = new Router({
},
component: () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'),
},
{
path: 'contacts/:contact?/dashboardview9/:dashboardview9?',
meta: {
caption: 'entities.contact.views.dashboardview9.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview9', parameterName: 'dashboardview9' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'),
},
{
path: 'campaigns/:campaign?/info_schedule/:info_schedule?',
meta: {
......@@ -1386,6 +1372,20 @@ const router = new Router({
},
component: () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue'),
},
{
path: 'contacts/:contact?/dashboardview/:dashboardview?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
},
{
path: 'tasks/:task?/editview/:editview?',
meta: {
......@@ -2127,19 +2127,6 @@ const router = new Router({
},
component: () => import('@pages/base/account-grid-view/account-grid-view.vue'),
},
{
path: '/contacts/:contact?/dashboardview9/:dashboardview9?',
meta: {
caption: 'entities.contact.views.dashboardview9.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview9', parameterName: 'dashboardview9' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view9/contact-dashboard-view9.vue'),
},
{
path: '/opportunities/:opportunity?/gridview/:gridview?',
meta: {
......@@ -2166,6 +2153,19 @@ const router = new Router({
},
component: () => import('@pages/base/contact-info-detail/contact-info-detail.vue'),
},
{
path: '/contacts/:contact?/dashboardview/:dashboardview?',
meta: {
caption: 'entities.contact.views.dashboardview.title',
info:'',
parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-dashboard-view/contact-dashboard-view.vue'),
},
{
path: '/goals/:goal?/gridview/:gridview?',
meta: {
......
......@@ -353,16 +353,6 @@ export const viewstate: any = {
'6e18ac74e5685439110f9b4e534ee005',
],
},
{
viewtag: '5f858bcdc7f62dbe7c0b05a5e3924240',
viewmodule: 'Base',
viewname: 'ContactDashboardView9',
viewaction: '',
viewdatachange: false,
refviews: [
'3cf1d1097fdbdea6d7fb32cf7ff09d04',
],
},
{
viewtag: '5f8f689d5dccc3db6d2b74a24a8b24ef',
viewmodule: 'Sales',
......@@ -382,6 +372,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '6168a7e787ead13b1e0f9a55007bc68c',
viewmodule: 'Base',
viewname: 'ContactDashboardView',
viewaction: '',
viewdatachange: false,
refviews: [
'3cf1d1097fdbdea6d7fb32cf7ff09d04',
],
},
{
viewtag: '631a4276161c551802f3aaf4bd7e607c',
viewmodule: 'Sales',
......@@ -733,8 +733,12 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'f63525be2835a01da997d7f059efb09f',
'aa79d35850f36fbc1a5085353ecd5af5',
'697373026d90700244354625e1d01cc2',
'144fa4796e1efccbfeb7f373d4c0bebb',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
......@@ -929,7 +933,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'60093dd36f07238d7a7e72e9ed372942',
'5f858bcdc7f62dbe7c0b05a5e3924240',
'6168a7e787ead13b1e0f9a55007bc68c',
],
},
],
......
......@@ -81,8 +81,8 @@ export default class ContactUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'dashboardview9',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_detail',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'dashboardview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'byaccount',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_address',srfappde:'contacts'});
......
......@@ -2,7 +2,7 @@
<div :class="['app-list', this.items.length > 0 ? '' : 'app-list-empty' ]">
<div v-if="items.length > 0" style="height:100%;">
<div v-for = "item in items" :key="item.srfmajortext" :class="['app-list-item', {'isSelect': item.isselected === true ? true : false}]" @click="handleClick(item)" @dblclick="handleDblClick(item)">
<layout_dashboard_sysportlet8_list_itempanel name='dashboard_sysportlet8_list_itempanel' :inputData="item" :parentRef="thisRef"></layout_dashboard_sysportlet8_list_itempanel>
<layout_dashboard_sysportlet4_list_itempanel name='dashboard_sysportlet4_list_itempanel' :inputData="item" :parentRef="thisRef"></layout_dashboard_sysportlet4_list_itempanel>
</div>
</div>
<div v-else>
......@@ -388,7 +388,7 @@ export default class ByParentKeyBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: '错误', desc: 'AccountSummary视图列表fetchAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'CampaignSummary视图列表fetchAction参数未配置' });
return;
}
const arg: any = {...opt};
......@@ -452,7 +452,7 @@ export default class ByParentKeyBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: '错误', desc: 'AccountSummary视图表格removeAction参数未配置' });
this.$Notice.error({ title: '错误', desc: 'CampaignSummary视图表格removeAction参数未配置' });
return;
}
if (datas.length === 0) {
......
......@@ -10,7 +10,7 @@ export default class ByParentKeyModel {
* 获取数据项集合
*
* @returns {any[]}
* @memberof ByParentKeyDashboard_sysportlet8_listMode
* @memberof ByParentKeyDashboard_sysportlet4_listMode
*/
public getDataItems(): any[] {
return [
......
......@@ -2,11 +2,11 @@
import { Component } from 'vue-property-decorator';
import ByParentKeyBase from './by-parent-key-list-base.vue';
import layout_dashboard_sysportlet8_list_itempanel from '@widgets/activity-pointer/by-regarding-object-id-panel/by-regarding-object-id-panel.vue';
import layout_dashboard_sysportlet4_list_itempanel from '@widgets/activity-pointer/by-regarding-object-id-panel/by-regarding-object-id-panel.vue';
@Component({
components: {
layout_dashboard_sysportlet8_list_itempanel,
layout_dashboard_sysportlet4_list_itempanel,
}
})
......
......@@ -3,7 +3,7 @@
<p class='portlet-title'>
<span>
日程安排
活动
</span>
<span class="portlet-action">
<a @click="uiAction('u222531e', $event)">
......@@ -26,7 +26,7 @@
</p>
<div class="portlet-with-title">
<!-- 测试 -->
<view_dashboard_sysportlet8_list
<view_dashboard_sysportlet4_list
:viewState="viewState"
:viewparams="viewparams"
:context="context"
......@@ -35,10 +35,10 @@
updateAction="Update"
fetchAction="FetchByParentKey"
:showBusyIndicator="true"
name="dashboard_sysportlet8_list"
ref='dashboard_sysportlet8_list'
name="dashboard_sysportlet4_list"
ref='dashboard_sysportlet4_list'
@closeview="closeView($event)">
</view_dashboard_sysportlet8_list>
</view_dashboard_sysportlet4_list>
</div>
</div>
</template>
......@@ -151,7 +151,7 @@ export default class ActivityPointerList_ByParentKeyBase extends Vue implements
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet8_u222531e_click(params: any = {}, tag?: any, $event?: any) {
public dashboard_sysportlet4_u222531e_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
......@@ -179,7 +179,7 @@ export default class ActivityPointerList_ByParentKeyBase extends Vue implements
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet8_ue577d64_click(params: any = {}, tag?: any, $event?: any) {
public dashboard_sysportlet4_ue577d64_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
......@@ -207,7 +207,7 @@ export default class ActivityPointerList_ByParentKeyBase extends Vue implements
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet8_u654c060_click(params: any = {}, tag?: any, $event?: any) {
public dashboard_sysportlet4_u654c060_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
......@@ -235,7 +235,7 @@ export default class ActivityPointerList_ByParentKeyBase extends Vue implements
* @param {*} [$event]
* @memberof
*/
public dashboard_sysportlet8_u7019ad0_click(params: any = {}, tag?: any, $event?: any) {
public dashboard_sysportlet4_u7019ad0_click(params: any = {}, tag?: any, $event?: any) {
// 取数
let datas: any[] = [];
let xData: any = null;
......@@ -385,16 +385,16 @@ export default class ActivityPointerList_ByParentKeyBase extends Vue implements
*/
public uiAction(tag:string,event:any){
if(Object.is(tag,'u222531e')){
this.dashboard_sysportlet8_u222531e_click(null,tag,event);
this.dashboard_sysportlet4_u222531e_click(null,tag,event);
}
if(Object.is(tag,'ue577d64')){
this.dashboard_sysportlet8_ue577d64_click(null,tag,event);
this.dashboard_sysportlet4_ue577d64_click(null,tag,event);
}
if(Object.is(tag,'u654c060')){
this.dashboard_sysportlet8_u654c060_click(null,tag,event);
this.dashboard_sysportlet4_u654c060_click(null,tag,event);
}
if(Object.is(tag,'u7019ad0')){
this.dashboard_sysportlet8_u7019ad0_click(null,tag,event);
this.dashboard_sysportlet4_u7019ad0_click(null,tag,event);
}
}
......
......@@ -2,12 +2,12 @@
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ActivityPointerList_ByParentKeyBase from './list-by-parent-key-portlet-base.vue';
import view_dashboard_sysportlet8_list from '@widgets/activity-pointer/by-parent-key-list/by-parent-key-list.vue';
import view_dashboard_sysportlet4_list from '@widgets/activity-pointer/by-parent-key-list/by-parent-key-list.vue';
@Component({
components: {
view_dashboard_sysportlet8_list,
view_dashboard_sysportlet4_list,
}
})
......
......@@ -5,6 +5,12 @@
</row>
<row v-if="!isHasCustomized">
<i-col :md="{ span: 24, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container summarydashboard-container2 ' :style="{}">
<row>
<i-col :sm="{ span: 18, offset: 0 }" :md="{ span: 18, offset: 0 }" :lg="{ span: 18, offset: 0 }">
<div class="portlet-without-title">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container summarydashboard-container1 ' :style="{}">
......@@ -61,6 +67,41 @@
</div>
</span>
</card>
</div>
</i-col>
<i-col :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<div class="portlet-without-title">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container summarydashboard-container3 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<view_dashboard_sysportlet4
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="300"
name="dashboard_sysportlet4"
ref='dashboard_sysportlet4'
@closeview="closeView($event)">
</view_dashboard_sysportlet4>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
</card>
</i-col>
</row>
<row v-if="isHasCustomized" style="width: 100%;min-height: calc(100% - 40px);">
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SummaryBase from './summary-dashboard-base.vue';
import view_dashboard_sysportlet4 from '@widgets/activity-pointer/list-by-parent-key-portlet/list-by-parent-key-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/campaign/view-schedule-portlet/view-schedule-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/campaign/view-manager-portlet/view-manager-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/campaign/view-campagin-portlet/view-campagin-portlet.vue';
......@@ -8,6 +9,7 @@ import view_dashboard_sysportlet1 from '@widgets/campaign/view-campagin-portlet/
@Component({
components: {
view_dashboard_sysportlet4,
view_dashboard_sysportlet2,
view_dashboard_sysportlet3,
view_dashboard_sysportlet1,
......
......@@ -7,7 +7,7 @@
<i-col :md="{ span: 24, offset: 0 }">
<card class="portlet-card" :bordered="false" dis-hover :padding="0">
<span>
<div class='portlet-container dashboard-view9dashboard-container1 ' :style="{}">
<div class='portlet-container dashboard-viewdashboard-container1 ' :style="{}">
<row>
<i-col :md="{ span: 24, offset: 0 }">
<div class="portlet-without-title">
......
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<contact-dashboard-view9
<contact-dashboard-view
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</contact-dashboard-view9>
</contact-dashboard-view>
</div>
</template>
<script lang='tsx'>
......
......@@ -3182,7 +3182,7 @@
<!--输出实体[CONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-97-43">
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-102-43">
<createTable tableName="CONTACT">
<column name="ADDRESS1_FREIGHTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
......@@ -11021,22 +11021,22 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="MONTHLYFISCALCALENDAR" constraintName="DER1N_MONTHLYFISCALCALENDAR__T" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[CONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-212">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-212">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-213">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-213">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-214">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-214">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-215">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-215">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-216">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-216">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-97-217">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-102-217">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TEAM]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册