fuyuan-housekeeping-admin/public/admin/assets/index.9c1ebc58.js

2 lines
4.0 KiB
JavaScript

import{G as k,d as D,c as B,v as S,U as V,O as R,H as N,N as T}from"./element-plus.02c000b8.js";import{a as A,f as U,g as L}from"./category.073e29d9.js";import f from"./category-form.79e9f3f0.js";import{g as u}from"./index.7e71cca7.js";import{N as I}from"./@element-plus.4b8482d8.js";import{d as O,s as z,r as G,k as H,o as p,O as c,P as o,a as n,X as e,V as l,W as M,u as P,U as w}from"./@vue.ad3a2c51.js";import"./@vueuse.c2fd8b33.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"./picker.b1bf8617.js";import"./index.64ad789d.js";import"./index.vue_vue_type_script_setup_true_lang.c2066be7.js";import"./index.fdcd51b8.js";import"./index.vue_vue_type_script_setup_true_lang.d7c66029.js";import"./usePaging.4e4902f8.js";import"./vue3-video-play.1c009a73.js";import"./vuedraggable.a6caa5cc.js";import"./vue.edbf58b8.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 W={class:"w-[88px]"},X={class:"image-slot"},$=l("\u4E0D\u63A8\u8350"),j=l("\u63A8\u8350"),q={class:"flex items-center"},J=l(" \u5220\u9664 "),Pe=O({__name:"index",setup(K){const h=z(),m=G([]),r=async()=>{const i=await A("");m.value=i.lists,console.log("tableData",m.value)},g=async i=>{await u.confirm("\u786E\u8BA4\u5220\u9664\uFF1F\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),await U({id:i}),u.msgSuccess("\u64CD\u4F5C\u6210\u529F"),r()},y=async(i,d)=>{await L({isShow:i,id:d}),u.msgSuccess("\u64CD\u4F5C\u6210\u529F"),r()};return H(()=>{r()}),(i,d)=>{const a=k,C=D,v=B,b=S,_=V,F=R,x=N,E=T;return p(),c(E,{shadow:"never",class:"!border-none"},{default:o(()=>[n("div",W,[e(f,{onRefresh:r,type:"primary",btnText:"\u65B0\u589E\u5206\u7C7B"})]),n("div",null,[e(x,{ref_key:"tableRef",ref:h,data:m.value,size:"large","row-key":"id",indent:20,"tree-props":{children:"sons"}},{default:o(()=>[e(a,{label:"\u5206\u7C7B\u540D\u79F0","show-overflow-tooltip":"","min-width":"190"},{default:o(({row:t})=>[l(M(t.name),1)]),_:1}),e(a,{label:"\u5206\u7C7B\u56FE\u7247","min-width":"140"},{default:o(t=>[e(v,{style:{width:"40px",height:"40px"},src:t.row.image,"preview-src-list":[t.row.image],"hide-on-click-modal":!0,"preview-teleported":!0,fit:"cover"},{error:o(()=>[n("div",X,[e(C,null,{default:o(()=>[e(P(I))]),_:1})])]),_:2},1032,["src","preview-src-list"])]),_:1}),e(a,{property:"address",label:"\u72B6\u6001","min-width":"140"},{default:o(t=>[e(b,{modelValue:t.row.isShow,"onUpdate:modelValue":s=>t.row.isShow=s,"active-value":1,"inactive-value":0,onChange:s=>y(s,t.row.id)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(a,{property:"isRecommendName",label:"\u9996\u9875\u63A8\u8350","min-width":"157"},{default:o(t=>[t.row.isRecommend==0?(p(),c(_,{key:0,type:"info"},{default:o(()=>[$]),_:1})):w("",!0),t.row.isRecommend==1?(p(),c(_,{key:1,type:"success"},{default:o(()=>[j]),_:1})):w("",!0)]),_:1}),e(a,{property:"sort",label:"\u6392\u5E8F","min-width":"140"}),e(a,{property:"createTime",label:"\u6DFB\u52A0\u65F6\u95F4","min-width":"180"}),e(a,{label:"\u64CD\u4F5C","min-width":"182",fixed:"right"},{default:o(t=>[n("div",q,[e(f,{id:t.row.id,type:"text",btnText:"\u7F16\u8F91",onRefresh:r},null,8,["id"]),e(F,{class:"ml-4",type:"danger",underline:!1,onClick:s=>g(t.row.id)},{default:o(()=>[J]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"])])]),_:1})}}});export{Pe as default};