2024-07-26 14:12:27 +08:00
|
|
|
import{_ as ne,G as se,r as u,I as ie,U as ue,d,T as K,o as _,c as N,K as V,M as T,f as e,e as l,w as a,j as de,n as p,k as R,J as G,l as s,A as I,m as Q,q as re,s as ce,v as pe}from"./index.064676a5.js";import{_ as me,a as _e,b as fe}from"./fang.1cee0737.js";import{l as he,a as ge}from"./chzl.60e42fc7.js";const C=b=>(re("data-v-991310ae"),b=b(),ce(),b),ve={class:"app-container"},be=["onClick"],ye={class:"dialog-footer"},xe={class:"titleDivs"},ze=C(()=>s("div",{style:{height:"60px",width:"6px",background:"rgba(100, 195, 164, 1)"}},null,-1)),we=C(()=>s("div",{style:{height:"60px",width:"6px",background:"#fff"}},null,-1)),Ve=C(()=>s("div",{style:{height:"60px",width:"3px",background:"rgba(100, 195, 164, 0.6)"}},null,-1)),Ce={style:{background:"#fff",height:"60px",padding:"20px","font-size":"28px","font-weight":"800"}},ke={class:"GuidanceDiv"},Se={class:"GuidanceContent"},Ue={style:{color:"rgba(100, 195, 164, 1)","font-weight":"600",display:"flex"}},Ne={key:0,src:me},Re={key:1,src:_e},Ge={style:{"white-space":"pre-line"}},Ie=C(()=>s("h3",{style:{color:"rgba(100, 195, 164, 1)","font-weight":"600",display:"flex"}},[s("img",{src:fe}),p(" \xA0 \u9632\u6CBB\u65B9\u6CD5 ")],-1)),Pe={style:{"white-space":"pre-wrap"}},qe=se({name:"Chzl"}),De=Object.assign(qe,{setup(b){const{proxy:f}=pe(),P=u([]),c=u(!1),k=u(!0),y=u(!0),$=u([]),j=u(!0),A=u(!0),S=u(0),q=u("");let h=u(!1),x=u([]);const L=ie({form:{},queryParams:{pageNum:1,pageSize:10,id:null,name:null,bt:null,nr:null},rules:{}}),{queryParams:r,form:i,rules:E}=ue(L);function m(){k.value=!0,he({...r.value}).then(n=>{P.value=n.data,S.value=n.total,k.value=!1})}function J(){c.value=!1,D()}function D(){i.value={name:null,xttz:null,fzff:null},f.resetForm("chzlRef")}function U(){r.value.pageNum=1,m()}function M(){f.resetForm("queryRef"),U()}function O(n){$.value=n.map(t=>t.id),j.value=n.length!=1,A.value=!n.length}function H(){D(),c.value=!0,q.value="\u6DFB\u52A0\u75C5\u5BB3"}function W(){f.$refs.chzlRef.validate(n=>{n&&(i.value.id!=null?updateChzl(i.value).then(t=>{f.$modal.msgSuccess("\u4FEE\u6539\u6210\u529F"),c.value=!1,m()}):ge(i.value).then(t=>{f.$modal.msgSuccess(t.msg),c.value=!1,m()}))})}const X=n=>{console.log("111"),h.value=!0,x.value=n};return m(),(n,t)=>{const z=d("el-input"),g=d("el-form-item"),v=d("el-button"),B=d("el-form"),Y=d("el-col"),Z=d("right-toolbar"),ee=d("el-row"),w=d("el-table-column"),le=d("el-table"),te=d("pagination"),F=d("el-dialog"),oe=K("hasPermi"),ae=K("loading");return _(),N("div",ve,[V(l(B,{model:e(r),ref:"queryRef",inline:!0,"label-width":"68px"},{default:a(()=>[l(g,{label:"\u75C5\u5BB3\u540D\u79F0",prop:"name"},{default:a(()=>[l(z,{modelValue:e(r).name,"onUpdate:modelValue":t[0]||(t[0]=o=>e(r).name=o),placeholder:"\u8BF7\u8F93\u5165\u75C5\u5BB3\u540D\u79F0",clearable:"",onKeyup:de(U,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),l(g,null,{default:a(()=>[l(v,{type:"primary",icon:"Search",onClick:U},{default:a(()=>[p("\u641C\u7D22")]),_:1}),l(v,{icon:"Refresh",onClick:M},{default:a(()=>[p("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[T,e(y)]]),l(ee,{gutter:10,class:"mb8"},{default:a(()=>[l(Y,{span:1.5},{default:a(()=>[V((_(),R(v,{type:"primary",plain:"",icon:"Plus",onClick:H},{default:a(()=>[p(" \u65B0\u589E ")]),_:1})),[[oe,["system:chzl:add"]]])]),_:1},8,["span"]),l(Z,{showSearch:e(y),"onUpdate:showSearch":t[1]||(t[1]=o=>G(y)?y.value=o:null),onQueryTable:m},null,8,["showSearch"])]),_:1}),V((_(),R(le,{data:e(P),"max-height":"75vh",onSelectionChange:O},{default:a(()=>[l(w,{label:"\u75C5\u5BB3\u540D\u79F0",align:"center",prop:"name"}),l(w,{label:"\u9632\u6CBB\u65B9\u6CD5",align:"center",prop:"fzff"}),l(w,{label:"\u53D1\u75C5\u75C7\u72B6",align:"center",prop:"xttz"}),(_(),R(w,{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:Be=>X(o.row)}," \u67E5\u770B\u8BE6\u60C5 ",8,be)]),_:1}))]),_:1},8,["data"])),[[ae,e(k)]]),V(l(te,{total:e(S),page:e(r).pageNum,"onUpdate:page":t[2]||(t[2]=o=>e(r).pageNum=o),limit:e(r).pageSize,"onUpdate:limit":t[3]||(
|