2 lines
5.6 KiB
JavaScript
2 lines
5.6 KiB
JavaScript
import{_ as A,C as I,D as O,K as Q,L as q,w as M,F as Z,T as G,O as H,Q as J,R as W}from"./element-plus.681b9893.js";import{_ as X}from"./index.vue_vue_type_script_setup_true_lang.58d80c54.js";import{f as Y,b as ee}from"./index.0c8416f0.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.881abb55.js";import{d as h,s as oe,r as ae,Z as le,ap as se,o as m,c as ne,U as e,L as o,u as t,aa as g,R as u,a as k,M as v,K as c,S as ie,j as re,Q as me,n as D}from"./@vue.18505fe0.js";import{c as V,d as ue}from"./post.131705e0.js";import{u as pe}from"./usePaging.6a6670f9.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_lang.50f5e066.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.466e9fe4.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./index.a7179cc9.js";const ce={class:"post-lists"},_e={class:"flex justify-end mt-4"},fe=h({name:"post"}),wt=h({...fe,setup(be){const _=oe(),f=ae(!1),s=le({code:"",name:"",status:""}),{pager:r,getLists:b,resetPage:F,resetParams:x}=pe({fetchFun:V,params:s}),B=async()=>{var n;f.value=!0,await D(),(n=_.value)==null||n.open("add")},$=async n=>{var a,p;f.value=!0,await D(),(a=_.value)==null||a.open("edit"),(p=_.value)==null||p.getDetail(n)},j=async n=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ue({id:n}),b()};return b(),(n,a)=>{const p=I,C=O,w=Q,K=q,d=M,R=te,T=Z,E=G,L=ee,i=H,P=A,S=J,U=X,y=se("perms"),z=W;return m(),ne("div",ce,[e(E,{class:"!border-none",shadow:"never"},{default:o(()=>[e(T,{ref:"formRef",class:"mb-[-16px]",model:t(s),inline:!0},{default:o(()=>[e(C,{label:"\u5C97\u4F4D\u7F16\u7801"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).code,"onUpdate:modelValue":a[0]||(a[0]=l=>t(s).code=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u540D\u79F0"},{default:o(()=>[e(p,{class:"w-[280px]",modelValue:t(s).name,"onUpdate:modelValue":a[1]||(a[1]=l=>t(s).name=l),clearable:"",onKeyup:g(t(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u5C97\u4F4D\u72B6\u6001"},{default:o(()=>[e(K,{class:"w-[280px]",modelValue:t(s).status,"onUpdate:modelValue":a[2]||(a[2]=l=>t(s).status=l)},{default:o(()=>[e(w,{label:"\u5168\u90E8",value:""}),e(w,{label:"\u6B63\u5E38",value:1}),e(w,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(C,null,{default:o(()=>[e(d,{type:"primary",onClick:t(F)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(d,{onClick:t(x)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"]),e(R,{class:"ml-2.5","fetch-fun":t(V),params:t(s),"page-size":t(r).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[k("div",null,[v((m(),c(d,{type:"primary",onClick:a[3]||(a[3]=l=>B())},{icon:o(()=>[e(L,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[y,["dept.jobs/add"]]])]),v((m(),c(S,{class:"mt-4",size:"large",data:t(r).lists},{default:o(()=>[e(i,{label:"\u5C97\u4F4D\u7F16\u7801",prop:"code","min-width":"100"}),e(i,{label:"\u5C97\u4F4D\u540D\u79F0",prop:"name","min-width":"100"}),e(i,{label:"\u6392\u5E8F",prop:"sort","min-width":"100"}),e(i,{label:"\u5907\u6CE8",prop:"remark","min-width":"100","show-overflow-tooltip":""}),e(i,{label:"\u6DFB\u52A0\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(i,{label:"\u72B6\u6001",prop:"status","min-width":"100"},{default:o(({row:l})=>[e(P,{class:"ml-2",type:l.status?"":"danger"},{default:o(()=>[u(ie(l.status_desc),1)]),_:2},1032,["type"])]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[v((m(),c(d,{type:"primary",link:"",onClick:N=>$(l)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/edit"]]]),v((m(),c(d,{type:"danger",link:"",onClick:N=>j(l.id)},{default:o(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["dept.jobs/delete"]]])]),_:1})]),_:1},8,["data"])),[[z,t(r).loading]]),k("div",_e,[e(U,{modelValue:t(r),"onUpdate:modelValue":a[4]||(a[4]=l=>re(r)?r.value=l:null),onChange:t(b)},null,8,["modelValue","onChange"])])]),_:1}),t(f)?(m(),c(de,{key:0,ref_key:"editRef",ref:_,onSuccess:t(b),onClose:a[5]||(a[5]=l=>f.value=!1)},null,8,["onSuccess"])):me("",!0)])}}});export{wt as default};
|