| | |
| | | if (item.name == "Input" || item.name == "InputNumber" || item.name == "Textarea") { |
| | | this.focusFieldId = item.fieldId |
| | | } else if (item.name == "ImageButton") { |
| | | |
| | | |
| | | var onClickEvent = item.bind.onClickEvent; //后图标点击回调 |
| | | |
| | | |
| | | if (!onClickEvent.id) { |
| | | showInfo(this.translate('icon_click_event_empty')) |
| | | return; |
| | |
| | | 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() { |
| | | if (this.after_ok?.id) { // 点击确定按钮后 |
| | | this.afterOK(); |
| | | } else { |
| | | this.add(); |
| | | } |
| | | 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, |