index-da42efc2.js 5.2 KB

1
  1. import{d as B,h as G,r as p,e as I,l as Q,Q as E,o as c,c as J,f as e,w as r,a,R as V,n as d,x as f,v as h,F as L,V as O,A as W,B as X,j as Z,C as $,D as ee,G as ae,H as te,I as le,_ as re,__tla as oe}from"./index-663b822b.js";import{_ as se,__tla as ne}from"./index-758918f2.js";import{_ as ie,__tla as pe}from"./ContentWrap-1a78e8cd.js";import{d as ce,__tla as de}from"./formatTime-f47a2129.js";import{d as ue}from"./download-20922b56.js";import{S as _e,a as k,__tla as me}from"./SharePathForm-15ca7cc3.js";import{u as fe,__tla as he}from"./useMessage-40b17a0b.js";import{__tla as ye}from"./index-0cf59de8.js";import{__tla as ge}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c8f9e533.js";import{__tla as we}from"./el-card-9ef9a6b0.js";import{__tla as xe}from"./Dialog-38464040.js";let T,ve=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{T=re(B({name:"SharePath",__name:"index",setup(be){const w=fe(),{t:F}=G(),x=p(!0),C=p([]),S=p(0),t=I({pageNo:1,pageSize:10,ancestor:void 0,descendant:void 0,depth:void 0,createTime:[]}),P=p(),v=p(!1),u=async()=>{x.value=!0;try{const s=await k.getSharePathPage(t);C.value=s.list,S.value=s.total}finally{x.value=!1}},_=()=>{t.pageNo=1,u()},N=()=>{P.value.resetFields(),_()},D=p(),z=(s,l)=>{D.value.open(s,l)},Y=async()=>{try{await w.exportConfirm(),v.value=!0;const s=await k.exportSharePath(t);ue.excel(s,"\u5206\u9500\u7528\u6237\u5173\u7CFB.xls")}catch{}finally{v.value=!1}};return Q(()=>{u()}),(s,l)=>{const b=O,m=W,H=X,y=Z,n=$,K=ee,U=ie,i=ae,R=te,j=se,g=E("hasPermi"),M=le;return c(),J(L,null,[e(U,null,{default:r(()=>[e(K,{class:"-mb-15px",model:a(t),ref_key:"queryFormRef",ref:P,inline:!0,"label-width":"68px"},{default:r(()=>[e(m,{label:"\u7236\u4EB2id",prop:"ancestor"},{default:r(()=>[e(b,{modelValue:a(t).ancestor,"onUpdate:modelValue":l[0]||(l[0]=o=>a(t).ancestor=o),placeholder:"\u8BF7\u8F93\u5165\u7236\u4EB2id",clearable:"",onKeyup:V(_,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u63A8\u9500\u4EBA\u5458",prop:"descendant"},{default:r(()=>[e(b,{modelValue:a(t).descendant,"onUpdate:modelValue":l[1]||(l[1]=o=>a(t).descendant=o),placeholder:"\u8BF7\u8F93\u5165\u63A8\u9500\u4EBA\u5458",clearable:"",onKeyup:V(_,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u5C42\u7EA7",prop:"depth"},{default:r(()=>[e(b,{modelValue:a(t).depth,"onUpdate:modelValue":l[2]||(l[2]=o=>a(t).depth=o),placeholder:"\u8BF7\u8F93\u5165\u5C42\u7EA7",clearable:"",onKeyup:V(_,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(H,{modelValue:a(t).createTime,"onUpdate:modelValue":l[3]||(l[3]=o=>a(t).createTime=o),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(m,null,{default:r(()=>[e(n,{onClick:_},{default:r(()=>[e(y,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),e(n,{onClick:N},{default:r(()=>[e(y,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),f((c(),h(n,{type:"primary",plain:"",onClick:l[4]||(l[4]=o=>z("create"))},{default:r(()=>[e(y,{icon:"ep:plus",class:"mr-5px"}),d(" \u65B0\u589E ")]),_:1})),[[g,["distri:share-path:create"]]]),f((c(),h(n,{type:"success",plain:"",onClick:Y,loading:a(v)},{default:r(()=>[e(y,{icon:"ep:download",class:"mr-5px"}),d(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["distri:share-path:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(U,null,{default:r(()=>[f((c(),h(R,{data:a(C),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[e(i,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"id"}),e(i,{label:"\u7236\u4EB2id",align:"center",prop:"ancestor"}),e(i,{label:"\u63A8\u9500\u4EBA\u5458",align:"center",prop:"descendant"}),e(i,{label:"\u5C42\u7EA7",align:"center",prop:"depth"}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(ce),width:"180px"},null,8,["formatter"]),e(i,{label:"\u64CD\u4F5C",align:"center"},{default:r(o=>[f((c(),h(n,{link:"",type:"primary",onClick:q=>z("update",o.row.id)},{default:r(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["distri:share-path:update"]]]),f((c(),h(n,{link:"",type:"danger",onClick:q=>(async A=>{try{await w.delConfirm(),await k.deleteSharePath(A),w.success(F("common.delSuccess")),await u()}catch{}})(o.row.id)},{default:r(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["distri:share-path:delete"]]])]),_:1})]),_:1},8,["data"])),[[M,a(x)]]),e(j,{total:a(S),page:a(t).pageNo,"onUpdate:page":l[5]||(l[5]=o=>a(t).pageNo=o),limit:a(t).pageSize,"onUpdate:limit":l[6]||(l[6]=o=>a(t).pageSize=o),onPagination:u},null,8,["total","page","limit"])]),_:1}),e(_e,{ref_key:"formRef",ref:D,onSuccess:u},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/system/distri/sharepath/index.vue"]])});export{ve as __tla,T as default};