2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
import{B as A,C as I,Q as M,R as q,w as O,D as Q,I as G,L as H,_ as J,M as W,N as X}from"./element-plus.f958bb38.js";import{_ as Y}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{f as Z,b as ee}from"./index.79566453.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.0cfc6c85.js";import{d as V,s as oe,r as ae,$ as le,af as se,o as r,c as ne,U as e,L as t,K as c,u as l,R as ie,a9 as g,a as h,M as C,S as m,T as ue,k as re,n as k}from"./@vue.e8706010.js";import{c as D,d as me}from"./post.4e3b1668.js";import{u as pe}from"./usePaging.160b82b8.js";import{_ as de}from"./edit.vue_vue_type_script_setup_true_lang.169b6fc5.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.ace66c08.js";const ce={class:"post-lists"},_e=m("\u67E5\u8BE2"),fe=m("\u91CD\u7F6E"),be=m(" \u65B0\u589E "),ve=m(" \u7F16\u8F91 "),Ce=m(" \u5220\u9664 "),Fe={class:"flex justify-end mt-4"},we=V({name:"post"}),ut=V({...we,setup(ye){const _=oe(),f=ae(!1),s=le({code:"",name:"",status:""}),{pager:u,getLists:b,resetPage:F,resetParams:B}=pe({fetchFun:D,params:s}),x=async()=>{var n;f.value=!0,await k(),(n=_.value)==null||n.open("add")},$=async n=>{var o,p;f.value=!0,await k(),(o=_.value)==null||o.open("edit"),(p=_.value)==null||p.getDetail(n)},R=async n=>{await Z.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:n}),b()};return b(),(n,o)=>{const p=A,v=I,w=M,j=q,d=O,K=te,T=Q,E=G,L=ee,i=H,N=J,P=W,S=Y,y=se("perms"),U=X;return r(),ne("div",ce,[e(E,{class:"!border-none",shadow:"never"},{default:t(()=>[e(T,{ref:"formRef",class:"mb-[-16px]",model:s,inline:!0},{default:t(()=>[e(v,{label:"\u5C97\u4F4D\u7F16\u7801"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:s.code,"onUpdate:modelValue":o[0]||(o[0]=a=>s.code=a),clearable:"",onKeyup:g(l(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(v,{label:"\u5C97\u4F4D\u540D\u79F0"},{default:t(()=>[e(p,{class:"w-[280px]",modelValue:s.name,"onUpdate:modelValue":o[1]||(o[1]=a=>s.name=a),clearable:"",onKeyup:g(l(F),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(v,{label:"\u5C97\u4F4D\u72B6\u6001"},{default:t(()=>[e(j,{class:"w-[280px]",modelValue:s.status,"onUpdate:modelValue":o[2]||(o[2]=a=>s.status=a)},{default:t(()=>[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(v,null,{default:t(()=>[e(d,{type:"primary",onClick:l(F)},{default:t(()=>[_e]),_:1},8,["onClick"]),e(d,{onClick:l(B)},{default:t(()=>[fe]),_:1},8,["onClick"]),e(K,{class:"ml-2.5","fetch-fun":l(D),params:s,"page-size":l(u).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[h("div",null,[C((r(),c(d,{type:"primary",onClick:o[3]||(o[3]=a=>x())},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[be]),_:1})),[[y,["dept.jobs/add"]]])]),C((r(),c(P,{class:"mt-4",size:"large",data:l(u).lists},{default:t(()=>[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:t(({row:a})=>[e(N,{class:"mr-2",type:a.status?"":"danger"},{default:t(()=>[m(ue(a.status_desc),1)]),_:2},1032,["type"])]),_:1}),e(i,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:a})=>[C((r(),c(d,{type:"primary",link:"",onClick:z=>$(a)},{default:t(()=>[ve]),_:2},1032,["onClick"])),[[y,["dept.jobs/edit"]]]),C((r(),c(d,{type:"danger",link:"",onClick:z=>R(a.id)},{default:t(()=>[Ce]),_:2},1032,["onClick"])),[[y,["dept.jobs/delete"]]])]),_:1})]),_:1},8,["data"])),[[U,l(u).loading]]),h("div",Fe,[e(S,{modelValue:l(u),"onUpdate:modelValue":o[4]||(o[4]=a=>re(u)?u.value=a:null),onChange:l(b)},null,8,["modelValue","onChange"])])]),_:1}),f.value?(r(),c(de,{key:0,ref_key:"editRef",ref:_,onSuccess:l(b),onClose:o[5]||(o[5]=a=>f.value=!1)},null,8,["onSuccess"])):ie("",!0)])}}});export{ut as default};
|