moreShopAdmin/build/admin/assets/index.4a61c436.js

2 lines
5.2 KiB
JavaScript

import{C as j,D as M,w as q,F as K,L as O,M as Q,b as Z,N as z,O as G}from"./element-plus.1e96d4ee.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.272adef5.js";import{f as J,b as W}from"./index.8ad484bc.js";import{u as X}from"./usePaging.6a6670f9.js";import{u as Y}from"./useDictOptions.e14923a1.js";import{h as ee,d as oe}from"./system_store.4e5aabc8.js";import{d as D,s as te,r as C,Z as ae,ap as le,o as i,c as se,U as e,L as o,u as t,R as r,M as _,K as p,a as F,S as ne,j as ie,Q as re,n as k}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.d17ea5c2.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.fbc6a400.js";import"./@element-plus.edbd5a83.js";import"./dayjs.8ae0c638.js";import"./axios.2b8d80bd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./vue-router.101084e3.js";import"./pinia.a969beab.js";import"./css-color-function.b82a2ce7.js";import"./color.b905eb26.js";import"./clone.e1fb2883.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.495afef3.js";import"./vue-clipboard3.cb649e18.js";import"./clipboard.4592e390.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b0c09b66.js";import"./picker.eed5e871.js";import"./index.f7cd38f9.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.1d858e72.js";import"./index.a067caac.js";import"./vuedraggable.d1fd737a.js";import"./vue.feef8fd6.js";import"./sortablejs.c8f4cbb7.js";const me={class:"mt-4"},pe={class:"flex mt-4 justify-end"},de=D({name:"systemStoreLists"}),lo=D({...de,setup(ce){const f=te(),h=C(!1),u=ae({name:"",phone:"",is_show:""});C("\u5168\u90E8");const E=C([]),B=s=>{E.value=s.map(({id:a})=>a)},{dictData:V}=Y(""),{pager:d,getLists:v,resetParams:x,resetPage:S}=X({fetchFun:oe,params:u}),A=async()=>{var s;h.value=!0,await k(),(s=f.value)==null||s.open("add")},$=async s=>{var a,c;h.value=!0,await k(),(a=f.value)==null||a.open("edit"),(c=f.value)==null||c.getDetail(s)},b=async s=>{await J.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:s}),v()};return v(),(s,a)=>{const c=j,y=M,m=q,L=K,g=O,N=W,n=Q,P=Z,R=z,I=H,w=le("perms"),T=G;return i(),se("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(L,{class:"mb-[-16px]",model:t(u),inline:""},{default:o(()=>[e(y,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:t(u).name,"onUpdate:modelValue":a[0]||(a[0]=l=>t(u).name=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u624B\u673A\u53F7\u7801",prop:"phone"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:t(u).phone,"onUpdate:modelValue":a[1]||(a[1]=l=>t(u).phone=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(y,null,{default:o(()=>[e(m,{type:"primary",onClick:t(S)},{default:o(()=>[r("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:t(x)},{default:o(()=>[r("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((i(),p(m,{type:"primary",onClick:A},{icon:o(()=>[e(N,{name:"el-icon-Plus"})]),default:o(()=>[r(" \u65B0\u589E ")]),_:1})),[[w,["system_store.system_store/add"]]]),_((i(),p(m,{disabled:!t(E).length,onClick:a[2]||(a[2]=l=>b(t(E)))},{default:o(()=>[r(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[w,["system_store.system_store/delete"]]]),F("div",me,[e(R,{data:t(d).lists,onSelectionChange:B},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(n,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(n,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(n,{label:"\u8BE6\u7EC6\u5730\u5740",prop:"detailed_address","show-overflow-tooltip":""}),e(n,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:o(({row:l})=>[e(P,{src:l.image,class:"w-[50px] h-[50px]"},null,8,["src"])]),_:1}),e(n,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:o(({row:l})=>[r(ne(l.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(n,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:l})=>[_((i(),p(m,{type:"primary",link:"",onClick:U=>$(l)},{default:o(()=>[r(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["system_store.system_store/edit"]]]),_((i(),p(m,{type:"danger",link:"",onClick:U=>b(l.id)},{default:o(()=>[r(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system_store.system_store/delete"]]])]),_:1})]),_:1},8,["data"])]),F("div",pe,[e(I,{modelValue:t(d),"onUpdate:modelValue":a[3]||(a[3]=l=>ie(d)?d.value=l:null),onChange:t(v)},null,8,["modelValue","onChange"])])]),_:1})),[[T,t(d).loading]]),t(h)?(i(),p(ue,{key:0,ref_key:"editRef",ref:f,"dict-data":t(V),onSuccess:t(v),onClose:a[4]||(a[4]=l=>h.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{lo as default};