2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
import{a0 as D,L as V,b as A,w as L,M as N,I as P,N as T}from"./element-plus.0a93cab1.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import{u as j}from"./usePaging.d25ebf19.js";import{f as M}from"./index.0f49d1f2.js";import{d as R,e as $}from"./system_store_storage.f39e63c9.js";import"./lodash.a2abcd4b.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.4fdee8a4.js";import{d as E,s as q,r as _,a0 as O,am as U,o as s,c as W,P as d,u as p,M as l,O as a,a as f,W as t,T as u,S as g,j as z}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.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.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.8a685d3e.js";const G={class:"mt-4"},H={class:"flex mt-4 justify-end"},J=E({name:"systemStoreStorageLists"}),It=E({...J,setup(K){q(),_(!1);const h=O({store_id:"",admin_id:"",operating_id:"",status:"",type:1}),v=_([]),w=n=>{v.value=n.map(({id:i})=>i)},{pager:r,getLists:m,resetParams:Q,resetPage:X}=j({fetchFun:$,params:h}),y=async n=>{await M.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),R({id:n.id}).then(i=>{m()})};return m(),(n,i)=>{const o=V,C=A,c=D,b=L,B=N,k=I,S=P,F=U("perms"),x=T;return s(),W("div",null,[d((s(),l(S,{class:"!border-none",shadow:"never"},{default:a(()=>[f("div",G,[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(C,{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(),l(c,{key:0,type:"success"},{default:a(()=>[u("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),l(c,{key:1,type:"warning"},{default:a(()=>[u("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),l(c,{key:2,type:"danger"},{default:a(()=>[u("\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(),l(b,{key:0,type:"success",link:"",onClick:Y=>y(e)},{default:a(()=>[u(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[F,["system_store_storage.system_store_storage/edit"]]]):g("",!0)]),_:1})]),_:1},8,["data"])]),f("div",H,[t(k,{modelValue:p(r),"onUpdate:modelValue":i[0]||(i[0]=e=>z(r)?r.value=e:null),onChange:p(m)},null,8,["modelValue","onChange"])])]),_:1})),[[x,p(r).loading]])])}}});export{It as default};
|