| | |
| | | }); //设置顶部标题 |
| | | this.$data.title = options.titlename; |
| | | this.$data.param = JSON.parse(options.param); |
| | | this.initial( options.paramValue); |
| | | |
| | | |
| | | this.styledef = {}; |
| | | this.head_styledef = { |
| | | form: { |
| | | items: [] |
| | | } |
| | | }; |
| | | this.detail1_styledef = {}; |
| | | this.detail1StyleDefList = []; |
| | | this.detail2_styledef = {}; |
| | | this.detail2StyleDefList = []; |
| | | this.ListHtml_Panel = ""; |
| | | this.ListPageHtml_Show = { |
| | | name: "", |
| | | event: { |
| | | id: "", |
| | | name: "" |
| | | } |
| | | }; |
| | | this.items = []; |
| | | this.active_id = ''; |
| | | this.activelist = []; |
| | | |
| | | if (this.param.ListPage.ListItem_UIDef?.ui_type == "HTML页面") { |
| | | // HTML页面 |
| | | //获取数据类的HTML页面 |
| | | await this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ListPage.ListItem_UIDef.id); |
| | | } else { |
| | | await this.Detail1_UIstyleGetInfo(this.param.DataCls.id, this.param.ListPage.ListItem_UIDef.id); |
| | | } |
| | | await this.initial(options.paramValue); |
| | | // this.isFilter=true; |
| | | // if(this.param.ShowFilter) |
| | | // this.isFilter=false; |
| | |
| | | let that = this; |
| | | let keys = []; |
| | | let val, data; |
| | | |
| | | |
| | | Object.keys(obj).forEach(function(key) { |
| | | keys = key.split("."); |
| | | val = obj[key]; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | //初始化 |
| | | async initial(paramValue) { |
| | | this.styledef = {}; |
| | | this.head_styledef = { |
| | | form: { |
| | | items: [] |
| | | } |
| | | }; |
| | | this.detail1_styledef = {}; |
| | | this.detail1StyleDefList = []; |
| | | this.detail2_styledef = {}; |
| | | this.detail2StyleDefList = []; |
| | | this.items = []; |
| | | this.active_id = ''; |
| | | this.activelist = []; |
| | | this.ListHtml_Panel = ""; |
| | | this.ListPageHtml_Show = { |
| | | name: "", |
| | | event: { |
| | | id: "", |
| | | name: "" |
| | | } |
| | | }; |
| | | |
| | | this.isFilter = true; |
| | | if (this.param.ShowFilter) |
| | | this.isFilter = false; |
| | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | if (this.param.ListPage.ListItem_UIDef?.ui_type == "HTML页面") { |
| | | // HTML页面 |
| | | //获取数据类的HTML页面 |
| | | await this.Html_UIstyleGetInfo(this.param.DataCls.id, this.param.ListPage.ListItem_UIDef.id); |
| | | } else { |
| | | await this.Detail1_UIstyleGetInfo(this.param.DataCls.id, this.param.ListPage.ListItem_UIDef.id); |
| | | } |
| | | this.orderby = this.param.Order ? this.param.Order : 'T_CREATE Desc'; |
| | | if (this.param.Query_Event) { |
| | |
| | | if (!ret.result.style_def.includes('"')) styledef = Base64.decode(ret.result |
| | | .style_def); |
| | | } |
| | | // console.log(styledef); |
| | | $this.ListPageHtml_Show = ret.result.style_def ? JSON.parse(styledef) : {}; |
| | | // console.log($this.ListPageHtml_Show); |
| | | } else { |
| | |
| | | if (ret.result) { |
| | | $this.page_count = ret.result.page_count; |
| | | if (ret.result.page_count > 1) $this.query_id = ret.result.query_id; |
| | | // console.log($this.ListPageHtml_Show.event); |
| | | if ($this.ListPageHtml_Show.event.id) { |
| | | ret.result.obj_list.forEach((obj) => { |
| | | var info = { |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | }); |
| | | } |
| | | else{ |
| | | } else { |
| | | uni.showModal({ |
| | | title: this.translateSys("error"), |
| | | content: this.translate("cannot_related_function"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | |
| | | |
| | | } |
| | | }, |
| | | //执行后处理事件 |