2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{C as M,D as q,w as K,F as O,L as Q,M as Z,b as z,N as G,O as H}from"./element-plus.78e68aed.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.3c4454b7.js";import{f as W,b as X}from"./index.bbf57713.js";import{u as Y}from"./usePaging.6a6670f9.js";import{u as ee}from"./useDictOptions.6344d4d1.js";import{m as oe,a as te}from"./system_store.e0560729.js";import{d as B,s as ae,r as b,Z as le,ap as se,o as r,c as ne,U as e,L as o,u as a,R as i,M as _,K as p,a as k,S as C,j as ie,Q as re,n as D}from"./@vue.18505fe0.js";import"./lodash.60201f64.js";import{_ as ue}from"./edit.vue_vue_type_script_setup_true_name_systemStoreEdit_lang.452f6657.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.3c12c707.js";import"./index.e34f1810.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import"./index.5e7eca1c.js";import"./index.64ffcf84.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=B({name:"systemStoreLists"}),lo=B({...de,setup(ce){const f=ae(),w=b(!1),u=le({name:"",phone:"",is_show:""});b("\u5168\u90E8");const E=b([]),V=n=>{E.value=n.map(({id:l})=>l)},{dictData:x}=ee(""),{pager:d,getLists:v,resetParams:S,resetPage:A}=Y({fetchFun:te,params:u}),$=async()=>{var n;w.value=!0,await D(),(n=f.value)==null||n.open("add")},L=async n=>{var l,c;w.value=!0,await D(),(l=f.value)==null||l.open("edit"),(c=f.value)==null||c.getDetail(n)},F=async n=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await oe({id:n}),v()};return v(),(n,l)=>{const c=M,y=q,m=K,N=O,g=Q,P=X,s=Z,R=z,I=G,T=J,h=se("perms"),U=H;return r(),ne("div",null,[e(g,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(N,{class:"mb-[-16px]",model:a(u),inline:""},{default:o(()=>[e(y,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name"},{default:o(()=>[e(c,{class:"w-[280px]",modelValue:a(u).name,"onUpdate:modelValue":l[0]||(l[0]=t=>a(u).name=t),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:a(u).phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a(u).phone=t),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null,8,["modelValue"])]),_:1}),e(y,null,{default:o(()=>[e(m,{type:"primary",onClick:a(A)},{default:o(()=>[i("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(m,{onClick:a(S)},{default:o(()=>[i("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((r(),p(g,{class:"!border-none",shadow:"never"},{default:o(()=>[_((r(),p(m,{type:"primary",onClick:$},{icon:o(()=>[e(P,{name:"el-icon-Plus"})]),default:o(()=>[i(" \u65B0\u589E ")]),_:1})),[[h,["system_store.system_store/add"]]]),_((r(),p(m,{disabled:!a(E).length,onClick:l[2]||(l[2]=t=>F(a(E)))},{default:o(()=>[i(" \u5220\u9664 ")]),_:1},8,["disabled"])),[[h,["system_store.system_store/delete"]]]),k("div",me,[e(I,{data:a(d).lists,onSelectionChange:V},{default:o(()=>[e(s,{type:"selection",width:"55"}),e(s,{label:"ID",prop:"id","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97logo",prop:"image","show-overflow-tooltip":""},{default:o(({row:t})=>[e(R,{src:t.image,class:"w-[50px] h-[50px]"},null,8,["src"])]),_:1}),e(s,{label:"\u8D1F\u8D23\u4EBA",prop:"staff_name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u540D\u79F0",prop:"name","show-overflow-tooltip":""}),e(s,{label:"\u95E8\u5E97\u5730\u5740",prop:"detailed_address","show-overflow-tooltip":""}),e(s,{label:"\u624B\u673A\u53F7\u7801",prop:"phone","show-overflow-tooltip":""}),e(s,{label:"\u8425\u4E1A\u65F6\u95F4","show-overflow-tooltip":""},{default:o(({row:t})=>[i(C(t.day_start)+" - "+C(t.day_end),1)]),_:1}),e(s,{label:"\u8425\u4E1A\u72B6\u6001",prop:"is_show","show-overflow-tooltip":""},{default:o(({row:t})=>[i(C(t.is_show?"\u8425\u4E1A":"\u6253\u70CA"),1)]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:o(({row:t})=>[_((r(),p(m,{type:"primary",link:"",onClick:j=>L(t)},{default:o(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["system_store.system_store/edit"]]]),_((r(),p(m,{type:"danger",link:"",onClick:j=>F(t.id)},{default:o(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["system_store.system_store/delete"]]])]),_:1})]),_:1},8,["data"])]),k("div",pe,[e(T,{modelValue:a(d),"onUpdate:modelValue":l[3]||(l[3]=t=>ie(d)?d.value=t:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})),[[U,a(d).loading]]),a(w)?(r(),p(ue,{key:0,ref_key:"editRef",ref:f,"dict-data":a(x),onSuccess:a(v),onClose:l[4]||(l[4]=t=>w.value=!1)},null,8,["dict-data","onSuccess"])):re("",!0)])}}});export{lo as default};
|