| | |
| | | focusFieldId: action.value |
| | | }) |
| | | }); |
| | | } |
| | | else if (action.action_type == 'open_panel') { |
| | | } else if (action.action_type == 'open_panel') { |
| | | var d = dialog({ |
| | | title: '<i class="ace-icon fa fa-info-circle"></i> ' + |
| | | $this.translateSys("tip"), |
| | |
| | | |
| | | //确定 |
| | | sava() { |
| | | this.handleButtonClick((done) => { |
| | | if (this.after_ok?.id) { // 点击确定按钮后 |
| | | this.afterOK(); |
| | | } else { |
| | | this.add(); |
| | | } |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | add() { |
| | |
| | | }) |
| | | }, |
| | | onButtonClicked(btn) { |
| | | this.handleButtonClick((done) => { |
| | | this.buttonClicked(btn); |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | }, |
| | | buttonClicked(btn) { |
| | | let enviroment = { |
| | | button: "top", |
| | | button_name: btn.ShowName, |