2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
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]||(t[3]=o=>e(r).pageSize=o),onPagination:m},null,8,["total","page","limit"]),[[T,e(S)>0]]),l(F,{title:e(q),modelValue:e(c),"onUpdate:modelValue":t[7]||(t[7]=o=>G(c)?c.value=o:null),width:"500px","append-to-body":""},{footer:a(()=>[s("div",ye,[l(v,{type:"primary",onClick:W},{default:a(()=>[p("\u786E \u5B9A")]),_:1}),l(v,{onClick:J},{default:a(()=>[p("\u53D6 \u6D88")]),_:1})])]),default:a(()=>[l(B,{ref:"chzlRef",model:e(i),rules:e(E),"label-width":"80px"},{default:a(()=>[l(g,{label:"\u75C5\u5BB3\u540D\u79F0",prop:"name"},{default:a(()=>[l(z,{modelValue:e(i).name,"onUpdate:modelValue":t[4]||(t[4]=o=>e(i).name=o),placeholder:"\u8BF7\u8F93\u5165\u75C5\u5BB3\u540D\u79F0"},null,8,["modelValue"])]),_:1}),l(g,{label:"\u9632\u6CBB\u65B9\u6CD5",prop:"fzff"},{default:a(()=>[l(z,{modelValue:e(i).fzff,"onUpdate:modelValue":t[5]||(t[5]=o=>e(i).fzff=o),placeholder:"\u8BF7\u8F93\u5165\u9632\u6CBB\u65B9\u6CD5"},null,8,["modelValue"])]),_:1}),l(g,{label:"\u53D1\u75C5\u75C7\u72B6",prop:"xttz"},{default:a(()=>[l(z,{modelValue:e(i).xttz,"onUpdate:modelValue":t[6]||(t[6]=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(h),"onUpdate:modelValue":t[8]||(t[8]=o=>G(h)?h.value=o:h=o),title:"\u6307\u5BFC\u610F\u89C1",width:"50%",center:""},{default:a(()=>[s("div",xe,[ze,we,Ve,s("h2",Ce,I(e(x).name),1)]),s("div",ke,[s("div",Se,[s("h3",Ue,[n.label3=="\u866B\u60C5\u76D1\u6D4B\u4EEA"?(_(),N("img",Ne)):Q("",!0),n.label3=="\u5927\u7530\u89C6\u9891\u75C5\u5BB3\u76D1\u6D4B"?(_(),N("img",Re)):Q("",!0),p(" \xA0 \u5F62\u6001\u7279\u5F81 ")]),s("p",Ge,"\u2003"+I(e(x).xttz),1),Ie,s("p",Pe,I(e(x).fzff),1)])])]),_:1},8,["modelValue"])])}}}),Qe=ne(De,[["__scopeId","data-v-991310ae"]]);export{Qe as default};
|