You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.1 KiB
1 lines
4.1 KiB
import{d as Z,r as s,ao as $,ax as ee,G as te,a as b,f as oe,q as x,e as t,b as l,h as n,as as ne,H as p,Y as ae,c as L,t as U,j as V,I as h,$ as le,hh as se,hi as ie,aj as re,an as pe,ab as ue,b3 as de,b4 as me,aA as _e,at as ce}from"./index-e450010e.js";import{_ as fe}from"./index-c5018719.js";import{_ as ve}from"./edit-e81858b0.js";import{_ as ge}from"./delete-811387fa.js";import{_ as ye}from"./plus-f2947ec6.js";import{_ as ke}from"./refresh-f1723430.js";import{_ as we}from"./search-71444aff.js";import he from"./taskentry-1e7357d4.js";import be from"./taskcustomerformnew-f1ed64ed.js";import{_ as Ce}from"./edittaskcustomerform.vue_vue_type_script_setup_true_lang-26794b51.js";/* empty css *//* empty css */const De={class:"app-container"},Fe={class:"search"},We=Z({__name:"tasklist",setup(Ee){const c=s(!1),C=s($),D=s([]),d=s(0),i=ee({page:1,pagesize:15}),F=s(),f=s(!1),v=s(),E=s(),g=s(),y=s(!1),k=s(!1),r=()=>{c.value=!0,se(i).then(({data:a})=>{a!=null&&(F.value=a.list,d.value=a.total)}).finally(()=>{c.value=!1})},z=()=>{C.value.resetFields(),N()},N=()=>{i.page=1,i.pagesize=15,i.keywords=""};function B(a){D.value=a.map(e=>e.id)}const I=()=>{var a;m.value=(a=w.value)==null?void 0:a.clientWidth,f.value=!0},K=()=>{},W=a=>{var e;m.value=(e=w.value)==null?void 0:e.clientWidth,v.value=a.version_id.toString(),g.value=a.title,E.value=a.mastersKeyStr.toString(),k.value=!0},q=a=>{c.value=!0,ie({id:a.toString()}).then(e=>{r()})},w=s(),m=s(0);te(()=>{var a;r(),m.value=(a=w.value)==null?void 0:a.clientWidth});const R=(a,e)=>{v.value=a,g.value=e,y.value=!0};return(a,e)=>{const j=re,T=pe,M=we,u=ue,Q=ke,A=$,G=ye,S=ge,_=de,H=ve,O=me,P=fe,Y=_e,J=ce;return b(),oe("div",{ref_key:"contbody",ref:w},[x("div",De,[x("div",Fe,[t(A,{ref_key:"searckFormRef",ref:C,model:n(i),inline:!0},{default:l(()=>[t(T,{label:"关键字",prop:"name"},{default:l(()=>[t(j,{modelValue:n(i).keywords,"onUpdate:modelValue":e[0]||(e[0]=o=>n(i).keywords=o),placeholder:"标题",clearable:"",onKeyup:ne(r,["enter"])},null,8,["modelValue"])]),_:1}),t(T,null,{default:l(()=>[t(u,{type:"primary",onClick:e[1]||(e[1]=o=>r())},{default:l(()=>[t(M),p("搜索")]),_:1}),t(u,{onClick:e[2]||(e[2]=o=>z())},{default:l(()=>[t(Q),p("重置")]),_:1})]),_:1})]),_:1},8,["model"])]),t(Y,{shadow:"never"},{header:l(()=>[t(u,{type:"success",onClick:e[3]||(e[3]=o=>I())},{default:l(()=>[t(G),p("新增")]),_:1}),t(u,{type:"danger",disabled:n(D).length===0,onClick:e[4]||(e[4]=o=>K())},{default:l(()=>[t(S),p("删除 ")]),_:1},8,["disabled"])]),default:l(()=>[ae((b(),L(O,{"highlight-current-row":"",data:n(F),border:"",onSelectionChange:B},{default:l(()=>[t(_,{type:"selection",width:"55",align:"center"}),t(_,{fixed:"",label:"标题",prop:"title"}),t(_,{label:"发起人"},{default:l(o=>[p(U(o.row.createrName)+"("+U(o.row.createrNumber)+") ",1)]),_:1}),t(_,{label:"发起时间",prop:"createrTame"}),t(_,{fixed:"right",label:"操作",align:"center",width:"220"},{default:l(o=>[t(u,{type:"primary",link:"",size:"small",onClick:V(X=>W(o.row),["stop"])},{default:l(()=>[t(H),p("编辑 ")]),_:2},1032,["onClick"]),t(u,{type:"primary",link:"",size:"small",onClick:V(X=>q(o.row.id),["stop"])},{default:l(()=>[t(S),p("删除 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[J,n(c)]]),n(d)>0?(b(),L(P,{key:0,total:n(d),"onUpdate:total":e[5]||(e[5]=o=>h(d)?d.value=o:null),page:n(i).page,"onUpdate:page":e[6]||(e[6]=o=>n(i).page=o),limit:n(i).pagesize,"onUpdate:limit":e[7]||(e[7]=o=>n(i).pagesize=o),onPagination:r},null,8,["total","page","limit"])):le("",!0)]),_:1}),t(he,{isshow:n(f),"onUpdate:isshow":e[8]||(e[8]=o=>h(f)?f.value=o:null),onOpencustomerform:R},null,8,["isshow"]),t(be,{isopen:n(y),"onUpdate:isopen":e[9]||(e[9]=o=>h(y)?y.value=o:null),versionid:n(v),versiontitle:n(g),drawerwith:n(m),onSearchquery:r},null,8,["isopen","versionid","versiontitle","drawerwith"]),t(Ce,{iseditopen:n(k),"onUpdate:iseditopen":e[10]||(e[10]=o=>h(k)?k.value=o:null),versionid:n(v),versiontitle:n(g),masterskey:n(E),infoid:"2",drawerwith:n(m),onSearchquery:r},null,8,["iseditopen","versionid","versiontitle","masterskey","drawerwith"])])],512)}}});export{We as default};
|
|
|