pages-workFlow-flowTodo-index.CddBX8vW.js 2.23 KB
import{M as s,N as o,q as e,G as t,c as a,w as r,i as l,o as i,b as n}from"./index-BAHUfTdj.js";import{_ as p}from"./u-search.ErqQwnA3.js";import{r as c}from"./uni-app.es.xRkvtvIM.js";import{_ as m}from"./mescroll-body.DiKp_GPS.js";import{r as u}from"./resources.DipqUmnN.js";import{f as h}from"./flowBefore.C6FkwRVr.js";import{M as d}from"./mescroll-mixins.D9o9BYkn.js";import{f}from"./flowList.DhPf0hZA.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./u-icon.BMdK6LYG.js";import"./u-tag.BdJPYiqj.js";const y=w({components:{flowlist:f},mixins:[d],data:()=>({keyword:"",opType:1,list:[],downOption:{use:!0,auto:!0},upOption:{page:{num:0,size:20,time:null},empty:{use:!0,icon:u.message.nodata,tip:"暂无数据",fixed:!0,top:"300rpx"},textNoMore:"没有更多数据",category:""}}),onLoad(s){this.category=s.category},onShow(){s("refresh",(()=>{this.list=[],this.mescroll.resetUpScroll()}))},onUnload(){o("refresh")},methods:{upCallback(s){let o={currentPage:s.num,pageSize:s.size,keyword:this.keyword,category:this.category};h(this.opType,o,{load:1==s.num}).then((o=>{let e;this.mescroll.endSuccess(o.data.list.length),1==s.num&&(this.list=[]);const t=o.data.list.map((s=>(e=1==s.status?u.status.review:6==s.status?u.status.suspend:"",{flowStatus:e,...s})));this.list=this.list.concat(t)})).catch((()=>{this.mescroll.endErr()}))},search(){this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((()=>{this.list=[],this.mescroll.resetUpScroll()}),300)}}},[["render",function(s,o,u,h,d,f){const w=c(e("u-search"),p),y=l,g=t("flowlist"),j=c(e("mescroll-body"),m);return i(),a(y,{class:"flowTodo-v"},{default:r((()=>[n(j,{ref:"mescrollRef",onInit:s.mescrollInit,onDown:s.downCallback,onUp:f.upCallback,sticky:!0,down:d.downOption,up:d.upOption},{default:r((()=>[n(y,{class:"search-box search-box_sticky"},{default:r((()=>[n(w,{placeholder:"请输入关键词搜索",modelValue:d.keyword,"onUpdate:modelValue":o[0]||(o[0]=s=>d.keyword=s),height:"72","show-action":!1,onChange:f.search,"bg-color":"#f0f2f6",shape:"square"},null,8,["modelValue","onChange"])])),_:1}),n(g,{list:d.list,opType:d.opType},null,8,["list","opType"])])),_:1},8,["onInit","onDown","onUp","down","up"])])),_:1})}],["__scopeId","data-v-d6e80293"]]);export{y as default};