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

lab_gzf 发布系统代码

上级 4abe51a6
......@@ -660,6 +660,43 @@
}
]
},
{
"srfkey": "Incident__StateCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "已取消",
"text": "已取消",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "已解决",
"text": "已解决",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "有效",
"text": "有效",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
]
},
{
"srfkey": "Lead__LeadSourceCode",
"emptytext": "未定义",
......@@ -4308,6 +4345,43 @@
}
]
},
{
"srfkey": "Incident__PriorityCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "3",
"label": "低",
"text": "低",
"data":"",
"codename":"Item_3",
"value": "3",
"disabled": false
}
, {
"id": "2",
"label": "标准",
"text": "标准",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "高",
"text": "高",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "Invoice__PaymentTermsCode",
"emptytext": "未定义",
......
......@@ -95,6 +95,12 @@ export default {
"2": "免收费用",
"empty": ""
},
Incident__StateCode: {
"2": "已取消",
"1": "已解决",
"0": "有效",
"empty": ""
},
Lead__LeadSourceCode: {
"8": "Web",
"5": "公共关系",
......@@ -554,6 +560,12 @@ export default {
"CAMPAIGNRESPONSE": "市场活动响应",
"empty": ""
},
Incident__PriorityCode: {
"3": "低",
"2": "标准",
"1": "高",
"empty": ""
},
Invoice__PaymentTermsCode: {
"2": "2/10 N30",
"1": "N30",
......
......@@ -95,6 +95,12 @@ export default {
"2": "免收费用",
"empty": "",
},
Incident__StateCode: {
"2": "已取消",
"1": "已解决",
"0": "有效",
"empty": "",
},
Lead__LeadSourceCode: {
"8": "Web",
"5": "公共关系",
......@@ -554,6 +560,12 @@ export default {
"CAMPAIGNRESPONSE": "市场活动响应",
"empty": "",
},
Incident__PriorityCode: {
"3": "低",
"2": "标准",
"1": "高",
"empty": "",
},
Invoice__PaymentTermsCode: {
"2": "2/10 N30",
"1": "N30",
......
......@@ -246,8 +246,11 @@ export default {
main_grid: {
columns: {
title: "案例标题",
updateman: "更新人",
updatedate: "更新时间",
ticketnumber: "案例号",
prioritycode: "优先级",
caseorigincode: "起源",
customerid: "客户",
statecode: "状态",
},
uiactions: {
},
......
......@@ -245,8 +245,11 @@ export default {
main_grid: {
columns: {
title: "案例标题",
updateman: "更新人",
updatedate: "更新时间",
ticketnumber: "案例号",
prioritycode: "优先级",
caseorigincode: "起源",
customerid: "客户",
statecode: "状态",
},
uiactions: {
},
......
......@@ -668,6 +668,43 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Incident__StateCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "已取消",
text: "已取消",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1",
label: "已解决",
text: "已解决",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "0",
label: "有效",
text: "有效",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false,
},
]
},
{
srfkey: "Lead__LeadSourceCode",
emptytext: "未定义",
......@@ -4316,6 +4353,43 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Incident__PriorityCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "3",
label: "低",
text: "低",
"data":"",
"codename":"Item_3",
value: "3",
disabled: false,
},
{
id: "2",
label: "标准",
text: "标准",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1",
label: "高",
text: "高",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "Invoice__PaymentTermsCode",
emptytext: "未定义",
......
<studio-view-style2 viewName="goalchildgoalgridview" viewTitle="子目标表格视图" class='degridview goal-child-goal-grid-view'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./goal-child-goal-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalChildGoalGridViewBase } from './goal-child-goal-grid-view-base';
import view_grid from '@widgets/goal/main-grid/main-grid.vue';
import view_searchform from '@widgets/goal/default-searchform/default-searchform.vue';
/**
* 子目标表格视图视图
*
* @export
* @class GoalChildGoalGridView
* @extends {GoalChildGoalGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class GoalChildGoalGridView extends GoalChildGoalGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 子目标信息视图基类
*
* @export
* @class GoalEdit_ChildGoalViewBase
* @extends {EditViewBase}
*/
export class GoalEdit_ChildGoalViewBase extends EditViewBase {
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof GoalEdit_ChildGoalViewBase
*/
protected appEntityService: GoalService = new GoalService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof GoalEdit_ChildGoalViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof GoalEdit_ChildGoalViewBase
*/
protected model: any = {
srfCaption: 'entities.goal.views.edit_childgoalview.caption',
srfTitle: 'entities.goal.views.edit_childgoalview.title',
srfSubTitle: 'entities.goal.views.edit_childgoalview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof GoalEdit_ChildGoalViewBase
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof GoalEdit_ChildGoalView
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', caption: '保存并关闭','isShowCaption':true,'isShowIcon':true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' }, class: '' },
tbitem2: { name: 'tbitem2', caption: '关闭','isShowCaption':true,'isShowIcon':true, tooltip: '关闭', iconcls: 'fa fa-sign-out', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Exit', target: '' }, class: '' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '9be8eab621377b4bb8432a48a3f3f785';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof GoalEdit_ChildGoalViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof GoalEdit_ChildGoalViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'goal',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalEdit_ChildGoalViewBase
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalEdit_ChildGoalViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalEdit_ChildGoalViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalEdit_ChildGoalViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"Goal");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Exit(datas, contextJO,paramJO, $event, xData,this,"Goal");
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof GoalEdit_ChildGoalViewBase
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof GoalEdit_ChildGoalViewBase
*/
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="goaledit_childgoalview" viewTitle="子目标信息" class='deeditview goal-edit-child-goal-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./goal-edit-child-goal-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalEdit_ChildGoalViewBase } from './goal-edit-child-goal-view-base';
import view_form from '@widgets/goal/edit-child-goal-form/edit-child-goal-form.vue';
/**
* 子目标信息视图
*
* @export
* @class GoalEdit_ChildGoalView
* @extends {GoalEdit_ChildGoalViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class GoalEdit_ChildGoalView extends GoalEdit_ChildGoalViewBase { }
</script>
......@@ -517,7 +517,7 @@ export class GoalGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'infoview', parameterName: 'infoview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 目标信息视图视图基类
*
* @export
* @class GoalInfo_GoalViewBase
* @extends {EditViewBase}
*/
export class GoalInfo_GoalViewBase extends EditViewBase {
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof GoalInfo_GoalViewBase
*/
protected appEntityService: GoalService = new GoalService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof GoalInfo_GoalViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof GoalInfo_GoalViewBase
*/
protected model: any = {
srfCaption: 'entities.goal.views.info_goalview.caption',
srfTitle: 'entities.goal.views.info_goalview.title',
srfSubTitle: 'entities.goal.views.info_goalview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof GoalInfo_GoalViewBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '42dfdbed522e32b0efd03a9402ae29f8';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof GoalInfo_GoalViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof GoalInfo_GoalViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'goal',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalInfo_GoalViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalInfo_GoalViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalInfo_GoalViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="goalinfo_goalview" viewTitle="目标信息视图" class='deeditview goal-info-goal-view from-dashboard-style'>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
\ No newline at end of file
<template src="./goal-info-goal-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalInfo_GoalViewBase } from './goal-info-goal-view-base';
import view_form from '@widgets/goal/info-goal-form/info-goal-form.vue';
/**
* 目标信息视图视图
*
* @export
* @class GoalInfo_GoalView
* @extends {GoalInfo_GoalViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class GoalInfo_GoalView extends GoalInfo_GoalViewBase { }
</script>
import { Subject } from 'rxjs';
import { TabExpViewBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
/**
* 目标信息视图基类
*
* @export
* @class GoalInfoViewBase
* @extends {TabExpViewBase}
*/
export class GoalInfoViewBase extends TabExpViewBase {
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof GoalInfoViewBase
*/
protected appEntityService: GoalService = new GoalService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof GoalInfoViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof GoalInfoViewBase
*/
protected model: any = {
srfCaption: 'entities.goal.views.infoview.caption',
srfTitle: 'entities.goal.views.infoview.title',
srfSubTitle: 'entities.goal.views.infoview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof GoalInfoViewBase
*/
protected containerModel: any = {
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '521acee07c15c72e914d3ca538cb26fc';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof GoalInfoViewBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof GoalInfoViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'goal',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* 加载模型
*
* @protected
* @memberof GoalInfoViewBase
*/
protected async loadModel(): Promise<any> {
if(this.context.goal){
this.appEntityService.getDataInfo(JSON.parse(JSON.stringify(this.context)),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_data.title) {
Object.assign(this.model, { dataInfo: _data.title });
if (this.$tabPageExp) {
this.$tabPageExp.setCurPageCaption(this.model.srfTitle, this.model.srfTitle, this.model.dataInfo);
}
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
}
})
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="goalinfoview" viewTitle="目标信息" class='detabexpview goal-info-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
name="tabexppanel"
ref='tabexppanel'
@closeview="closeView($event)">
</view_tabexppanel>
</studio-view-style2>
\ No newline at end of file
<template src="./goal-info-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalInfoViewBase } from './goal-info-view-base';
import view_tabexppanel from '@widgets/goal/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.vue';
/**
* 目标信息视图
*
* @export
* @class GoalInfoView
* @extends {GoalInfoViewBase}
*/
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class GoalInfoView extends GoalInfoViewBase { }
</script>
import { Subject } from 'rxjs';
import { DashboardViewBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 目标数据看板视图视图基类
*
* @export
* @class GoalSummaryViewBase
* @extends {DashboardViewBase}
*/
export class GoalSummaryViewBase extends DashboardViewBase {
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof GoalSummaryViewBase
*/
protected appEntityService: GoalService = new GoalService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof GoalSummaryViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof GoalSummaryViewBase
*/
protected model: any = {
srfCaption: 'entities.goal.views.summaryview.caption',
srfTitle: 'entities.goal.views.summaryview.title',
srfSubTitle: 'entities.goal.views.summaryview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof GoalSummaryViewBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '674522952049a4e85508a1f9f3642d80';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof GoalSummaryViewBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof GoalSummaryViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'goal',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof GoalSummaryViewBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="goalsummaryview" viewTitle="目标数据看板视图" class='deportalview goal-summary-view'>
<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>
\ No newline at end of file
<template src="./goal-summary-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalSummaryViewBase } from './goal-summary-view-base';
import view_dashboard from '@widgets/goal/goal-info-dashboard/goal-info-dashboard.vue';
/**
* 目标数据看板视图视图
*
* @export
* @class GoalSummaryView
* @extends {GoalSummaryViewBase}
*/
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class GoalSummaryView extends GoalSummaryViewBase { }
</script>
......@@ -2,6 +2,7 @@ export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('account-gradation', () => import('@pages/base/account-gradation/account-gradation.vue'));
Vue.component('account-quick-create', () => import('@pages/base/account-quick-create/account-quick-create.vue'));
Vue.component('goal-child-goal-grid-view', () => import('@pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.vue'));
Vue.component('incident-edit-chlid-incident', () => import('@pages/service/incident-edit-chlid-incident/incident-edit-chlid-incident.vue'));
Vue.component('invoice-info-invoice-view', () => import('@pages/finance/invoice-info-invoice-view/invoice-info-invoice-view.vue'));
Vue.component('product-price-level-pro-prilv-grid-view', () => import('@pages/product/product-price-level-pro-prilv-grid-view/product-price-level-pro-prilv-grid-view.vue'));
......@@ -25,13 +26,14 @@ export const PageComponents = {
Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue'));
Vue.component('invoice-quick-create-view', () => import('@pages/finance/invoice-quick-create-view/invoice-quick-create-view.vue'));
Vue.component('opportunity-competitor-opp-comp-grid-view', () => import('@pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue'));
Vue.component('goal-info-goal-view', () => import('@pages/sales/goal-info-goal-view/goal-info-goal-view.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('lead-con-lead-grid-view', () => import('@pages/sales/lead-con-lead-grid-view/lead-con-lead-grid-view.vue'));
Vue.component('sales-order-info-view', () => import('@pages/sales/sales-order-info-view/sales-order-info-view.vue'));
Vue.component('sales-order-detail-edit-view', () => import('@pages/sales/sales-order-detail-edit-view/sales-order-detail-edit-view.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
Vue.component('goal-info-view', () => import('@pages/sales/goal-info-view/goal-info-view.vue'));
Vue.component('letter-edit-view', () => import('@pages/base/letter-edit-view/letter-edit-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('transaction-currency-pickup-view', () => import('@pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue'));
Vue.component('opportunity-product-edit-view', () => import('@pages/sales/opportunity-product-edit-view/opportunity-product-edit-view.vue'));
Vue.component('incident-summary-view', () => import('@pages/service/incident-summary-view/incident-summary-view.vue'));
......@@ -45,6 +47,7 @@ export const PageComponents = {
Vue.component('quote-info', () => import('@pages/sales/quote-info/quote-info.vue'));
Vue.component('product-info-view', () => import('@pages/product/product-info-view/product-info-view.vue'));
Vue.component('competitor-summary', () => import('@pages/sales/competitor-summary/competitor-summary.vue'));
Vue.component('goal-edit-child-goal-view', () => import('@pages/sales/goal-edit-child-goal-view/goal-edit-child-goal-view.vue'));
Vue.component('ibiz-list-grid-view', () => import('@pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue'));
Vue.component('discount-type-pickup-view', () => import('@pages/sales/discount-type-pickup-view/discount-type-pickup-view.vue'));
Vue.component('product-grid-view', () => import('@pages/product/product-grid-view/product-grid-view.vue'));
......@@ -143,6 +146,7 @@ export const PageComponents = {
Vue.component('lead-info', () => import('@pages/sales/lead-info/lead-info.vue'));
Vue.component('product-pickup-grid-view', () => import('@pages/product/product-pickup-grid-view/product-pickup-grid-view.vue'));
Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'));
Vue.component('goal-summary-view', () => import('@pages/sales/goal-summary-view/goal-summary-view.vue'));
Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue'));
Vue.component('lead-info-detail', () => import('@pages/sales/lead-info-detail/lead-info-detail.vue'));
Vue.component('sales-order-detail-soproduct-grid-view', () => import('@pages/sales/sales-order-detail-soproduct-grid-view/sales-order-detail-soproduct-grid-view.vue'));
......
......@@ -63,6 +63,20 @@ const router = new Router({
},
component: () => import('@pages/base/account-quick-create/account-quick-create.vue'),
},
{
path: 'goals/:goal?/childgoalgridview/:childgoalgridview?',
meta: {
caption: 'entities.goal.views.childgoalgridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'childgoalgridview', parameterName: 'childgoalgridview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.vue'),
},
{
path: 'incidents/:incident?/edit_chlidincident/:edit_chlidincident?',
meta: {
......@@ -708,6 +722,20 @@ const router = new Router({
},
component: () => import('@pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue'),
},
{
path: 'goals/:goal?/info_goalview/:info_goalview?',
meta: {
caption: 'entities.goal.views.info_goalview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'info_goalview', parameterName: 'info_goalview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-info-goal-view/goal-info-goal-view.vue'),
},
{
path: 'campaigns/:campaign?/info_schedule/:info_schedule?',
meta: {
......@@ -871,32 +899,32 @@ const router = new Router({
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: 'letters/:letter?/editview/:editview?',
path: 'goals/:goal?/infoview/:infoview?',
meta: {
caption: 'entities.letter.views.editview.title',
caption: 'entities.goal.views.infoview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'letters', parameterName: 'letter' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'infoview', parameterName: 'infoview' },
],
requireAuth: true,
},
component: () => import('@pages/base/letter-edit-view/letter-edit-view.vue'),
component: () => import('@pages/sales/goal-info-view/goal-info-view.vue'),
},
{
path: 'goals/:goal?/editview/:editview?',
path: 'letters/:letter?/editview/:editview?',
meta: {
caption: 'entities.goal.views.editview.title',
caption: 'entities.letter.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'letters', parameterName: 'letter' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'),
component: () => import('@pages/base/letter-edit-view/letter-edit-view.vue'),
},
{
path: 'transactioncurrencies/:transactioncurrency?/pickupview/:pickupview?',
......@@ -1176,6 +1204,20 @@ const router = new Router({
},
component: () => import('@pages/sales/competitor-summary/competitor-summary.vue'),
},
{
path: 'goals/:goal?/edit_childgoalview/:edit_childgoalview?',
meta: {
caption: 'entities.goal.views.edit_childgoalview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'edit_childgoalview', parameterName: 'edit_childgoalview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-edit-child-goal-view/goal-edit-child-goal-view.vue'),
},
{
path: 'ibizlists/:ibizlist?/gridview/:gridview?',
meta: {
......@@ -4223,6 +4265,20 @@ const router = new Router({
},
component: () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'),
},
{
path: 'goals/:goal?/summaryview/:summaryview?',
meta: {
caption: 'entities.goal.views.summaryview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'goals', parameterName: 'goal' },
{ pathName: 'summaryview', parameterName: 'summaryview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/goal-summary-view/goal-summary-view.vue'),
},
{
path: 'accounts/:account?/info/:info?',
meta: {
......
......@@ -607,6 +607,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '42dfdbed522e32b0efd03a9402ae29f8',
viewmodule: 'Sales',
viewname: 'GoalInfo_GoalView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '44a690a1d62a390708480cb43f67d98b',
viewmodule: 'Marketing',
......@@ -720,6 +729,17 @@ export const viewstate: any = {
'd8b664607bd727900320b23da3fafaf2',
],
},
{
viewtag: '521acee07c15c72e914d3ca538cb26fc',
viewmodule: 'Sales',
viewname: 'GoalInfoView',
viewaction: '',
viewdatachange: false,
refviews: [
'cb7c18e9af4848f515ab84524fb234b2',
'674522952049a4e85508a1f9f3642d80',
],
},
{
viewtag: '540213698dac06ea2ef3193da7fe9b11',
viewmodule: 'Service',
......@@ -842,7 +862,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'cab8702dc3d6cc283eb40a1e07fa72ba',
'7877d7e7e55fe21f48e8382e07579f33',
'521acee07c15c72e914d3ca538cb26fc',
],
},
{
......@@ -864,6 +884,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '674522952049a4e85508a1f9f3642d80',
viewmodule: 'Sales',
viewname: 'GoalSummaryView',
viewaction: '',
viewdatachange: false,
refviews: [
'42dfdbed522e32b0efd03a9402ae29f8',
],
},
{
viewtag: '688201ee5642d41628dbf4deba002d17',
viewmodule: 'Base',
......@@ -987,15 +1017,6 @@ export const viewstate: any = {
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
viewtag: '7877d7e7e55fe21f48e8382e07579f33',
viewmodule: 'Sales',
viewname: 'GoalEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '78862ad65295f145e7520291f1183604',
viewmodule: 'Sales',
......@@ -1285,6 +1306,17 @@ export const viewstate: any = {
'6debde861c6e6f91eeb442cb869e9737',
],
},
{
viewtag: '9be8eab621377b4bb8432a48a3f3f785',
viewmodule: 'Sales',
viewname: 'GoalEdit_ChildGoalView',
viewaction: '',
viewdatachange: false,
refviews: [
'2665d630c1446030eab8f52c5ebca818',
'a17a40c513ec2011425e9d26b6591214',
],
},
{
viewtag: '9bf80730e83a74615919a0f0907505d4',
viewmodule: 'Sales',
......@@ -1718,6 +1750,16 @@ export const viewstate: any = {
'a17a40c513ec2011425e9d26b6591214',
],
},
{
viewtag: 'cb7c18e9af4848f515ab84524fb234b2',
viewmodule: 'Sales',
viewname: 'GoalChildGoalGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'9be8eab621377b4bb8432a48a3f3f785',
],
},
{
viewtag: 'd138851bb39f6334938bb634467dc3cc',
viewmodule: 'Service',
......
/**
* Edit_ChildGoal 部件模型
*
* @export
* @class Edit_ChildGoalModel
*/
export default class Edit_ChildGoalModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Edit_ChildGoalModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'goalid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'title',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'parentgoalname',
prop: 'parentgoalname',
dataType: 'PICKUPTEXT',
},
{
name: 'metricname',
prop: 'metricname',
dataType: 'PICKUPTEXT',
},
{
name: 'goalownerid',
prop: 'goalownerid',
dataType: 'TEXT',
},
{
name: 'ownerid',
prop: 'ownerid',
dataType: 'TEXT',
},
{
name: 'fiscalperiodgoal',
prop: 'fiscalperiodgoal',
dataType: 'YESNO',
},
{
name: 'fiscalyear',
prop: 'fiscalyear',
dataType: 'SSCODELIST',
},
{
name: 'fiscalperiod',
prop: 'fiscalperiod',
dataType: 'SSCODELIST',
},
{
name: 'goalstartdate',
prop: 'goalstartdate',
dataType: 'DATETIME',
},
{
name: 'goalenddate',
prop: 'goalenddate',
dataType: 'DATETIME',
},
{
name: 'targetmoney',
prop: 'targetmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'actualmoney',
prop: 'actualmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'percentage',
prop: 'percentage',
dataType: 'BIGDECIMAL',
},
{
name: 'inprogressmoney',
prop: 'inprogressmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'parentgoalid',
prop: 'parentgoalid',
dataType: 'PICKUP',
},
{
name: 'goalid',
prop: 'goalid',
dataType: 'GUID',
},
{
name: 'metricid',
prop: 'metricid',
dataType: 'PICKUP',
},
{
name: 'goal',
prop: 'goalid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<template src="./edit-child-goal-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Edit_ChildGoalEditFormBase } from './edit-child-goal-form-base';
/**
* form部件
*
* @export
* @class Edit_ChildGoalEditForm
* @extends {Edit_ChildGoalEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Edit_ChildGoalEditForm extends Edit_ChildGoalEditFormBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import GoalInfoService from './goal-info-dashboard-service';
import UtilService from '@/utilservice/util-service';
/**
* dashboard部件基类
*
* @export
* @class MainControlBase
* @extends {GoalInfoDashboardBase}
*/
export class GoalInfoDashboardBase extends MainControlBase {
/**
* 建构部件服务对象
*
* @type {GoalInfoService}
* @memberof GoalInfoDashboardBase
*/
public service: GoalInfoService = new GoalInfoService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof GoalInfoDashboardBase
*/
public appEntityService: GoalService = new GoalService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof GoalInfoDashboardBase
*/
protected appDeName: string = 'goal';
/**
* 是否支持看板定制
*
* @public
* @type {(boolean)}
* @memberof GoalInfo
*/
@Prop() public isEnableCustomized!:boolean;
/**
* 是否已有看板定制
*
* @public
* @type {(boolean)}
* @memberof GoalInfo
*/
public isHasCustomized:boolean = false;
/**
* 模型数据
*
* @public
* @type {(*)}
* @memberof GoalInfo
*/
public modelDta:any;
/**
* modleId
*
* @type {string}
* @memberof GoalInfo
*/
public modelId:string = "dashboard_goal_goalinfo";
/**
* 建构功能服务对象
*
* @type {UtilService}
* @memberof GoalInfo
*/
public utilService:UtilService = new UtilService();
/**
* 功能服务名称
*
* @type {string}
* @memberof GoalInfo
*/
public utilServiceName:string = "";
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof GoalInfo
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof GoalInfo
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof GoalInfo
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof GoalInfo
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('load', action)) {
this.loadModel();
}
});
}
}
/**
* 动态设计水平列数
*
* @memberof GoalInfo
*/
public layoutColNum:number = 12;
/**
* 动态设计单元格高度,80px
*
* @memberof GoalInfo
*/
public layoutRowH:number = 80;
/**
* 通知状态
*
* @memberof GoalInfo
*/
public notifyState(){
this.$nextTick(() =>{
if (this.isHasCustomized) {
if (this.modelDta && this.modelDta.length > 0) {
this.modelDta.forEach((item: any) => {
this.viewState.next({
tag: item.portletCodeName,
action: "load",
data: JSON.parse(JSON.stringify(this.viewparams))
});
});
}
} else {
if (this.viewState) {
const refs: any = this.$refs;
Object.keys(refs).forEach((name: string) => {
this.viewState.next({
tag: name,
action: "load",
data: JSON.parse(JSON.stringify(this.viewparams))
});
});
}
}
})
}
/**
* 加载布局与数据模型
*
* @memberof GoalInfo
*/
public loadModel(){
if(this.isEnableCustomized){
this.utilService.getService(this.utilServiceName).then((service:any) =>{
service.loadModelData(JSON.parse(JSON.stringify(this.context)),{modelid:this.modelId,utilServiceName:this.utilServiceName}).then((res:any) =>{
if(res && res.status == 200){
const data:any = res.data;
if(data && data.length >0){
this.isHasCustomized = true;
this.modelDta = data;
this.$forceUpdate();
}else{
this.isHasCustomized = false;
}
this.notifyState();
}else{
console.error("加载面板模型异常");
this.isHasCustomized = false;
this.notifyState();
}
}).catch((error:any)=>{
console.error("加载面板模型异常");
console.error(error);
this.isHasCustomized = false;
this.notifyState();
});
})
}else{
this.notifyState();
}
}
/**
* 处理私人定制按钮
*
* @memberof GoalInfo
*/
public handleClick(){
const view:any ={
viewname: 'app-portal-design',
title: '面板设计',
width: 1600,
placement: 'DRAWER_RIGHT'
}
const viewparam:any ={
modelid:this.modelId,
utilServiceName:this.utilServiceName,
appdeName:'Goal'
}
const appdrawer = this.$appdrawer.openDrawer(view, JSON.parse(JSON.stringify(this.context)), viewparam);
appdrawer.subscribe((result: any) => {
if(Object.is(result.ret,'OK')){
this.loadModel();
}
});
}
/**
* vue 生命周期
*
* @memberof GoalInfo
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof GoalInfo
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
\ No newline at end of file
/**
* GoalInfo 部件模型
*
* @export
* @class GoalInfoModel
*/
export default class GoalInfoModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GoalInfoModel
*/
public getDataItems(): any[] {
return [
{
name: 'inprogressdecimal',
},
{
name: 'goal',
prop: 'goalid',
},
{
name: 'stretchtargetmoney',
},
{
name: 'actualdecimal',
},
{
name: 'computedtargetasoftodayinteger',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'exchangerate',
},
{
name: 'entityimageid',
},
{
name: 'targetinteger',
},
{
name: 'customrollupfieldmoney_base',
},
{
name: 'entityimage_url',
},
{
name: 'actualmoney_base',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'inprogressinteger',
},
{
name: 'statecode',
},
{
name: 'targetmoney_base',
},
{
name: 'inprogressstring',
},
{
name: 'entityimage_timestamp',
},
{
name: 'goalstartdate',
},
{
name: 'percentage',
},
{
name: 'ownerid',
},
{
name: 'goalowneridyominame',
},
{
name: 'targetdecimal',
},
{
name: 'amount',
},
{
name: 'statuscode',
},
{
name: 'amountdatatype',
},
{
name: 'customrollupfieldinteger',
},
{
name: 'owneridtype',
},
{
name: 'updatedate',
},
{
name: 'inprogressmoney',
},
{
name: 'fiscalyear',
},
{
name: 'fiscalperiod',
},
{
name: 'title',
},
{
name: 'stretchtargetdecimal',
},
{
name: 'customrollupfielddecimal',
},
{
name: 'consideronlygoalownersrecords',
},
{
name: 'overriddencreatedon',
},
{
name: 'actualmoney',
},
{
name: 'rolluponlyfromchildgoals',
},
{
name: 'goalenddate',
},
{
name: 'createdate',
},
{
name: 'customrollupfieldmoney',
},
{
name: 'rolluperrorcode',
},
{
name: 'versionnumber',
},
{
name: 'stretchtargetmoney_base',
},
{
name: 'treeid',
},
{
name: 'entityimage',
},
{
name: 'stretchtargetstring',
},
{
name: 'stretchtargetinteger',
},
{
name: 'fiscalperiodgoal',
},
{
name: 'inprogressmoney_base',
},
{
name: 'overridden',
},
{
name: 'actualstring',
},
{
name: 'actualinteger',
},
{
name: 'goalowneridtype',
},
{
name: 'importsequencenumber',
},
{
name: 'goalownerid',
},
{
name: 'computedtargetasoftodaydecimal',
},
{
name: 'createman',
},
{
name: 'targetstring',
},
{
name: 'customrollupfieldstring',
},
{
name: 'targetmoney',
},
{
name: 'lastrolledupdate',
},
{
name: 'updateman',
},
{
name: 'override',
},
{
name: 'computedtargetasoftodaymoney',
},
{
name: 'owneridyominame',
},
{
name: 'parentgoalid',
},
{
name: 'rollupqueryinprogressmoneyid',
},
{
name: 'rollupquerycustommoneyid',
},
{
name: 'rollupqueryinprogressintegerid',
},
{
name: 'rollupquerycustomdecimalid',
},
{
name: 'rollupqueryactualmoneyid',
},
{
name: 'rollupquerycustomintegerid',
},
{
name: 'goalwitherrorid',
},
{
name: 'metricid',
},
{
name: 'rollupqueryinprogressdecimalid',
},
{
name: 'rollupqueryactualintegerid',
},
{
name: 'rollupqueryactualdecimalid',
},
{
name: 'parentgoalname',
},
{
name: 'metricname',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* GoalInfo 部件服务对象
*
* @export
* @class GoalInfoService
*/
export default class GoalInfoService extends ControlService {
}
\ No newline at end of file
<div class='dashboard'>
<row v-if="isEnableCustomized">
<app-build @handleClick="handleClick.apply(_self, arguments)"></app-build>
</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 summary-viewdashboard-container1 portlet-container-no-border' :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_sysportlet1
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:height="0"
:width="0"
name="dashboard_sysportlet1"
ref='dashboard_sysportlet1'
@closeview="closeView($event)">
</view_dashboard_sysportlet1>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
</card>
</i-col>
</row>
<row v-if="isHasCustomized" style="width: 100%;min-height: calc(100% - 40px);">
<div class="portlet-container" style="position: relative;width:100%;">
<template v-for="(item, index) of modelDta">
<div :key="index" :style="{zIndex: 10, position: 'absolute', height: item.h*layoutRowH + 'px', width: `calc(100% / ${layoutColNum} * ${item.w})`,top: item.y*layoutRowH + 'px', left: `calc(100% / ${layoutColNum} * ${item.x})`}">
<component :key="$util.createUUID()" :is="item.componentName" :name="item.portletCodeName" :context="JSON.parse(JSON.stringify(context))" :viewDefaultUsage="false" :isAdaptiveSize="true" :viewState="viewState"></component>
</div>
</template>
</div>
</row>
</div>
\ No newline at end of file
<template src="./goal-info-dashboard.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GoalInfoDashboardBase } from './goal-info-dashboard-base';
import view_dashboard_sysportlet1 from '@widgets/goal/view-goal-info-portlet/view-goal-info-portlet.vue';
/**
* dashboard部件
*
* @export
* @class GoalInfoDashboard
* @extends {GoalInfoDashboardBase}
*/
@Component({
components: {
view_dashboard_sysportlet1,
}
})
@VueLifeCycleProcessing()
export default class GoalInfoDashboard extends GoalInfoDashboardBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import Info_GoalService from './info-goal-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {Info_GoalEditFormBase}
*/
export class Info_GoalEditFormBase extends EditFormControlBase {
/**
* 建构部件服务对象
*
* @type {Info_GoalService}
* @memberof Info_GoalEditFormBase
*/
public service: Info_GoalService = new Info_GoalService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof Info_GoalEditFormBase
*/
public appEntityService: GoalService = new GoalService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Info_GoalEditFormBase
*/
protected appDeName: string = 'goal';
/**
* 表单数据对象
*
* @type {*}
* @memberof Info_GoalEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
title: null,
parentgoalname: null,
metricname: null,
goalownerid: null,
ownerid: null,
fiscalperiodgoal: null,
fiscalyear: null,
fiscalperiod: null,
goalstartdate: null,
goalenddate: null,
targetmoney: null,
actualmoney: null,
percentage: null,
inprogressmoney: null,
goalid: null,
goal:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof Info_GoalEditFormBase
*/
public rules: any = {
}
/**
* 详情模型集合
*
* @type {*}
* @memberof Info_GoalEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.goal.info_goal_form', extractMode: 'ITEM', details: [] } }),
grouppanel2: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: false, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.goal.info_goal_form', extractMode: 'ITEM', details: [] } }),
grouppanel3: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: false, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.goal.info_goal_form', extractMode: 'ITEM', details: [] } }),
grouppanel1: new FormGroupPanelModel({ caption: '时间段', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.goal.info_goal_form', extractMode: 'ITEM', details: [] } }),
grouppanel4: new FormGroupPanelModel({ caption: '详细信息', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.goal.info_goal_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '目标', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
srfmajortext: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
title: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'title', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
parentgoalname: new FormItemModel({ caption: '上级目标', detailType: 'FORMITEM', name: 'parentgoalname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
metricname: new FormItemModel({ caption: '目标度量', detailType: 'FORMITEM', name: 'metricname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
goalownerid: new FormItemModel({ caption: '目标负责人', detailType: 'FORMITEM', name: 'goalownerid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
ownerid: new FormItemModel({ caption: '经理', detailType: 'FORMITEM', name: 'ownerid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
fiscalperiodgoal: new FormItemModel({ caption: '目标期间类型', detailType: 'FORMITEM', name: 'fiscalperiodgoal', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
fiscalyear: new FormItemModel({ caption: '会计年度', detailType: 'FORMITEM', name: 'fiscalyear', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
fiscalperiod: new FormItemModel({ caption: '会计期间', detailType: 'FORMITEM', name: 'fiscalperiod', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
goalstartdate: new FormItemModel({ caption: '从', detailType: 'FORMITEM', name: 'goalstartdate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
goalenddate: new FormItemModel({ caption: '到', detailType: 'FORMITEM', name: 'goalenddate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
targetmoney: new FormItemModel({ caption: '目标值(金额)', detailType: 'FORMITEM', name: 'targetmoney', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
actualmoney: new FormItemModel({ caption: '实际值(金额)', detailType: 'FORMITEM', name: 'actualmoney', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
percentage: new FormItemModel({ caption: '已实现百分比', detailType: 'FORMITEM', name: 'percentage', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
inprogressmoney: new FormItemModel({ caption: '过程值(金额)', detailType: 'FORMITEM', name: 'inprogressmoney', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
goalid: new FormItemModel({ caption: '目标', detailType: 'FORMITEM', name: 'goalid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
};
/**
* 表单逻辑
*
* @param {{ name: string, newVal: any, oldVal: any }} { name, newVal, oldVal }
* @memberof Info_GoalEditFormBase
*/
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (Object.is(name, '') || Object.is(name, 'fiscalperiodgoal')) {
let ret = false;
const _fiscalperiodgoal = this.data.fiscalperiodgoal;
if (this.$verify.testCond(_fiscalperiodgoal, 'EQ', '')) {
ret = true;
}
this.detailsModel.grouppanel2.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'fiscalperiodgoal')) {
let ret = false;
const _fiscalperiodgoal = this.data.fiscalperiodgoal;
if (this.$verify.testCond(_fiscalperiodgoal, 'EQ', '0')) {
ret = true;
}
this.detailsModel.grouppanel3.setVisible(ret);
}
}
}
\ No newline at end of file
/**
* Info_Goal 部件模型
*
* @export
* @class Info_GoalModel
*/
export default class Info_GoalModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Info_GoalModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'goalid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'title',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'parentgoalname',
prop: 'parentgoalname',
dataType: 'PICKUPTEXT',
},
{
name: 'metricname',
prop: 'metricname',
dataType: 'PICKUPTEXT',
},
{
name: 'goalownerid',
prop: 'goalownerid',
dataType: 'TEXT',
},
{
name: 'ownerid',
prop: 'ownerid',
dataType: 'TEXT',
},
{
name: 'fiscalperiodgoal',
prop: 'fiscalperiodgoal',
dataType: 'YESNO',
},
{
name: 'fiscalyear',
prop: 'fiscalyear',
dataType: 'SSCODELIST',
},
{
name: 'fiscalperiod',
prop: 'fiscalperiod',
dataType: 'SSCODELIST',
},
{
name: 'goalstartdate',
prop: 'goalstartdate',
dataType: 'DATETIME',
},
{
name: 'goalenddate',
prop: 'goalenddate',
dataType: 'DATETIME',
},
{
name: 'targetmoney',
prop: 'targetmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'actualmoney',
prop: 'actualmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'percentage',
prop: 'percentage',
dataType: 'BIGDECIMAL',
},
{
name: 'inprogressmoney',
prop: 'inprogressmoney',
dataType: 'BIGDECIMAL',
},
{
name: 'goalid',
prop: 'goalid',
dataType: 'GUID',
},
{
name: 'goal',
prop: 'goalid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<template src="./info-goal-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Info_GoalEditFormBase } from './info-goal-form-base';
/**
* form部件
*
* @export
* @class Info_GoalEditForm
* @extends {Info_GoalEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Info_GoalEditForm extends Info_GoalEditFormBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, TabExpPanelControlBase } from '@/studio-core';
import GoalService from '@/service/goal/goal-service';
import InfoViewtabexppanelService from './info-viewtabexppanel-tabexppanel-service';
/**
* tabexppanel部件基类
*
* @export
* @class TabExpPanelControlBase
* @extends {InfoViewtabexppanelTabexppanelBase}
*/
export class InfoViewtabexppanelTabexppanelBase extends TabExpPanelControlBase {
/**
* 建构部件服务对象
*
* @type {InfoViewtabexppanelService}
* @memberof InfoViewtabexppanelTabexppanelBase
*/
public service: InfoViewtabexppanelService = new InfoViewtabexppanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {GoalService}
* @memberof InfoViewtabexppanelTabexppanelBase
*/
public appEntityService: GoalService = new GoalService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof InfoViewtabexppanelTabexppanelBase
*/
protected appDeName: string = 'goal';
/**
* 是否初始化
*
* @protected
* @returns {any}
* @memberof InfoViewtabexppanel
*/
protected isInit: any = {
tabviewpanel: true ,
tabviewpanel2: false ,
}
/**
* 被激活的分页面板
*
* @protected
* @type {string}
* @memberof InfoViewtabexppanel
*/
protected activatedTabViewPanel: string = 'tabviewpanel';
/**
* 组件创建完毕
*
* @protected
* @memberof InfoViewtabexppanel
*/
protected ctrlCreated(): void {
//设置分页导航srfparentdename和srfparentkey
if (this.context.goal) {
Object.assign(this.context, { srfparentdename: 'Goal', srfparentkey: this.context.goal });
}
super.ctrlCreated();
}
}
\ No newline at end of file
/**
* InfoViewtabexppanel 部件模型
*
* @export
* @class InfoViewtabexppanelModel
*/
export default class InfoViewtabexppanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InfoViewtabexppanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'inprogressdecimal',
},
{
name: 'goal',
prop: 'goalid',
},
{
name: 'stretchtargetmoney',
},
{
name: 'actualdecimal',
},
{
name: 'computedtargetasoftodayinteger',
},
{
name: 'timezoneruleversionnumber',
},
{
name: 'exchangerate',
},
{
name: 'entityimageid',
},
{
name: 'targetinteger',
},
{
name: 'customrollupfieldmoney_base',
},
{
name: 'entityimage_url',
},
{
name: 'actualmoney_base',
},
{
name: 'utcconversiontimezonecode',
},
{
name: 'inprogressinteger',
},
{
name: 'statecode',
},
{
name: 'targetmoney_base',
},
{
name: 'inprogressstring',
},
{
name: 'entityimage_timestamp',
},
{
name: 'goalstartdate',
},
{
name: 'percentage',
},
{
name: 'ownerid',
},
{
name: 'goalowneridyominame',
},
{
name: 'targetdecimal',
},
{
name: 'amount',
},
{
name: 'statuscode',
},
{
name: 'amountdatatype',
},
{
name: 'customrollupfieldinteger',
},
{
name: 'owneridtype',
},
{
name: 'updatedate',
},
{
name: 'inprogressmoney',
},
{
name: 'fiscalyear',
},
{
name: 'fiscalperiod',
},
{
name: 'title',
},
{
name: 'stretchtargetdecimal',
},
{
name: 'customrollupfielddecimal',
},
{
name: 'consideronlygoalownersrecords',
},
{
name: 'overriddencreatedon',
},
{
name: 'actualmoney',
},
{
name: 'rolluponlyfromchildgoals',
},
{
name: 'goalenddate',
},
{
name: 'createdate',
},
{
name: 'customrollupfieldmoney',
},
{
name: 'rolluperrorcode',
},
{
name: 'versionnumber',
},
{
name: 'stretchtargetmoney_base',
},
{
name: 'treeid',
},
{
name: 'entityimage',
},
{
name: 'stretchtargetstring',
},
{
name: 'stretchtargetinteger',
},
{
name: 'fiscalperiodgoal',
},
{
name: 'inprogressmoney_base',
},
{
name: 'overridden',
},
{
name: 'actualstring',
},
{
name: 'actualinteger',
},
{
name: 'goalowneridtype',
},
{
name: 'importsequencenumber',
},
{
name: 'goalownerid',
},
{
name: 'computedtargetasoftodaydecimal',
},
{
name: 'createman',
},
{
name: 'targetstring',
},
{
name: 'customrollupfieldstring',
},
{
name: 'targetmoney',
},
{
name: 'lastrolledupdate',
},
{
name: 'updateman',
},
{
name: 'override',
},
{
name: 'computedtargetasoftodaymoney',
},
{
name: 'owneridyominame',
},
{
name: 'parentgoalid',
},
{
name: 'rollupqueryinprogressmoneyid',
},
{
name: 'rollupquerycustommoneyid',
},
{
name: 'rollupqueryinprogressintegerid',
},
{
name: 'rollupquerycustomdecimalid',
},
{
name: 'rollupqueryactualmoneyid',
},
{
name: 'rollupquerycustomintegerid',
},
{
name: 'goalwitherrorid',
},
{
name: 'metricid',
},
{
name: 'rollupqueryinprogressdecimalid',
},
{
name: 'rollupqueryactualintegerid',
},
{
name: 'rollupqueryactualdecimalid',
},
{
name: 'parentgoalname',
},
{
name: 'metricname',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import GoalService from '@/service/goal/goal-service';
import InfoViewtabexppanelModel from './info-viewtabexppanel-tabexppanel-model';
/**
* InfoViewtabexppanel 部件服务对象
*
* @export
* @class InfoViewtabexppanelService
*/
export default class InfoViewtabexppanelService extends ControlService {
/**
* 目标服务对象
*
* @type {GoalService}
* @memberof InfoViewtabexppanelService
*/
public appEntityService: GoalService = new GoalService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof InfoViewtabexppanelService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of InfoViewtabexppanelService.
*
* @param {*} [opts={}]
* @memberof InfoViewtabexppanelService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new InfoViewtabexppanelModel();
}
}
\ No newline at end of file
<div class='tabviewpanel'>
<tabs :value="activatedTabViewPanel" :animated="false" class='tabexppanel' name='infoviewtabexppanel' @on-click="tabPanelClick($event)">
<tab-pane :index="0" name='tabviewpanel' tab='infoviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-info-circle',
style:{
'margin-right' : '2px'
}
}),
h('span', '概览'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel"
name="tabviewpanel"
ref='tabviewpanel'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel>
</tab-pane>
<tab-pane :index="1" name='tabviewpanel2' tab='infoviewtabexppanel' class=''
:label="(h) =>{
return h('div', [
h('i',{
class:'fa fa-flag-checkered',
style:{
'margin-right' : '2px'
}
}),
h('span', '子目标'),
h('Badge', {
props: {
count: undefined,
type: 'primary'
}
})
])
}" >
<view_tabviewpanel2
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
v-if="isInit.tabviewpanel2"
name="tabviewpanel2"
ref='tabviewpanel2'
@viewpanelDatasChange = "tabViewPanelDatasChange"
@closeview="closeView($event)">
</view_tabviewpanel2>
</tab-pane>
</tabs>
</div>
\ No newline at end of file
<div class='portlet view-goal-info ' :style="{}">
<div class="portlet-without-title">
<goal-info-goal-view :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></goal-info-goal-view>
</div>
</div>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册