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

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

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