提交 f0a9480a 编写于 作者: tony001's avatar tony001

工具栏操作标识权限 --- fix1

上级 72c541ad
...@@ -218,9 +218,7 @@ export default class EditViewEngine extends ViewEngine { ...@@ -218,9 +218,7 @@ export default class EditViewEngine extends ViewEngine {
if(!this.getForm() || !(this.getForm().transformData instanceof Function)){ if(!this.getForm() || !(this.getForm().transformData instanceof Function)){
return null; return null;
} }
let targetData:any = {}; return this.getForm().transformData(arg);
this.getForm().transformData(arg,targetData);
return targetData;
} }
} }
\ No newline at end of file
...@@ -448,9 +448,7 @@ export default class MDViewEngine extends ViewEngine { ...@@ -448,9 +448,7 @@ export default class MDViewEngine extends ViewEngine {
if(!this.getMDCtrl() || !(this.getMDCtrl().transformData instanceof Function)){ if(!this.getMDCtrl() || !(this.getMDCtrl().transformData instanceof Function)){
return null; return null;
} }
let targetData:any = {}; return this.getMDCtrl().transformData(arg);
this.getMDCtrl().transformData(arg,targetData);
return targetData;
} }
......
...@@ -189,7 +189,7 @@ export default class ViewEngine { ...@@ -189,7 +189,7 @@ export default class ViewEngine {
return; return;
} }
const _item = _this.view.toolBarModels[key]; const _item = _this.view.toolBarModels[key];
if(_item && _item['dataaccaction'] && _this.view.appAuthService){ if(_item && _item['dataaccaction'] && _this.view.appAuthService && data && Object.keys(data).length >0){
let dataActionResult:any = _this.view.appAuthService.getOPPrivs(data)['dataaccaction']; let dataActionResult:any = _this.view.appAuthService.getOPPrivs(data)['dataaccaction'];
// 无权限:0;有权限:1 // 无权限:0;有权限:1
if(!dataActionResult){ if(!dataActionResult){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册