| | |
| | | }, |
| | | |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | try { |
| | | showLoading("loading...") |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | |
| | | }; |
| | | runCustomEvent(dataInfo).then(result => { |
| | | console.log(result); |
| | | |
| | | |
| | | if (result.ret != 0 && result.ret != 1) { |
| | | let cls_name = result.event_info?.cls_name |
| | | let event_name = result.event_info?.event_name |
| | |
| | | this.initial() |
| | | }, |
| | | //点击显示浏览对象显示页面 |
| | | async onViewPageClick(style) { |
| | | onViewPageClick(style) { |
| | | this.handleButtonClick((done) => { |
| | | this.viewPageClick(style); |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | }, |
| | | async viewPageClick(style) { |
| | | if (!this.clickItemEvent.id) { |
| | | return; |
| | | } |
| | |
| | | data_json, |
| | | }).then(result => { |
| | | // console.log(result); |
| | | hideLoading() |
| | | hideLoading() |
| | | if (result.ret != 0 && result.ret != 1) { |
| | | let cls_name = result.event_info?.cls_name |
| | | let event_name = result.event_info?.event_name |
| | |
| | | |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | hideLoading() |
| | | hideLoading() |
| | | showError(ex, this.translateSys("error") + "8.1") |
| | | }); |
| | | }, |
| | |
| | | //执行触发事件 |
| | | async triggerEvent(btn, style, enviroment) { |
| | | const $this = this |
| | | showLoading("loading...") |
| | | showLoading("loading...") |
| | | var obj_attr = this.head_styledef.form.model; |
| | | // console.log(obj_attr); |
| | | var input_param = Base64.encode( |
| | |
| | | input_param, |
| | | data_json, |
| | | }).then(result => { |
| | | hideLoading() |
| | | hideLoading() |
| | | // console.log(result); |
| | | if (result.ret != 0 && result.ret != 1) { |
| | | let cls_name = result.event_info?.cls_name |
| | |
| | | |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | hideLoading() |
| | | hideLoading() |
| | | showError(ex, this.translateSys("error") + "8.1") |
| | | }); |
| | | }, |