import{a as t,T as s,Q as a,q as o,c as e,w as i,i as l,o as r,t as m,C as n,D as p,F as c,v as d,H as h}from"./index-DL8B2Mxu.js";import{_ as f}from"./u-image.HgEtCXEr.js";import{r as u}from"./uni-app.es.BSVEa1f2.js";import{_ as g}from"./mescroll-body.DoI4hLy1.js";import{p as y}from"./index.BKS2bywI.js";import{M as D}from"./mescroll-mixins.DNza9FDh.js";import{a as j}from"./portal.CZm82Udl.js";import{r as w}from"./resources.DipqUmnN.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.CLOPtL2B.js";import"./u-tabs.YLQ0tmbs.js";import"./u-badge.B5SA0J9t.js";import"./u-line.Dv-HC5jX.js";import"./u-swipe-action.BYB6w9Xo.js";import"./schedule.BciDUoXN.js";import"./mp-html.BLGMDPJW.js";import"./flowEngine.BUKhPj-S.js";const b=_({mixins:[D],components:{portalItem:y},data:()=>({id:"",show:!1,formData:[],dataList:[],emptyImg:w.message.nodata,fullName:"",downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:50,time:null},empty:{use:!1},textNoMore:"没有更多数据"}}),onLoad(a){t("token",a.token),this.id=a.id,s("refresh",(()=>{this.formData=[],this.mescroll.resetUpScroll()}))},methods:{upCallback(t){this.mescroll.lockDownScroll(!0),j(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,y,D,j,w){const _=a("portalItem"),b=l,k=u(o("u-image"),f),x=h,v=u(o("mescroll-body"),g);return r(),e(b,{class:"scan-v"},{default:i((()=>[m(v,{ref:"mescrollRef",onDown:t.downCallback,down:j.downOption,sticky:!0,onUp:w.upCallback,up:j.upOption,bottombar:!1,style:{"min-height":"100%"},onInit:t.mescrollInit},{default:i((()=>[m(b,{class:"portal-v"},{default:i((()=>[j.formData.length?(r(),e(b,{key:0},{default:i((()=>[(r(!0),n(c,null,p(j.formData,((t,s)=>(r(),e(b,{class:"portal-box",key:s},{default:i((()=>[m(_,{item:t,ref_for:!0,ref:"portalItem"},null,8,["item"])])),_:2},1024)))),128))])),_:1})):(r(),e(b,{key:1,class:"portal-v portal-nodata"},{default:i((()=>[m(b,{class:"u-flex-col",style:{"align-items":"center"}},{default:i((()=>[m(k,{width:"280rpx",height:"280rpx",src:j.emptyImg},null,8,["src"]),m(x,{class:"u-m-t-20",style:{color:"#909399"}},{default:i((()=>[d("暂无数据")])),_:1})])),_:1})])),_:1}))])),_:1})])),_:1},8,["onDown","down","onUp","up","onInit"])])),_:1})}],["__scopeId","data-v-5b320b87"]]);export{b as default};
