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

xignzi006 发布系统代码

上级 d07a3421
import { Subject } from 'rxjs';
import { WizardViewBase } from '@/studio-core';
import ActivityPointerService from '@/service/activity-pointer/activity-pointer-service';
import UIService from '@/uiservice/ui-service';
/**
* 活动数据重定向视图视图基类
*
* @export
* @class ActivityPointerRedirectViewBase
* @extends {WizardViewBase}
*/
export class ActivityPointerRedirectViewBase extends WizardViewBase {
/**
* 实体服务对象
*
* @type {ActivityPointerService}
* @memberof ActivityPointerRedirectViewBase
*/
protected appEntityService: ActivityPointerService = new ActivityPointerService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof ActivityPointerRedirectViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof ActivityPointerRedirectViewBase
*/
protected model: any = {
srfCaption: 'entities.activitypointer.views.redirectview.caption',
srfTitle: 'entities.activitypointer.views.redirectview.title',
srfSubTitle: 'entities.activitypointer.views.redirectview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof ActivityPointerRedirectViewBase
*/
protected containerModel: any = {
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '899dbdcf77250023245eb323c6cdeb05';
/**
* 引擎初始化
*
* @public
* @memberof ActivityPointerRedirectViewBase
*/
public engineInit(): void {
}
/**
* 初始化视图
*
* @memberof ActivityPointerRedirectViewBase
*/
public async viewCreated(){
const {srfkey:srfkey,srfappde:srfappde} = this.viewparams;
const uiService:UIService = new UIService();
const targetService:any = await uiService.getService(srfappde.toLowerCase());
targetService.getRDAppView(srfkey,true).then((res:any) =>{
if(res && res.viewname && res.srfappde){
const path:string =`/${res.srfappde}/${srfkey}/${res.viewname}`;
this.$router.push({path:path});
}else{
console.error("未查找到重定向视图")
}
})
}
}
\ No newline at end of file
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode("VIEW.vue").code} [in template "TEMPLCODE_zh_CN" at line 1, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEREDIRECTVIEW_STYLE2]发布代码[VIEW.vue]
\ No newline at end of file
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode().code} [in template "TEMPLCODE_zh_CN" at line 1, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEREDIRECTVIEW_STYLE2]发布代码[VIEW.less]
\ No newline at end of file
<template src="./activity-pointer-redirect-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ActivityPointerRedirectViewBase } from './activity-pointer-redirect-view-base';
/**
* 活动数据重定向视图视图
*
* @export
* @class ActivityPointerRedirectView
* @extends {ActivityPointerRedirectViewBase}
*/
@Component({
components: {
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class ActivityPointerRedirectView extends ActivityPointerRedirectViewBase { }
</script>
......@@ -9,7 +9,6 @@ export const PageComponents = {
Vue.component('account-edit-view', () => import('@pages/base/account-edit-view/account-edit-view.vue'));
Vue.component('lead-pickup-view', () => import('@pages/sales/lead-pickup-view/lead-pickup-view.vue'));
Vue.component('incident-edit-view', () => import('@pages/service/incident-edit-view/incident-edit-view.vue'));
Vue.component('activity-pointer-redirect-view', () => import('@pages/base/activity-pointer-redirect-view/activity-pointer-redirect-view.vue'));
Vue.component('product-pickup-view', () => import('@pages/product/product-pickup-view/product-pickup-view.vue'));
Vue.component('quote-info-abstract', () => import('@pages/sales/quote-info-abstract/quote-info-abstract.vue'));
Vue.component('contact-info-book', () => import('@pages/base/contact-info-book/contact-info-book.vue'));
......@@ -147,6 +146,7 @@ export const PageComponents = {
Vue.component('account-inner-pickup-grid-view', () => import('@pages/base/account-inner-pickup-grid-view/account-inner-pickup-grid-view.vue'));
Vue.component('contact-edit-address', () => import('@pages/base/contact-edit-address/contact-edit-address.vue'));
Vue.component('campaign-response-quick-create', () => import('@pages/marketing/campaign-response-quick-create/campaign-response-quick-create.vue'));
Vue.component('activity-pointer-redirect-view', () => import('@pages/base/activity-pointer-redirect-view/activity-pointer-redirect-view.vue'));
Vue.component('account-edit-introduction', () => import('@pages/base/account-edit-introduction/account-edit-introduction.vue'));
Vue.component('contact-edit-book', () => import('@pages/base/contact-edit-book/contact-edit-book.vue'));
Vue.component('campaign-summary', () => import('@pages/marketing/campaign-summary/campaign-summary.vue'));
......
......@@ -4476,6 +4476,18 @@ const router = new Router({
},
component: () => import('@pages/base/account-inner-pickup-view/account-inner-pickup-view.vue'),
},
{
path: 'activitypointerredirectview/:activitypointerredirectview?',
meta: {
caption: 'entities.activitypointer.views.redirectview.title',
info:'',
parameters: [
{ pathName: 'activitypointerredirectview', parameterName: 'activitypointerredirectview' },
],
requireAuth: true,
},
component: () => import('@pages/base/activity-pointer-redirect-view/activity-pointer-redirect-view.vue'),
},
...indexRoutes,
],
},
......
......@@ -904,6 +904,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '899dbdcf77250023245eb323c6cdeb05',
viewmodule: 'Base',
viewname: 'ActivityPointerRedirectView',
viewaction: '',
viewdatachange: false,
refviews: [
'f84a705f33385d5999fcfb69124932d4',
],
},
{
viewtag: '8b173077897bf865fe035e56073b763d',
viewmodule: 'Ungroup',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册