| 1 |
- import{s as t,Y as s,X as a,k as o,m as e,w as r,o as l,p as i,q as m,B as n,C as p,F as c,t as h,v as d,G as f}from"./index-C9TJPork.js";import{_ as u}from"./u-image.rajv-jH8.js";import{r as g}from"./uni-app.es.CUt9gedF.js";import{_ as y}from"./mescroll-body.DWp9Rb53.js";import{p as D}from"./index.BIrLJMDN.js";import{M as j}from"./mescroll-mixins.C2YUWJKd.js";import{a as w}from"./portal.B5oHNAz3.js";import{r as _}from"./resources.DEPsJg7u.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.BNGPST4x.js";import"./renderjs.Cg3LvhxW.js";import"./u-tabs.CYgabJiD.js";import"./u-badge.BHkDpFBd.js";import"./u-line.DT3xflsc.js";import"./mp-html.2sjiF9X0.js";import"./flowEngine.DQGtFE3U.js";import"./u-time-line.5hGOY-3W.js";const k=b({mixins:[j],components:{portalItem:D},data(){return{id:"",show:!1,formData:[],dataList:[],emptyImg:_.message.nodata,fullName:"",downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:50,time:null},empty:{use:!1},textNoMore:this.$t("app.apply.noMoreData")}}},onLoad(a){t("token",a.token),this.id=a.id,s("refresh",(()=>{this.formData=[],this.mescroll.resetUpScroll()}))},methods:{upCallback(t){this.mescroll.lockDownScroll(!0),w(this.id).then((t=>{let s=t.data.formData?JSON.parse(t.data.formData):{};this.formData=s.layout?JSON.parse(JSON.stringify(s.layout)):[],this.mescroll.endSuccess(this.formData.length),this.formData.length&&this.handelFormData(s)})).catch((()=>{this.mescroll.endSuccess(0),this.mescroll.endErr()}))},handelFormData(t){const s=a=>{a.forEach((a=>{a.allRefresh=t.refresh,a.show=!1,a.visibility&&a.visibility.length&&a.visibility.includes("app")&&(a.show=!0),a.children&&a.children.length&&s(a.children)})),this.key=+new Date};s(this.formData),this.dataList=this.formData.filter((t=>t.show)),this.dataList.length<1&&(this.formData=this.dataList)}}},[["render",function(t,s,D,j,w,_){const b=a("portalItem"),k=l,x=g(o("u-image"),u),v=f,I=g(o("mescroll-body"),y);return i(),e(k,{class:"scan-v"},{default:r((()=>[m(I,{ref:"mescrollRef",onDown:t.downCallback,down:w.downOption,sticky:!0,onUp:_.upCallback,up:w.upOption,bottombar:!1,style:{"min-height":"100%"},onInit:t.mescrollInit},{default:r((()=>[m(k,{class:"portal-v"},{default:r((()=>[w.formData.length?(i(),e(k,{key:0},{default:r((()=>[(i(!0),n(c,null,p(w.formData,((t,s)=>(i(),e(k,{class:"portal-box",key:s},{default:r((()=>[m(b,{item:t,ref_for:!0,ref:"portalItem"},null,8,["item"])])),_:2},1024)))),128))])),_:1})):(i(),e(k,{key:1,class:"portal-v portal-nodata"},{default:r((()=>[m(k,{class:"u-flex-col",style:{"align-items":"center"}},{default:r((()=>[m(x,{width:"280rpx",height:"280rpx",src:w.emptyImg},null,8,["src"]),m(v,{class:"u-m-t-20",style:{color:"#909399"}},{default:r((()=>[h(d(t.$t("common.noData")),1)])),_:1})])),_:1})])),_:1}))])),_:1})])),_:1},8,["onDown","down","onUp","up","onInit"])])),_:1})}],["__scopeId","data-v-e244f18f"]]);export{k as default};
|