fuyuan-housekeeping-admin/public/admin/assets/index.21eb092f.js

2 lines
2.8 KiB
JavaScript

import{G as b,O as g,H as w,N as C,a0 as v}from"./element-plus.02c000b8.js";import{u as p,a as y,b as D}from"./unit-form.ad1e500f.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang.c2066be7.js";import{u as V}from"./usePaging.4e4902f8.js";import{g as u}from"./index.7e71cca7.js";import{d as B,o as d,O as c,P as s,a as n,X as t,u as e,Q as E,i as R,V as T}from"./@vue.ad3a2c51.js";import"./@vueuse.c2fd8b33.js";import"./@element-plus.4b8482d8.js";import"./lodash-es.61686ec6.js";import"./dayjs.c8b8967e.js";import"./axios.136fb7b6.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./memoize-one.4ee5c96d.js";import"./index.323c3889.js";import"./lodash.8effadcb.js";import"./vue-router.93f65f3b.js";import"./pinia.f0255b9b.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.3cb93b94.js";import"./color.0adfd97a.js";import"./clone.4b381e37.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.09754c1e.js";import"./vue-clipboard3.c5f2d3ed.js";import"./clipboard.42524a75.js";import"./echarts.234b3572.js";import"./zrender.8ee1a698.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0d5173e3.js";import"./vue3-eventbus.c7305b83.js";import"./mitt.d8e3ba72.js";const L={class:"w-[88px]"},N={class:"flex items-center"},P=T("\u5220\u9664"),A={class:"flex justify-end mt-4"},yt=B({__name:"index",setup(U){const{pager:o,getLists:i,resetPage:O,resetParams:$}=V({fetchFun:y}),_=async m=>{await u.confirm("\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F"),await D({id:m}),u.msgSuccess("\u64CD\u4F5C\u6210\u529F"),i()};return i(),(m,l)=>{const a=b,f=g,h=w,F=C,x=v;return d(),c(F,{shadow:"never",class:"!border-none"},{default:s(()=>[n("div",L,[t(p,{onRefresh:e(i),type:"primary",btnText:"\u6DFB\u52A0\u5355\u4F4D"},null,8,["onRefresh"])]),n("div",null,[E((d(),c(h,{ref:"tableRef",data:e(o).lists,style:{width:"100%"}},{default:s(()=>[t(a,{property:"name",label:"\u5355\u4F4D\u540D\u79F0","max-width":"414"}),t(a,{property:"sort",label:"\u6392\u5E8F","max-width":"414"}),t(a,{property:"createTime",label:"\u6DFB\u52A0\u65F6\u95F4","max-width":"414"}),t(a,{label:"\u64CD\u4F5C","max-width":"414",fixed:"right"},{default:s(r=>[n("div",N,[t(p,{id:r.row.id,type:"text",btnText:"\u7F16\u8F91",onRefresh:e(i)},null,8,["id","onRefresh"]),t(f,{class:"ml-4 mt-[1px]",type:"danger",underline:!1,onClick:j=>_(r.row.id)},{default:s(()=>[P]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"])),[[x,e(o).loading]])]),n("div",A,[t(k,{modelValue:e(o),"onUpdate:modelValue":l[0]||(l[0]=r=>R(o)?o.value=r:null),onChange:e(i)},null,8,["modelValue","onChange"])])]),_:1})}}});export{yt as default};