ERP-admin/build/admin/assets/index.1275bb9b.js

2 lines
5.0 KiB
JavaScript
Raw Normal View History

2024-05-25 15:55:50 +08:00
import{C as A,D as Q,w as q,F as K,T as M,O,b as Z,Q as z,R as G}from"./element-plus.bccb9376.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{f as J,b as W}from"./index.383cb31f.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.a4ceb670.js";import{_ as ee,a as te,b as oe}from"./edit.vue_vue_type_script_setup_true_name_labelEdit_lang.9d881e01.js";import"./lodash.466e9fe4.js";import{d as D,s as ae,r as w,Z as le,ap as ie,o as n,c as ne,U as e,L as t,u as o,R as s,M as u,K as m,a as y,j as re,Q as se,n as B}from"./@vue.18505fe0.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.a6528143.js";import"./@babel.16688d44.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./axios.4905d81f.js";import"./jspdf.54afd842.js";import"./fflate.fca59393.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.29b71fa4.js";import"./color.87d313dc.js";import"./clone.a63396d9.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"./vue-plugin-hiprint.a2d84e76.js";import"./jquery.c3f97e49.js";import"./jsbarcode.39151b53.js";import"./socket.io-client.0b5a7289.js";import"./engine.io-client.81030771.js";import"./engine.io-parser.c748e159.js";import"./@socket.io.77accf6a.js";import"./debug.b392f131.js";import"./socket.io-parser.b7256298.js";import"./html2canvas.0f5947bc.js";import"./canvg.a673c4b2.js";import"./core-js.97b94d69.js";import"./raf.407ad6ad.js";import"./performance-now.a710f6e4.js";import"./rgbcolor.20c71161.js";import"./svg-pathdata.eba17832.js";import"./stackblur-canvas.0fb5df18.js";import"./nprogress.3461658b.js";import"./vue-clipboard3.c63182fd.js";import"./clipboard.dd2c63d0.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.b20eef45.js";import"./index.5b44360d.js";import"./index.e6088f1a.js";import"./index.c600a185.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const me={class:"mt-4"},pe={class:"flex mt-4 justify-end"},ue=D({name:"labelLists"}),ht=D({...ue,setup(ce){const c=ae(),d=w(!1),_=le({label_name:"",logo:""}),C=w([]),F=i=>{C.value=i.map(({id:a})=>a)},{dictData:x}=Y(""),{pager:p,getLists:f,resetParams:V,resetPage:L}=X({fetchFun:oe,params:_}),$=async()=>{var i;d.value=!0,await B(),(i=c.value)==null||i.open("add")},R=async i=>{var a,b;d.value=!0,await B(),(a=c.value)==null||a.open("edit"),(b=c.value)==null||b.setFormData(i)},E=async i=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await te({id:i}),f()};return f(),(i,a)=>{const b=A,h=Q,r=q,P=K,k=M,T=W,g=O,N=Z,S=z,I=H,v=ie("perms"),U=G;return n(),ne("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(r,{type:"primary",onClick:o(L)},{default:t(()=>[s("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:o(V)},{default:t(()=>[s("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),u((n(),m(k,{class:"!border-none",shadow:"never"},{default:t(()=>[u((n(),m(r,{type:"primary",onClick:$},{icon:t(()=>[e(T,{name:"el-icon-Plus"})]),default:t(()=>[s(" \u65B0\u589E ")]),_:1})),[[v,["setting.label/add"]]]),u((n(),m(r,{disabled:!o(C).length,onClick:a[1]||(a[1]=l=>E(o(C)))},{default:t(()=>[s(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[v,["setting.label/delete"]]]),y("div",me,[e(S,{data:o(p).lists,onSelectionChange:F}