| | |
| | | 'btn-one':pageData.Button.length == 1, |
| | | 'btn-left':(btnIndex < pageData.Button.length - 1), |
| | | 'btn-right': btnIndex > 0 && btnIndex == pageData.Button.length - 1 , |
| | | 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3),'width-30':(pageData.DropDownButton.length> 0)}" @click="onBtnClick(btn, pageData)"> |
| | | 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3), |
| | | 'width-30':(pageData.DropDownButton.length> 0)}" @click="onBtnClick(btn, pageData)"> |
| | | <text v-if="btn.Style == 'img' || btn.Style == 'img_text'" class="img"></text> |
| | | {{btn.ShowName ||""}} |
| | | </button> |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | onLoad(options) { |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | //获取主数据类ID |
| | |
| | | .DefList.length > 0 |
| | | ) { //判断是否清空页签内容,正在码盘是否有数据 |
| | | uni.showModal({ |
| | | title: this |
| | | title: $this |
| | | .translateSys( |
| | | 'tip'), |
| | | content: this |
| | | content: $this |
| | | .translate( |
| | | "are_you_sure_clear_first" |
| | | ) + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | value |
| | | .page_name + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "are_you_sure_clear_last" |
| | | ), |
| | |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | hideLoading() |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | }).catch(ex => { |
| | | hideLoading() |
| | | showError(ex, this.translateSys("error") + "5.1") |
| | | }); |
| | | }, |
| | | |
| | | async onFormEventResult(data, callbackEventId, item) { |
| | | async onFormEventResult(data, callbackEventId, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | .DefList.length > 0 |
| | | ) { //判断是否清空页签内容,正在码盘是否有数据 |
| | | uni.showModal({ |
| | | title: this |
| | | title: $this |
| | | .translateSys( |
| | | 'tip'), |
| | | content: this |
| | | content: $this |
| | | .translate( |
| | | "are_you_sure_clear_first" |
| | | ) + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | value |
| | | .page_name + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "are_you_sure_clear_last" |
| | | ), |