moreShopAdmin/build/admin/assets/index.c16c7238.js

2 lines
4.4 KiB
JavaScript
Raw Normal View History

2024-11-15 16:58:18 +08:00
import{C as j,D as A,w as M,F as q,L as K,M as O,N as Q,O as Z}from"./element-plus.91c68cc0.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import{f as G,b as H}from"./index.45e3c1f0.js";import{u as J}from"./usePaging.f8c888e4.js";import{u as W}from"./useDictOptions.55a5f7ca.js";import{e as X,a as Y}from"./user_label.70887717.js";import"./lodash.4e6d2a38.js";import{_ as ee}from"./edit.vue_vue_type_script_setup_true_name_userLabelEdit_lang.d12579af.js";import{d as B,s as te,r as w,Z as oe,ap as ae,o as s,c as le,U as t,L as o,u as a,R as r,M as p,K as m,a as D,j as ne,Q as se,n as y}from"./@vue.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.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.10bd5b90.js";import"./pinia.f3529286.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.8d65305c.js";import"./index.b0600572.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";const ie={class:"mt-4"},re={class:"flex mt-4 justify-end"},me=B({name:"userLabelLists"}),Xe=B({...me,setup(ue){const d=te(),_=w(!1),c=oe({label_name:""}),k=w([]),V=l=>{k.value=l.map(({label_id:e})=>e)},{dictData:x}=W(""),{pager:u,getLists:f,resetParams:L,resetPage:$}=J({fetchFun:Y,params:c}),h=async()=>{var l;_.value=!0,await y(),(l=d.value)==null||l.open("add")},N=async l=>{var e,b;_.value=!0,await y(),(e=d.value)==null||e.open("edit"),(b=d.value)==null||b.setFormData(l)},E=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await X({label_id:l}),f()};return f(),(l,e)=>{const b=j,F=A,i=M,P=q,g=K,R=H,v=O,U=Q,S=z,C=ae("perms"),T=Z;return s(),le("div",null,[t(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(P,{class:"mb-[-16px]",model:a(c),inline:""},{default:o(()=>[t(F,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name"},{default:o(()=>[t(b,{class:"w-[280px]",modelValue:a(c).label_name,"onUpdate:modelValue":e[0]||(e[0]=n=>a(c).label_name=n),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(F,null,{default:o(()=>[t(i,{type:"primary",onClick:a($)},{default:o(()=>e[4]||(e[4]=[r("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(i,{onClick:a(L)},{default:o(()=>e[5]||(e[5]=[r("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),p((s(),m(g,{class:"!border-none",shadow:"never"},{default:o(()=>[p((s(),m(i,{type:"primary",onClick:h},{icon:o(()=>[t(R,{name:"el-icon-Plus"})]),default:o(()=>[e[6]||(e[6]=r(" \u65B0\u589E "))]),_:1})),[[C,["user_label.user_label/add"]]]),p((s(),m(i,{disabled:!a(k).length,onClick:e[1]||(e[1]=n=>E(a(k)))},{default:o(()=>e[7]||(e[7]=[r(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[C,["user_label.user_label/delete"]]]),D("div",ie,[t(U,{data:a(u).lists,onSelectionChange:V},{default:o(()=>[t(v,{type:"selection",width:"55"}),t(v,{label:"ID",prop:"label_id",width:"100"}),t(v,{label:"\u6807\u7B7E\u540D\u79F0",prop:"label_name","show-overflow-tooltip":""}),t(v,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:n})=>[p((s(),m(i,{type:"primary",link:"",onClick:I=>N(n)},{default:o(()=>e[8]||(e[8]=[r(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[C,["user_label.user_label/edit"]]]),p((s(),m(i,{type:"danger",link:"",onClick:I=>E(n.label_id)},{default:o(()=>e[9]||(e[9]=[r(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[C,["user_label