WokerTask/public/admin/assets/index.3717a0b3.js

2 lines
5.8 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{T as H,a6 as G,M as J,N as W,C as X,B as Y,w as Z,D as ee,I as te,O as ae,P as oe,Q as le}from"./element-plus.9816852d.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.f99137a4.js";import{f as se,b as ie}from"./index.4eaf9bd5.js";import{u as ue}from"./vue-router.9f65afb1.js";import{d as L,r as T,s as de,$ as P,af as re,o as s,c as w,U as e,L as a,u as o,T as me,a7 as pe,K as d,a8 as ce,R as r,a as D,M as v,k as _e,Q as fe,n as R}from"./@vue.51d7f2d8.js";import{e as ye,f as ve,d as ge}from"./dict.041d2017.js";import{u as be}from"./usePaging.2ad8e1e6.js";import{_ as Ce}from"./edit.vue_vue_type_script_setup_true_lang.04cf5506.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.js";import"./ms.a9ae1d6d.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.2d3a3dd9.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";const Ee={class:"dict-type"},ke={class:"mt-4"},we={class:"flex justify-end mt-4"},De=L({name:"dictData"}),ct=L({...De,setup(he){const{query:N}=ue(),g=T(!1),_=de(),i=P({type:"",type_id:Number(N.id),name:"",status:""}),E=P({dict_type:[]}),{pager:f,getLists:y,resetPage:h,resetParams:S}=be({fetchFun:ge,params:i}),k=T([]),U=n=>{k.value=n.map(({id:t})=>t)},A=async()=>{var t,m;g.value=!0,await R();const n=E.dict_type.find(p=>p.id==i.type_id);(t=_.value)==null||t.setFormData({type_value:n==null?void 0:n.type,type_id:n.id}),(m=_.value)==null||m.open("add")},I=async n=>{var t,m;g.value=!0,await R(),(t=_.value)==null||t.open("edit"),(m=_.value)==null||m.setFormData(n)},F=async n=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ye({id:n}),y()},K=async()=>{const n=await ve({page_type:0});E.dict_type=n.lists};return y(),K(),(n,t)=>{const m=H,p=J,B=W,b=X,q=Y,c=Z,M=ee,V=te,x=ie,u=ae,$=G,O=oe,Q=ne,C=re("perms"),j=le;return s(),w("div",Ee,[e(V,{class:"!border-none",shadow:"never"},{default:a(()=>[e(m,{class:"mb-4",content:"\u6570\u636E\u7BA1\u7406",onBack:t[0]||(t[0]=l=>n.$router.back())}),e(M,{ref:"formRef",class:"mb-[-16px]",model:o(i),inline:""},{default:a(()=>[e(b,{label:"\u5B57\u5178\u540D\u79F0"},{default:a(()=>[e(B,{class:"w-[280px]",modelValue:o(i).type_id,"onUpdate:modelValue":t[1]||(t[1]=l=>o(i).type_id=l),onChange:o(y)},{default:a(()=>[(s(!0),w(me,null,pe(o(E).dict_type,l=>(s(),d(p,{label:l.name,value:l.id,key:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),e(b,{label:"\u6570\u636E\u540D\u79F0"},{default:a(()=>[e(q,{class:"w-[280px]",modelValue:o(i).name,"onUpdate:modelValue":t[2]||(t[2]=l=>o(i).name=l),clearable:"",onKeyup:ce(o(h),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(b,{label:"\u6570\u636E\u72B6\u6001"},{default:a(()=>[e(B,{class:"w-[280px]",modelValue:o(i).status,"onUpdate:modelValue":t[3]||(t[3]=l=>o(i).status=l)},{default:a(()=>[e(p,{label:"\u5168\u90E8",value:""}),e(p,{label:"\u6B63\u5E38",value:1}),e(p,{label:"\u505C\u7528",value:0})]),_:1},8,["modelValue"])]),_:1}),e(b,null,{default:a(()=>[e(c,{type:"primary",onClick:o(h)},{default:a(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(c,{onClick:o(S)},{default:a(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(V,{class:"!border-none mt-4",shadow:"ne