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

2 lines
4.7 KiB
JavaScript
Raw Normal View History

2024-11-21 17:27:37 +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.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.d12b3af4.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 t,L as a,u as o,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.76ce7aa3.js";import{u as ae}from"./usePaging.f8c888e4.js";import{u as le}from"./useDictOptions.1f11cf62.js";import{e as ie,a as se}from"./user_ship.a896fa64.js";import"./lodash.4e6d2a38.js";import{_ as ne}from"./edit.vue_vue_type_script_setup_true_name_userShipEdit_lang.21e38332.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.e03c2e5b.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.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:""}),F=D([]),x=l=>{F.value=l.map(({id:e})=>e)},{dictData:B}=le(""),{pager:m,getLists:v,resetParams:S,resetPage:b}=ae({fetchFun:se,params:f}),$=async()=>{var l;_.value=!0,await g(),(l=c.value)==null||l.open("add")},L=async l=>{var e,C;_.value=!0,await g(),(e=c.value)==null||e.open("edit"),(C=c.value)==null||C.setFormData(l)},h=async l=>{await G.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ie({id:l}),v()};return v(),(l,e)=>{const C=T,k=I,r=j,A=M,y=q,N=H,s=O,P=Q,R=z,w=X("perms"),U=Z;return n(),Y("div",null,[t(y,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[t(A,{class:"mb-[-16px]",model:o(f),inline:""},{default:a(()=>[t(k,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title"},{default:a(()=>[t(C,{class:"w-[280px]",modelValue:o(f).title,"onUpdate:modelValue":e[0]||(e[0]=i=>o(f).title=i),onKeydown:ee(o(b),["enter"]),onClear:o(b),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u540D\u79F0"},null,8,["modelValue","onKeydown","onClear"])]),_:1}),t(k,null,{default:a(()=>[t(r,{type:"primary",onClick:o(b)},{default:a(()=>e[4]||(e[4]=[u("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(r,{onClick:o(S)},{default:a(()=>e[5]||(e[5]=[u("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),d((n(),p(y,{class:"!border-none",shadow:"never"},{default:a(()=>[d((n(),p(r,{type:"primary",onClick:$},{icon:a(()=>[t(N,{name:"el-icon-Plus"})]),default:a(()=>[e[6]||(e[6]=u(" \u65B0\u589E "))]),_:1})),[[w,["user_ship.user_ship/add"]]]),d((n(),p(r,{disabled:!o(F).length,onClick:e[1]||(e[1]=i=>h(o(F)))},{default:a(()=>e[7]||(e[7]=[u(" \u5220\u9664 ")])),_:1},8,["disabled"])),[[w,["user_ship.user_ship/delete"]]]),E("div",re,[t(P,{data:o(m).lists,onSelectionChange:x},{default:a(()=>[t(s,{type:"selection",width:"55"}),t(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),t(s,{label:"\u4F1A\u5458\u540D\u79F0",prop:"title","show-overflow-tooltip":""}),t(s,{label:"\u6298\u6263",prop:"discount","show-overflow-tooltip":""}),t(s,{label:"\u5145\u503C\u91D1\u989D",prop:"limit","show-overflow-tooltip":""}),t(s,{label:"\u6392\u5E8F\u5012\u5E8F",prop:"sort","show-overflow-tooltip":""}),t(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:i})=>[d((n(),p(r,{type:"primary",link:"",onClick:K=>L(