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

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

上级 70977341
...@@ -7,7 +7,7 @@ import { ExpViewEngine } from './exp-view-engine'; ...@@ -7,7 +7,7 @@ import { ExpViewEngine } from './exp-view-engine';
* @class ListExpViewEngine * @class ListExpViewEngine
* @extends {ViewEngine} * @extends {ViewEngine}
*/ */
export class ListExpViewEngine extends ExpViewEngine { export default class ListExpViewEngine extends ExpViewEngine {
/** /**
* 初始化引擎 * 初始化引擎
......
...@@ -509,36 +509,42 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt ...@@ -509,36 +509,42 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
* @memberof ListExpViewlistexpbarBase * @memberof ListExpViewlistexpbarBase
*/ */
public listexpbar_selectionchange(args: any [], tag?: string, $event2?: any): void { public listexpbar_selectionchange(args: any [], tag?: string, $event2?: any): void {
let tempContext:any = {}; const tempContext:any = {};
let tempViewParam:any = {}; const tempViewParam:any = {};
if (args.length === 0) { if (args.length === 0) {
this.calcToolbarItemState(true); this.calcToolbarItemState(true);
return ; return ;
} }
const arg:any = args[0]; const arg:any = args[0];
if(this.context){ if (this.context) {
Object.assign(tempContext,JSON.parse(JSON.stringify(this.context))); Object.assign(tempContext, JSON.parse(JSON.stringify(this.context)));
} }
Object.assign(tempContext,{'ibizorder':arg['ibizorder']}); Object.assign(tempContext, { 'ibizorder': arg['ibizorder'] });
Object.assign(tempContext,{srfparentdename:'IBIZOrder',srfparentkey:arg['ibizorder']}); Object.assign(tempContext, { srfparentdename:'IBIZOrder',srfparentkey: arg['ibizorder'] });
if(this.navFilter && !Object.is(this.navFilter,"")){ if (this.navFilter && !Object.is(this.navFilter,"")) {
Object.assign(tempViewParam,{[this.navFilter]:arg['ibizorder']}); Object.assign(tempViewParam, { [this.navFilter]: arg['ibizorder'] });
} }
if(this.navPSDer && !Object.is(this.navPSDer,"")){ if (this.navPSDer && !Object.is(this.navPSDer,"")) {
Object.assign(tempViewParam,{[this.navPSDer]:arg['ibizorder']}); Object.assign(tempViewParam, { [this.navPSDer]:arg['ibizorder'] });
} }
if(this.navigateContext && Object.keys(this.navigateContext).length >0){ if (this.navigateContext && Object.keys(this.navigateContext).length > 0) {
let _context:any = this.$util.computedNavData(arg,tempContext,tempViewParam,this.navigateContext); let _context:any = this.$util.computedNavData(arg, tempContext, tempViewParam, this.navigateContext);
Object.assign(tempContext,_context); Object.assign(tempContext, _context);
} }
if(this.navigateParams && Object.keys(this.navigateParams).length >0){ if (this.navigateParams && Object.keys(this.navigateParams).length > 0) {
let _params:any = this.$util.computedNavData(arg,tempContext,tempViewParam,this.navigateParams); let _params:any = this.$util.computedNavData(arg, tempContext, tempViewParam, this.navigateParams);
Object.assign(tempViewParam,_params); Object.assign(tempViewParam, _params);
}
const navItem: any = {
navView: this.navViewName,
data: args,
srfnavdata: {
context: tempContext,
viewparams: tempViewParam
}
} }
this.selection = {};
Object.assign(this.selection, { view: { viewname: this.navViewName },context:tempContext,viewparam:tempViewParam});
this.calcToolbarItemState(false); this.calcToolbarItemState(false);
this.$forceUpdate(); this.$emit('selectionchange', navItem);
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册