| | |
| | | import classUtils from "@/js/utils.js" |
| | | import { |
| | | showInfo, |
| | | showError |
| | | showError, |
| | | showLoading, |
| | | hideLoading |
| | | } from "@/js/Page.js" |
| | | import { |
| | | appGetInfo, |
| | |
| | | }, |
| | | async onLoad(options) { |
| | | // console.log(options); |
| | | try { |
| | | showLoading("loading...") |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | |
| | | if (this.param.ViewPage.View_UIDef.ui_type == "HTML页面") { |
| | | // HTML页面 |
| | | //获取数据类的HTML页面 |
| | | this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id, 'viewPage'); |
| | | await this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id, |
| | | 'viewPage'); |
| | | } else { |
| | | this.Detail2_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id); |
| | | await this.Detail2_UIstyleGetInfo(this.param.DataCls.id, this.param.ViewPage.View_UIDef.id); |
| | | } |
| | | |
| | | |
| | |
| | | }); |
| | | // console.log(obj_attr); |
| | | var input_param = Base64.encode(JSON.stringify(obj_attr)); |
| | | this.runCustomEvent({ |
| | | await this.runCustomEvent({ |
| | | ed_type: 0, |
| | | start_transaction: true, |
| | | class_id: this.param.DataCls.id, |
| | |
| | | } catch (ex) { |
| | | showError(ex, this.translateSys('error')) |
| | | } |
| | | } |
| | | hideLoading() |
| | | } catch (ex) { |
| | | |
| | | hideLoading() |
| | | showError(ex, this.translateSys("error")); |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | //执行触发事件 |
| | | async triggerEvent(btn, style, enviroment) { |
| | | try { |
| | | showLoading("loading...") |
| | | btn.disabled = true |
| | | var obj_attr = { |
| | | 'S_ID': this.styleDef.form.objId |
| | |
| | | // console.log(obj_attr); |
| | | // let input_param = Base64.encode(JSON.stringify(obj_attr)); |
| | | // return; |
| | | |
| | | await this.runCustomEvent({ |
| | | ed_type: 0, |
| | | start_transaction: true, |
| | |
| | | obj_attr: obj_attr, |
| | | }); |
| | | btn.disabled = false |
| | | hideLoading() |
| | | } catch (ex) { |
| | | hideLoading() |
| | | showError(ex, this.translateSys('error') + "3") |
| | | } |
| | | }, |