2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
import{Q as A,_ as se,G as ie,r as u,I as ue,U as de,d,T as K,o as _,c as U,K as V,M as Q,f as e,e as l,w as a,j as re,n as m,p as ce,k as N,J as G,l as s,A as I,m as T,q as pe,s as me,v as fe}from"./index.9f28707e.js";import{_ as _e,a as he,b as ge}from"./fang.1cee0737.js";function ve(c){return A({url:"/chyf/queryAll",method:"get",params:c})}function ye(c){return A({url:"/chyf/add",method:"post",data:c})}const k=c=>(pe("data-v-27d512e1"),c=c(),me(),c),be={class:"app-container"},we=["onClick"],xe={class:"dialog-footer"},ze={class:"titleDivs"},Ve=k(()=>s("div",{style:{height:"60px",width:"6px",background:"rgba(100, 195, 164, 1)"}},null,-1)),ke=k(()=>s("div",{style:{height:"60px",width:"6px",background:"#fff"}},null,-1)),Ce=k(()=>s("div",{style:{height:"60px",width:"3px",background:"rgba(100, 195, 164, 0.6)"}},null,-1)),Se={style:{background:"#fff",height:"60px",padding:"20px","font-size":"28px","font-weight":"800"}},Re={class:"GuidanceDiv"},Ue={class:"GuidanceContent"},Ne={style:{color:"rgba(100, 195, 164, 1)","font-weight":"600",display:"flex"}},Ge={key:0,src:_e},Ie={key:1,src:he},qe={style:{"white-space":"pre-line"}},Pe=k(()=>s("h3",{style:{color:"rgba(100, 195, 164, 1)","font-weight":"600",display:"flex"}},[s("img",{src:ge}),m(" \xA0 \u9632\u6CBB\u65B9\u6CD5 ")],-1)),De={style:{"white-space":"pre-wrap"}},Be=ie({name:"insect"}),Fe=Object.assign(Be,{setup(c){const{proxy:h}=fe(),q=u([]),p=u(!1),C=u(!0),b=u(!0),$=u([]),j=u(!0),L=u(!0),S=u(0),P=u("");let g=u(!1),w=u([]);const M=ue({form:{},queryParams:{pageNum:1,pageSize:10,id:null,name:null,bt:null,nr:null},rules:{}}),{queryParams:r,form:i,rules:E}=de(M);function f(){C.value=!0,ve({...r.value}).then(n=>{q.value=n.data,S.value=n.total,C.value=!1})}function J(){p.value=!1,D()}function D(){i.value={name:null,xttz:null,fzff:null},h.resetForm("chzlRef")}function R(){r.value.pageNum=1,f()}function O(){h.resetForm("queryRef"),R()}function H(n){$.value=n.map(t=>t.id),j.value=n.length!=1,L.value=!n.length}function W(){D(),p.value=!0,P.value="\u6DFB\u52A0\u866B\u5BB3"}function X(){h.$refs.chzlRef.validate(n=>{n&&(i.value.id!=null?updateChzl(i.value).then(t=>{h.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),p.value=!1,f()}):ye(i.value).then(t=>{h.$modal.msgSuccess(t.msg),p.value=!1,f()}))})}const Y=n=>{console.log("111"),g.value=!0,w.value=n};return f(),(n,t)=>{const x=d("el-input"),v=d("el-form-item"),y=d("el-button"),B=d("el-form"),Z=d("el-col"),ee=d("right-toolbar"),te=d("el-row"),z=d("el-table-column"),le=d("el-table"),oe=d("pagination"),F=d("el-dialog"),ae=K("hasPermi"),ne=K("loading");return _(),U("div",be,[V(l(B,{model:e(r),ref:"queryRef",inline:!0,"label-width":"68px",onSubmit:t[1]||(t[1]=ce(()=>{},["prevent"]))},{default:a(()=>[l(v,{label:"\u866B\u5BB3\u540D\u79F0",prop:"name"},{default:a(()=>[l(x,{modelValue:e(r).name,"onUpdate:modelValue":t[0]||(t[0]=o=>e(r).name=o),placeholder:"\u8BF7\u8F93\u5165\u866B\u5BB3\u540D\u79F0",clearable:"",onKeyup:re(R,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),l(v,null,{default:a(()=>[l(y,{type:"primary",icon:"Search",onClick:R},{default:a(()=>[m("\u641C\u7D22")]),_:1}),l(y,{icon:"Refresh",onClick:O},{default:a(()=>[m("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[Q,e(b)]]),l(te,{gutter:10,class:"mb8"},{default:a(()=>[l(Z,{span:1.5},{default:a(()=>[V((_(),N(y,{type:"primary",plain:"",icon:"Plus",onClick:W},{default:a(()=>[m(" \u65B0\u589E ")]),_:1})),[[ae,["system:insect:add"]]])]),_:1},8,["span"]),l(ee,{showSearch:e(b),"onUpdate:showSearch":t[2]||(t[2]=o=>G(b)?b.value=o:null),onQueryTable:f},null,8,["showSearch"])]),_:1}),V((_(),N(le,{data:e(q),"max-height":"73vh",onSelectionChange:H},{default:a(()=>[l(z,{label:"\u866B\u5BB3\u540D\u79F0",align:"center",prop:"name"}),l(z,{label:"\u9632\u6CBB\u65B9\u6CD5",align:"center",prop:"fzff"}),l(z,{label:"\u53D1\u75C5\u75C7\u72B6",align:"center",prop:"xttz"}),(_(),N(z,{key:n.index,align:"center",label:"\u8BE6\u60C5"},{default:a(o=>[s("span",{class:"Guidance",style:{cursor:"pointer",color:"rgba(100, 195, 164, 1)"},onClick:Ke=>Y(o.row)}," \u67E5\u770B\u8BE6\u60C5 ",8,we)]),_:1}))]),_:1},8,["data"])),[[ne,e(C)]]),V(l(oe,{total:e(S),page:e(r).pageNum,"onUpdate:page":t[3]||(t[3]=o=>e(r).pageNum=o),limit:e(r).pageSize,"onUpdate:limit":t[4]||(t[4]=o=>e(r).pageSize=o),onPagination:f},null,8,["total","page","limit"]),[[Q,e(S)>0]]),l(F,{title:e(P),modelValue:e(p),"onUpdate:modelValue":t[8]||(t[8]=o=>G(p)?p.value=o:null),width:"500px","append-to-body":""},{footer:a(()=>[s("div",xe,[l(y,{type:"primary",onClick:X},{default:a(()=>[m("\u786E \u5B9A")]),_:1}),l(y,{onClick:J},{default:a(()=>[m("\u53D6 \u6D88")]),_:1})])]),default:a(()=>[l(B,{ref:"chzlRef",model:e(i),rules:e(E),"label-width":"80px"},{default:a(()=>[l(v,{label:"\u866B\u5BB3\u540D\u79F0",prop:"name"},{default:a(()=>[l(x,{modelValue:e(i).name,"onUpdate:modelValue":t[5]||(t[5]=o=>e(i).name=o),placeholder:"\u8BF7\u8F93\u5165\u866B\u5BB3\u540D\u79F0"},null,8,["modelValue"])]),_:1}),l(v,{label:"\u9632\u6CBB\u65B9\u6CD5",prop:"fzff"},{default:a(()=>[l(x,{autosize:{minRows:2,maxRows:4},type:"textarea",modelValue:e(i).fzff,"onUpdate:modelValue":t[6]||(t[6]=o=>e(i).fzff=o),placeholder:"\u8BF7\u8F93\u5165\u9632\u6CBB\u65B9\u6CD5"},null,8,["modelValue"])]),_:1}),l(v,{label:"\u53D1\u75C5\u75C7\u72B6",prop:"xttz"},{default:a(()=>[l(x,{autosize:{minRows:2,maxRows:4},type:"textarea",modelValue:e(i).xttz,"onUpdate:modelValue":t[7]||(t[7]=o=>e(i).xttz=o),placeholder:"\u8BF7\u8F93\u5165\u53D1\u75C5\u75C7\u72B6"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"]),l(F,{modelValue:e(g),"onUpdate:modelValue":t[9]||(t[9]=o=>G(g)?g.value=o:g=o),title:"\u6307\u5BFC\u610F\u89C1",width:"50%",center:""},{default:a(()=>[s("div",ze,[Ve,ke,Ce,s("h2",Se,I(e(w).name),1)]),s("div",Re,[s("div",Ue,[s("h3",Ne,[n.label3=="\u866B\u60C5\u76D1\u6D4B\u4EEA"?(_(),U("img",Ge)):T("",!0),n.label3=="\u5927\u7530\u89C6\u9891\u75C5\u5BB3\u76D1\u6D4B"?(_(),U("img",Ie)):T("",!0),m(" \xA0 \u5F62\u6001\u7279\u5F81 ")]),s("p",qe,"\u2003"+I(e(w).xttz),1),Pe,s("p",De,I(e(w).fzff),1)])])]),_:1},8,["modelValue"])])}}}),Ae=se(Fe,[["__scopeId","data-v-27d512e1"]]);export{Ae as default};
|