1 |
- import{Z as v,cr as B,_ as W,d as N,m as p,cs as z,cp as T,w as $,r as s,o as d,A as f,x as o,h as u,u as i,H as F,D as b,a as x,ce as P}from"./index.56449854.js";import{s as _}from"./search.config.daa975f0.js";import{a as k,D as U}from"./demand-modify-modal.89cc5a91.js";import{u as V}from"./use-page-search.59eb5443.js";import H from"./exec-modal.0366a3f9.js";import"./createRequset.56e9fc42.js";import"./isBeyondTime.ab735625.js";const I=[{value:1,label:"\u5F85\u6267\u884C",type:"info"},{value:2,label:"\u6267\u884C\u5B8C\u6210",type:"success"},{value:3,label:"\u6267\u884C\u5931\u8D25",type:"danger"}],O=[{value:1,label:"\u7ACB\u5373\u6267\u884C",type:""},{value:2,label:"\u5EF6\u8FDF\u6267\u884C",type:"warning"}],j=[{prop:"exec_name",label:"\u4E1A\u52A1\u8868\u540D\u79F0",minWidth:"115px"},{prop:"start",label:"\u6570\u636E\u5F00\u59CB\u65F6\u95F4",minWidth:"155px"},{prop:"end",label:"\u6570\u636E\u7ED3\u675F\u65F6\u95F4",minWidth:"155px"},{prop:"updatetime",label:"\u72B6\u6001\u66F4\u65B0\u65F6\u95F4",minWidth:"155px"},{prop:"createtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"115px"},{prop:"exce_type",label:"\u6267\u884C\u7C7B\u578B",cellRenderer({row:r}){const n=O.find(({value:a})=>String(a)===String(r.exec_type));return v(B,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"status",label:"\u72B6\u6001",cellRenderer({row:r}){const n=I.find(({value:a})=>String(a)===String(r.status));return v(B,{type:n.type||""},{default:()=>n.label||"--"})}},{prop:"apply_name",label:"\u7533\u8BF7\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],L={columns:j,showTitle:!1,superUserNoAction:!1,apis:{httpList:k.list}},g="fundClaim",Z=N({__name:"all",setup(r){const n=p(null),a=p(null),E=z(),{hasPermissionWithCode:y}=T(g),c=p(null);p(_),$(()=>E.level,m=>{},{immediate:!0});async function S(m){const t=await k.delete_exec({id:m});t.code===1?c.value.onSearch():P.warning(t.message)}const D={pageSearchHook:()=>V(void 0,void 0,_)};return(m,t)=>{const C=s("el-button"),h=s("ElButton"),A=s("el-link"),M=s("el-popconfirm"),w=s("page-container"),R=s("page-auth");return d(),f(R,{"page-name":g},{default:o(()=>[u(w,{hooks:D,"page-name":g,"search-config":i(_),"get-content-ref":e=>c.value=e,"content-config":i(L)},{content_header:o(()=>[u(C,{type:"",size:"mini",onClick:t[0]||(t[0]=e=>{var l;return(l=n.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[F("\u67E5\u770B\u6267\u884C\u7C7B\u578B\u8BF4\u660E")]),_:1}),u(C,{type:"primary",size:"mini",onClick:t[1]||(t[1]=e=>{var l;return(l=a.value)==null?void 0:l.onDisplay({})})},{default:o(()=>[F("\u6DFB\u52A0")]),_:1})]),content_action:o(e=>[String(e.status)==="2"&&i(y)("10")?(d(),f(A,{key:0,href:e.down_url,target:"_blank",underline:!1},{default:o(()=>[u(h,{link:"",size:"small",type:"primary",icon:i(b)("download-line")},null,8,["icon"])]),_:2},1032,["href"])):x("v-if",!0),i(y)("8")&&(String(e.status)==="3"||String(e.status)==="1")?(d(),f(M,{key:1,title:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u6761\u8BB0\u5F55?",onConfirm:l=>S(e.id)},{reference:o(()=>[u(h,{link:"",size:"small",type:"primary",icon:i(b)("delete")},null,8,["icon"])]),_:2},1032,["onConfirm"])):x("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),u(U,{ref_key:"demandModifyModal",ref:a,onRefresh:t[2]||(t[2]=e=>c.value.onSearch())},null,512),u(H,{ref_key:"execModalRef",ref:n},null,512)]),_:1})}}});var ee=W(Z,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/fundClaim/components/all.vue"]]);export{ee as default};
|