| | |
| | | }; |
| | | }, |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | this.param = JSON.parse(options.param); |
| | |
| | | if (options.dataJson) |
| | | this.data_json = JSON.parse(options.dataJson); |
| | | this.title = options.titlename ? options.titlename : this.param.ShowName; //设置按钮文字 |
| | | // console.log(options) |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | |
| | | if (this.clsId) { |
| | | this.loadData(objAttr) |
| | | } else { |
| | |
| | | showError(ex, this.translateSys('tip') + "4.2") |
| | | } |
| | | }, |
| | | async onFormEventResult(data, button_callback, item) { |
| | | async onFormEventResult(data, button_callback, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | |
| | | }).catch(ex => { |
| | | showError(ex, this.translateSys('tip') + "5.1") |