2024-05-25 16:49:21 +08:00
|
|
|
import{C as O,D as Z,w as z,F as G,T as H,O as J,b as W,Q as X,R as Y}from"./element-plus.bccb9376.js";import{_ as ee}from"./index.vue_vue_type_script_setup_true_lang.120de7ce.js";import{f as te,b as oe}from"./index.6230d3f0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.8bb81951.js";import{a as ie,d as ne,e as re}from"./brand.b47a72e4.js";import{_ as se}from"./edit.vue_vue_type_script_setup_true_name_brandEdit_lang.54f9727f.js";import{_ as me}from"./detail.vue_vue_type_script_setup_true_name_brandEdit_lang.dc25584e.js";import{d as S,s as V,r as k,Z as pe,ap as ue,o as r,c as de,U as e,L as a,u as o,R as u,M as d,K as s,a as $,j as ce,Q as R,n as E}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"./lodash.466e9fe4.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.135ffdcb.js";import"./index.5030068c.js";import"./index.5c43b8ef.js";import"./index.516ac555.js";import"./vuedraggable.9f282753.js";import"./vue.e5198d72.js";import"./sortablejs.6fa237f8.js";const _e={class:"mt-4"},fe={class:"flex mt-4 justify-end"},Ce=S({name:"brandLists"}),xt=S({...Ce,setup(ve){const v=V(),F=V(),b=k(!1),g=k(!1),w=pe({name:"",py:"",number:"",data:"",more:"",pic:"",sort:""}),h=k([]),L=i=>{h.value=i.map(({id:t})=>t)},{dictData:y}=le(""),{pager:c,getLists:_,resetParams:P,resetPage:T}=ae({fetchFun:re,params:w}),I=async()=>{var i;b.value=!0,await E(),(i=v.value)==null||i.open("add")},N=async i=>{var t,m;b.value=!0,await E(),(t=v.value)==null||t.open("edit"),(m=v.value)==null||m.setFormData(i)},U=async i=>{var m,f;let t=await ie({id:i});g.value=!0,await E(),(m=F.value)==null||m.open("edit"),(f=F.value)==null||f.setFormData(t)},D=async i=>{await te.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ne({id:i}),_()};return _(),(i,t)=>{const m=O,f=Z,p=z,j=G,B=H,A=oe,n=J,Q=W,q=X,K=ee,C=ue("perms"),M=Y;return r(),de("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(j,{class:"mb-[-16px]",model:o(w),inline:""},{default:a(()=>[e(f,{label:"\u54C1\u724C\u540D\u79F0",prop:"name"},{default:a(()=>[e(m,{class:"w-[280px]",modelValue:o(w).name,"onUpdate:modelValue":t[0]||(t[0]=l=>o(w).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(f,null,{default:a(()=>[e(p,{type:"primary",onClick:o(T)},{default:a(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(p,{onClick:o(P)},{default:a(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((r(),s(B,{class:"!border-none",shadow:"never"},{default:a(()=>[d((r(),s(p,{type:"primary",onClick:I},{icon:a(()=>[e(A,
|