huangxiaomin
3 年前
共有 5 個檔案被更改,包括 56 行新增 和 15 行删除
@ -0,0 +1,29 @@ |
|||||
|
/** |
||||
|
* Created by Jacky.Gao on 2017-01-25. |
||||
|
*/ |
||||
|
import Tool from './Tool.js'; |
||||
|
|
||||
|
export default class OpenTool extends Tool{ |
||||
|
constructor(context){ |
||||
|
super(context); |
||||
|
} |
||||
|
execute(){ |
||||
|
window.parent.postMessage({'goback': -1},'*') |
||||
|
} |
||||
|
getTitle(){ |
||||
|
return `${window.i18n.openFile}`; |
||||
|
} |
||||
|
getIcon(){ |
||||
|
return `<img src='${window._contextPath}/ureport/res/ureport-asserts/icons/back.svg' width="22px" height="22px">`; |
||||
|
} |
||||
|
// buildButton(){
|
||||
|
// const btn=$(`<button type="button" class="btn btn-default" style="border:none;border-radius:0;background: #f8f8f8;padding: 6px 5px;" title="${this.getTitle()}">
|
||||
|
// ${this.getIcon()}
|
||||
|
// </button>`);
|
||||
|
// const _this=this;
|
||||
|
// btn.click(function(){
|
||||
|
// _this.execute();
|
||||
|
// });
|
||||
|
// return btn;
|
||||
|
// }
|
||||
|
} |
載入中…
新增問題並參考