WokerTask/public/admin/assets/index.10a3228e.js

2 lines
5.5 KiB
JavaScript

import{a6 as Q,B as j,C as z,M as G,N as H,w as J,D as W,I as X,O as Y,P as Z,Q as ee}from"./element-plus.b0ecf6ae.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import{k as oe,f as ae,b as le}from"./index.9e5a9063.js";import{d as P,s as ne,r as D,$ as ie,a4 as se,af as ue,o as n,c as x,U as e,L as t,u as o,a8 as T,R as s,a as B,M as p,K as d,k as re,Q as de,n as $}from"./@vue.51d7f2d8.js";import{i as me,f as pe}from"./dict.b24eecdc.js";import{u as ce}from"./usePaging.2ad8e1e6.js";import{_ as _e}from"./edit.vue_vue_type_script_setup_true_lang.340440aa.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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.ffb5376d.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./index.3a572f9b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const fe={class:"dict-type"},ye={class:"mt-4"},ve={class:"flex justify-end mt-4"},Ce=P({name:"dictType"}),lt=P({...Ce,setup(ge){const y=ne(),v=D(!1),u=ie({name:"",type:"",status:""}),{pager:c,getLists:C,resetPage:b,resetParams:R}=ce({fetchFun:pe,params:u}),k=D([]),K=i=>{k.value=i.map(({id:a})=>a)},N=async()=>{var i;v.value=!0,await $(),(i=y.value)==null||i.open("add")},S=async i=>{var a,_;v.value=!0,await $(),(a=y.value)==null||a.open("edit"),(_=y.value)==null||_.setFormData(i)},w=async i=>{await ae.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await me({id:i}),C()};return C(),(i,a)=>{const _=j,g=z,E=G,U=H,m=J,A=W,h=X,F=le,r=Y,V=Q,I=se("router-link"),L=Z,q=te,f=ue("perms"),M=ee;return n(),x("div",fe,[e(h,{class:"!border-none",shadow:"never"},{default:t(()=>[e(A,{ref:"formRef",class:"mb-[-16px]",model:o(u),inline:""},{default:t(()=>[e(g,{label:"\u5B57\u5178\u540D\u79F0"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:o(u).name,"onUpdate:modelValue":a[0]||(a[0]=l=>o(u).name=l),clearable:"",onKeyup:T(o(b),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u5B57\u5178\u7C7B\u578B"},{default:t(()=>[e(_,{class:"w-[280px]",modelValue:o(u).type,"onUpdate:modelValue":a[1]||(a[1]=l=>o(u).type=l),clearable:"",onKeyup:T(o(b),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"\u72B6\u6001"},{default:t(()=>[e(U,{class:"w-[280px]",modelValue:o(u).status,"onUpdate:modelValue":a[2]||(a[2]=l=>o(u).status=l)},{default:t(()=>[e(E,{label:"\u5168\u90E8",value:""}),e(E,{label:"\u6B63\u5E38",value:1}),e(E,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:t(()=>[e(m,{type:"primary",onClick:o(b)},{default:t(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:o(R)},{default:t(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(h,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[B("div",null,[p((n(),d(m,{type:"primary",onClick:N},{icon:t(()=>[e(F,{name:"el-icon-Plus"})]),default:t(()=>[s(" \u65B0\u589E ")]),_:1})),[[f,["setting.dict.dict_type/add"]]]),p((n(),d(m,{disabled:!o(k).length,type:"danger",onClick:a[3]||(a[3]=l=>w(o(k)))},{icon:t(()=>[e(F,{name:"el-icon-Delete"})]),default:t(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[f,["setting.dict.dict_type/delete"]]])]),p((n(),x("div",ye,[B("div",null,[e(L,{data:o(c).lists,size:"large",onSelectionChange:K},{default:t(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"ID",prop:"id"}),e(r,{label:"\u5B57\u5178\u540D\u79F0",prop:"name","min-width":"120"}),e(r,{label:"\u5B57\u5178\u7C7B\u578B",prop:"type","min-width":"120"}),e(r,{label:"\u72B6\u6001"},{default:t(({row:l})=>[l.status==1?(n(),d(V,{key:0},{default:t(()=>[s("\u6B63\u5E38")]),_:1})):(n(),d(V,{key:1,type:"danger"},{default:t(()=>[s("\u505C\u7528")]),_:1}))]),_:1}),e(r,{label:"\u5907\u6CE8",prop:"remark","show-tooltip-when-overflow":""}),e(r,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"}),e(r,{label:"\u64CD\u4F5C",width:"190",fixed:"right"},{default:t(({row:l})=>[p((n(),d(m,{link:"",type:"primary",onClick:O=>S(l)},{default:t(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[f,["setting.dict.dict_type/edit"]]]),p((n(),d(m,{type:"primary",link:""},{default:t(()=>[e(I,{to:{path:o(oe)("setting.dict.dict_data/lists"),query:{id:l.id}}},{default:t(()=>[s(" \u6570\u636E\u7BA1\u7406 ")]),_:2},1032,["to"])]),_:2},1024)),[[f,["setting.dict.dict_data/lists"]]]),p((n(),d(m,{link:"",type:"danger",onClick:O=>w(l.id)},{default:t(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[f,["setting.dict.dict_type/delete"]]])]),_:1})]),_:1},8,["data"])]),B("div",ve,[e(q,{modelValue:o(c),"onUpdate:modelValue":a[4]||(a[4]=l=>re(c)?c.value=l:null),onChange:o(C)},null,8,["modelValue","onChange"])])])),[[M,o(c).loading]])]),_:1}),o(v)?(n(),d(_e,{key:0,ref_key:"editRef",ref:y,onSuccess:o(C),onClose:a[5]||(a[5]=l=>v.value=!1)},null,8,["onSuccess"])):de("",!0)])}}});export{lt as default};