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

tony001 发布系统代码 [后台服务,演示应用]

上级 d063b250
...@@ -41,6 +41,9 @@ export default class TabExpViewEngine extends ViewEngine { ...@@ -41,6 +41,9 @@ export default class TabExpViewEngine extends ViewEngine {
if (!Object.is(_item.type, 'TABEXPPANEL')) { if (!Object.is(_item.type, 'TABEXPPANEL')) {
return; return;
} }
if(this.view.context && this.view.context[(this.keyPSDEField as string)]){
return;
}
this.setViewState2({ tag: _item.name, action: 'load', viewdata: this.view.context }); this.setViewState2({ tag: _item.name, action: 'load', viewdata: this.view.context });
}); });
} }
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
:viewState="viewState" :viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))" :viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))" :context="JSON.parse(JSON.stringify(context))"
:activeData="JSON.stringify(activeData)"
v-if="isInit.tabviewpanel" v-if="isInit.tabviewpanel"
name="tabviewpanel" name="tabviewpanel"
ref='tabviewpanel' ref='tabviewpanel'
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
:viewState="viewState" :viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))" :viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))" :context="JSON.parse(JSON.stringify(context))"
:activeData="JSON.stringify(activeData)"
v-if="isInit.tabviewpanel2" v-if="isInit.tabviewpanel2"
name="tabviewpanel2" name="tabviewpanel2"
ref='tabviewpanel2' ref='tabviewpanel2'
...@@ -269,6 +271,15 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt ...@@ -269,6 +271,15 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt
*/ */
public action:any = ''; public action:any = '';
/**
* 当前激活数据
*
* @public
* @type {*}
* @memberof TabExpViewtabexppanelBase
*/
public activeData:any = {};
/** /**
* 分页面板权限标识存储对象 * 分页面板权限标识存储对象
* *
...@@ -362,6 +373,7 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt ...@@ -362,6 +373,7 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt
return; return;
} }
if(Object.is(action,'loadmodel')){ if(Object.is(action,'loadmodel')){
this.activeData = data;
this.computedAuthPanel(data); this.computedAuthPanel(data);
}else{ }else{
this.action = action; this.action = action;
...@@ -409,7 +421,7 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt ...@@ -409,7 +421,7 @@ export default class TabExpViewtabexppanelBase extends Vue implements ControlInt
return; return;
} }
this.activiedTabViewPanel = $event; this.activiedTabViewPanel = $event;
this.viewState.next({ tag: this.activiedTabViewPanel, action: this.action, data: {}}); this.viewState.next({ tag: this.activiedTabViewPanel, action: this.action, data: this.activeData}});
} }
......
...@@ -171,6 +171,14 @@ export default class TabExpViewtabviewpanelBase extends Vue implements ControlIn ...@@ -171,6 +171,14 @@ export default class TabExpViewtabviewpanelBase extends Vue implements ControlIn
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
/**
* 当前激活数据
*
* @type {boolean}
* @memberof TabExpViewtabviewpanelBase
*/
@Prop() public activeData?:any;
/** /**
* 局部上下文 * 局部上下文
* *
...@@ -251,11 +259,11 @@ export default class TabExpViewtabviewpanelBase extends Vue implements ControlIn ...@@ -251,11 +259,11 @@ export default class TabExpViewtabviewpanelBase extends Vue implements ControlIn
Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizorder']}) Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizorder']})
} }
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext); let _context:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context); Object.assign(this.context,_context);
} }
if(this.localViewParam && Object.keys(this.localViewParam).length >0){ if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam); let _param:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param); Object.assign(this.viewparams,_param);
} }
this.viewdata =JSON.stringify(this.context); this.viewdata =JSON.stringify(this.context);
......
...@@ -171,6 +171,14 @@ export default class TabExpViewtabviewpanel2Base extends Vue implements ControlI ...@@ -171,6 +171,14 @@ export default class TabExpViewtabviewpanel2Base extends Vue implements ControlI
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
/**
* 当前激活数据
*
* @type {boolean}
* @memberof TabExpViewtabviewpanel2Base
*/
@Prop() public activeData?:any;
/** /**
* 局部上下文 * 局部上下文
* *
...@@ -251,11 +259,11 @@ export default class TabExpViewtabviewpanel2Base extends Vue implements ControlI ...@@ -251,11 +259,11 @@ export default class TabExpViewtabviewpanel2Base extends Vue implements ControlI
Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizorder']}) Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizorder']})
} }
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext); let _context:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context); Object.assign(this.context,_context);
} }
if(this.localViewParam && Object.keys(this.localViewParam).length >0){ if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam); let _param:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param); Object.assign(this.viewparams,_param);
} }
this.viewdata =JSON.stringify(this.context); this.viewdata =JSON.stringify(this.context);
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
:viewState="viewState" :viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))" :viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))" :context="JSON.parse(JSON.stringify(context))"
:activeData="JSON.stringify(activeData)"
v-if="isInit.tabviewpanel" v-if="isInit.tabviewpanel"
name="tabviewpanel" name="tabviewpanel"
ref='tabviewpanel' ref='tabviewpanel'
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
:viewState="viewState" :viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))" :viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))" :context="JSON.parse(JSON.stringify(context))"
:activeData="JSON.stringify(activeData)"
v-if="isInit.tabviewpanel3" v-if="isInit.tabviewpanel3"
name="tabviewpanel3" name="tabviewpanel3"
ref='tabviewpanel3' ref='tabviewpanel3'
...@@ -64,6 +66,7 @@ ...@@ -64,6 +66,7 @@
:viewState="viewState" :viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))" :viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))" :context="JSON.parse(JSON.stringify(context))"
:activeData="JSON.stringify(activeData)"
v-if="isInit.tabviewpanel2" v-if="isInit.tabviewpanel2"
name="tabviewpanel2" name="tabviewpanel2"
ref='tabviewpanel2' ref='tabviewpanel2'
...@@ -293,6 +296,15 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn ...@@ -293,6 +296,15 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn
*/ */
public action:any = ''; public action:any = '';
/**
* 当前激活数据
*
* @public
* @type {*}
* @memberof STabExpViewtabexppanelBase
*/
public activeData:any = {};
/** /**
* 分页面板权限标识存储对象 * 分页面板权限标识存储对象
* *
...@@ -386,6 +398,7 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn ...@@ -386,6 +398,7 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn
return; return;
} }
if(Object.is(action,'loadmodel')){ if(Object.is(action,'loadmodel')){
this.activeData = data;
this.computedAuthPanel(data); this.computedAuthPanel(data);
}else{ }else{
this.action = action; this.action = action;
...@@ -433,7 +446,7 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn ...@@ -433,7 +446,7 @@ export default class STabExpViewtabexppanelBase extends Vue implements ControlIn
return; return;
} }
this.activiedTabViewPanel = $event; this.activiedTabViewPanel = $event;
this.viewState.next({ tag: this.activiedTabViewPanel, action: this.action, data: {}}); this.viewState.next({ tag: this.activiedTabViewPanel, action: this.action, data: this.activeData}});
} }
......
...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanelBase extends Vue implements ControlI ...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanelBase extends Vue implements ControlI
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
/**
* 当前激活数据
*
* @type {boolean}
* @memberof STabExpViewtabviewpanelBase
*/
@Prop() public activeData?:any;
/** /**
* 局部上下文 * 局部上下文
* *
...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanelBase extends Vue implements ControlI ...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanelBase extends Vue implements ControlI
Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']}) Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']})
} }
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext); let _context:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context); Object.assign(this.context,_context);
} }
if(this.localViewParam && Object.keys(this.localViewParam).length >0){ if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam); let _param:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param); Object.assign(this.viewparams,_param);
} }
this.viewdata =JSON.stringify(this.context); this.viewdata =JSON.stringify(this.context);
......
...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanel2Base extends Vue implements Control ...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanel2Base extends Vue implements Control
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
/**
* 当前激活数据
*
* @type {boolean}
* @memberof STabExpViewtabviewpanel2Base
*/
@Prop() public activeData?:any;
/** /**
* 局部上下文 * 局部上下文
* *
...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanel2Base extends Vue implements Control ...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanel2Base extends Vue implements Control
Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']}) Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']})
} }
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext); let _context:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context); Object.assign(this.context,_context);
} }
if(this.localViewParam && Object.keys(this.localViewParam).length >0){ if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam); let _param:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param); Object.assign(this.viewparams,_param);
} }
this.viewdata =JSON.stringify(this.context); this.viewdata =JSON.stringify(this.context);
......
...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanel3Base extends Vue implements Control ...@@ -171,6 +171,14 @@ export default class STabExpViewtabviewpanel3Base extends Vue implements Control
*/ */
public isActivied: boolean = true; public isActivied: boolean = true;
/**
* 当前激活数据
*
* @type {boolean}
* @memberof STabExpViewtabviewpanel3Base
*/
@Prop() public activeData?:any;
/** /**
* 局部上下文 * 局部上下文
* *
...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanel3Base extends Vue implements Control ...@@ -251,11 +259,11 @@ export default class STabExpViewtabviewpanel3Base extends Vue implements Control
Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']}) Object.assign(this.viewparams,{[this.navfilter]:this.context['ibizsample0003']})
} }
if(this.localContext && Object.keys(this.localContext).length >0){ if(this.localContext && Object.keys(this.localContext).length >0){
let _context:any = this.$util.computedNavData({},this.context,this.viewparams,this.localContext); let _context:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localContext);
Object.assign(this.context,_context); Object.assign(this.context,_context);
} }
if(this.localViewParam && Object.keys(this.localViewParam).length >0){ if(this.localViewParam && Object.keys(this.localViewParam).length >0){
let _param:any = this.$util.computedNavData({},this.context,this.viewparams,this.localViewParam); let _param:any = this.$util.computedNavData(this.activeData?JSON.parse(this.activeData):{},this.context,this.viewparams,this.localViewParam);
Object.assign(this.viewparams,_param); Object.assign(this.viewparams,_param);
} }
this.viewdata =JSON.stringify(this.context); this.viewdata =JSON.stringify(this.context);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册