moreShopAdmin/build/admin/assets/index.6574215a.js

2 lines
4.6 KiB
JavaScript
Raw Normal View History

2024-11-11 15:33:52 +08:00
import{C as T,D as I,w as j,F as M,L as q,M as O,N as Q,O as Z}from"./element-plus.7e347b00.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.af250dfd.js";import{f as G,b as H}from"./index.63c36c8b.js";import{d as V,s as J,r as D,Z as W,ap as X,o as n,c as Y,U as e,L as o,u as t,aa as ee,R as u,M as d,K as p,a as E,j as te,Q as oe,n as g}from"./@vue.18505fe0.js";import{u as ae}from"./usePaging.6a6670f9.js";import{u as le}from"./useDictOptions.0b573b67.js";import{e as ie,a as se}from"./user_ship.e5c76a4c.js";import"./lodash.4e6d2a38.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_userShipEdit_lang.8d84d08a.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"./index.0a27432a.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";const re={class:"mt-4"},ue={class:"flex mt-4 justify-end"},pe=V({name:"userShipLists"}),Ye=V({...pe,setup(me){const c=J(),_=D(!1),f=W({title:""}),w=D([]),x=l=>{w.value=l.map(({id:a})=>a)},{dictData:B}=le(""),{pager:m,getLists:h,resetParams:S,resetPage:F}=ae({fetchFun:se,params:f}),$=async()=>{var l;_.value=!0,await g(),(l=c.value)==null||l.open("add")},L=async l=>{var a,v;_.value=!0,await g(),(a=c.value)==null||a.open("edit"),(v=c.value)==null||v.setFormData(l)},b=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:l}),h()};return h(),(l,a)=>{const v=T,k=I,r=j,A=M,y=q,N=H,s=O,P=Q,R=z,C=X("perms"),U=Z;return n(),Y("div",null,[e(y,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(A,{class:"mb-[-16px]",model:t(f),inline:""},{default:o(()=>[e(k,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:t(f).title,"onUpdate:modelValue":a[0]||(a[0]=i=>t(f).title=i),onKeydown:ee(t(F),["enter"]),onClear:t(F),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u540D\u79F0"},null,8,["modelValue","onKeydown","onClear"])]),_:1}),e(k,null,{default:o(()=>[e(r,{type:"primary",onClick:t(F)},{default:o(()=>[u("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(r,{onClick:t(S)},{default:o(()=>[u("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(y,{class:"!border-none",shadow:"never"},{default:o(()=>[d((n(),p(r,{type:"primary",onClick:$},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[u(" \u65B0\u589E ")]),_:1})),[[C,["user_ship.user_ship/add"]]]),d((n(),p(r,{disabled:!t(w).length,onClick:a[1]||(a[1]=i=>b(t(w)))},{default:o(()=>[u(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[C,["user_ship.user_ship/delete"]]]),E("div",re,[e(P,{data:t(m).lists,onSelectionChange:x},{default:o(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),e(s,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),e(s,{label:"\u5145\u503C\u91D1\u989D",prop:"limit","show-overflow-tooltip":""}),e(s,{label:"\u6392\u5E8F\u5012\u5E8F",prop:"sort","show-overflow-tooltip":""}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:i})=>[d((n(),p(r,{type:"primary",link:"",onClick:K=>L(i)},{default:o(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,