moreShopAdmin/dist/admin/assets/index.67e57d06.js

2 lines
4.5 KiB
JavaScript
Raw Permalink Normal View History

2024-11-11 11:30:56 +08:00
import{C as A,D as M,w as q,F as K,L as O,M as Q,b as Z,N as z,O as G}from"./element-plus.7e347b00.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{f as J,b as W}from"./index.fd76ab8a.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.dc8aa87e.js";import{_ as ee,a as te,b as oe}from"./edit.vue_vue_type_script_setup_true_name_labelEdit_lang.c8bec550.js";import"./lodash.4e6d2a38.js";import{d as D,s as ae,r as w,Z as le,ap as ne,o as i,c as ie,U as e,L as t,u as o,R as r,M as u,K as m,a as y,j as se,Q as re,n as B}from"./@vue.18505fe0.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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"./nprogress.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.f4b9a12a.js";import"./index.1071aff1.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.4f5760e6.js";import"./index.209f4c2d.js";import"./vuedraggable.c5026861.js";import"./vue.1715f83d.js";import"./sortablejs.c62bcaf8.js";const me={class:"mt-4"},pe={class:"flex mt-4 justify-end"},ue=D({name:"labelLists"}),nt=D({...ue,setup(de){const d=ae(),c=w(!1),_=le({label_name:"",logo:""}),C=w([]),F=n=>{C.value=n.map(({id:a})=>a)},{dictData:x}=Y(""),{pager:p,getLists:f,resetParams:V,resetPage:L}=X({fetchFun:oe,params:_}),$=async()=>{var n;c.value=!0,await B(),(n=d.value)==null||n.open("add")},N=async n=>{var a,b;c.value=!0,await B(),(a=d.value)==null||a.open("edit"),(b=d.value)==null||b.setFormData(n)},E=async n=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:n}),f()};return f(),(n,a)=>{const b=A,h=M,s=q,P=K,k=O,R=W,g=Q,S=Z,T=z,I=H,v=ne("perms"),U=G;return i(),ie("div",null,[e(k,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:o(_),inline:""},{default:t(()=>[e(h,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name"},{default:t(()=>[e(b,{class:"w-[280px]",modelValue:o(_).label_name,"onUpdate:modelValue":a[0]||(a[0]=l=>o(_).label_name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u5B57"},null,8,["modelValue"])]),_:1}),e(h,null,{default:t(()=>[e(s,{type:"primary",onClick:o(L)},{default:t(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(s,{onClick:o(V)},{default:t(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),u((i(),m(k,{class:"!border-none",shadow:"never"},{default:t(()=>[u((i(),m(s,{type:"primary",onClick:$},{icon:t(()=>[e(R,{name:"el-icon-Plus"})]),default:t(()=>[r(" \u65B0\u589E ")]),_:1})),[[v,["setting.label/add"]]]),u((i(),m(s,{disabled:!o(C).length,onClick:a[1]||(a[1]=l=>E(o(C)))},{default:t(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["setting.label/delete"]]]),y("div",me,[e(T,{data:o(p).lists,onSelectionChange:F},{default:t(()=>[e(g,{type:"selection",width:"55"}),e(g,{label:"\u6807\u7B7E\u540D\u5B57",prop:"label_name","show-overflow-tooltip":""}),e(g,{label:"logo(\u56FE\u7247)",prop:"logo"},{default:t(({row:l})=>[e(S,{style:{width:"50px",height:"50px"},src:l.logo,"preview-teleported":!0},null,8,["src"])]),_:1}),e(g,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[u((i(),m(s,{type:"primary",link:"",onClick:j=>N(l)},{default:t(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,