2024-06-19 19:09:53 +08:00
|
|
|
import{_ as F,L as V,b as A,w as L,M as N,I as P,N as T}from"./element-plus.9175fe58.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import{u as j}from"./usePaging.d25ebf19.js";import"./index.026c5631.js";import{d as M,e as R}from"./system_store_storage.8dc8c1c4.js";import"./lodash.6c5d06b3.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.acfc33d2.js";import{d as h,s as $,r as c,a0 as q,am as O,o as s,c as U,P as d,u as p,M as i,O as a,a as f,W as t,T as m,S as g,j as W}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.2c1fd077.js";const z={class:"mt-4"},G={class:"flex mt-4 justify-end"},H=h({name:"systemStoreStorageLists"}),Tt=h({...H,setup(J){$(),c(!1);const E=q({store_id:"",admin_id:"",operating_id:"",status:""}),v=c([]),w=n=>{v.value=n.map(({id:l})=>l)},{pager:r,getLists:u,resetParams:K,resetPage:Q}=j({fetchFun:R,params:E}),C=async n=>{M({id:n.id}).then(l=>{u()})};return u(),(n,l)=>{const o=V,y=A,_=F,b=L,B=N,k=I,S=P,x=O("perms"),D=T;return s(),U("div",null,[d((s(),i(S,{class:"!border-none",shadow:"never"},{default:a(()=>[f("div",z,[t(B,{data:p(r).lists,onSelectionChange:w},{default:a(()=>[t(o,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),t(o,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(o,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(o,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:a(({row:e})=>[t(y,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(o,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),t(o,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(o,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:a(({row:e})=>[e.status===1?(s(),i(_,{key:0,type:"success"},{default:a(()=>[m("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(_,{key:1,type:"warning"},{default:a(()=>[m("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(_,{key:2,type:"danger"},{default:a(()=>[m("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):g("",!0)]),_:1}),t(o,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:e})=>[e.status==0?d((s(),i(b,{key:0,type:"success",link:"",onClick:X=>C(e)},{default:a(()=>[m(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[x,["system_store_storage.system_store_storage/edit"]]]):g("",!0)]),_:1})]),_:1},8,["data"])]),f("div",G,[t(k,{modelValue:p(r),"onUpdate:modelValue":l[0]||(l[0]=e=>W(r)?r.value=e:null),onChange:p(u)},null,8,["modelValue","onChange"])])]),_:1})),[[D,p(r).loading]])])}}});export{Tt as default};
|