| | |
| | | refreshing: false |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | // console.log(options); |
| | | try { |
| | | showLoading("loading...") |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | |
| | |
| | | //刷新 |
| | | Refresh(value) { |
| | | //刷新当前页面 |
| | | this.initial(); |
| | | this.handleButtonClick((done) => { |
| | | this.initial(); |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | |
| | | // uni.redirectTo({ |
| | | // url:'../modal/3200?param='+JSON.stringify(this.param)+"&titlename="+this.title, |
| | | // }); |
| | | }, |
| | | //点击显示浏览对象显示页面 |
| | | async onViewPageClick(style) { |
| | | onViewPageClick(style) { |
| | | this.handleButtonClick((done) => { |
| | | this.viewPageClick(style); |
| | | setTimeout(() => { |
| | | done(); // 重置状态 |
| | | }, 1000); |
| | | }); |
| | | }, |
| | | async viewPageClick(style) { |
| | | if (this.param.ViewPage) { |
| | | if (this.param.ViewPage.View_UIDef) { |
| | | this.styledef = style; |
| | |
| | | //点中表单 |
| | | onPanelClick(value) { //点击面板高亮显示 |
| | | // console.log(value); |
| | | |
| | | this.setData({ |
| | | activeItem: this.detail1StyleDefList[value] |
| | | }) |
| | |
| | | // }); |
| | | |
| | | } else { |
| | | showInfo(this |
| | | showInfo($this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | item |
| | | .action_type + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "tip_action_unprocessed" |
| | | )) |