index-1b1ff043.js 2.3 KB

1
  1. import{d as M,z as O,r as d,x as T,Q as q,o as r,c as z,i as t,w as e,B as o,j as s,m as _,a as g,F as A,_ as D,q as F,I as B,J,K}from"./index-6d906b8a.js";import{_ as N}from"./DictTag.vue_vue_type_script_lang-afe43767.js";import{_ as P}from"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import{_ as Q,g as R,d as U}from"./SignInConfigForm.vue_vue_type_script_setup_true_lang-6d547f99.js";import{D as W}from"./dict-1d5b7a74.js";import{u as E}from"./useMessage-cb0d0c75.js";import"./color-6e929987.js";import"./el-card-dcb0121c.js";import"./Dialog-7d76582a.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./el-text-7d7615f3.js";import"./constants-e43f22dd.js";const G=M({name:"SignInConfig",__name:"index",setup(H){const y=E(),{t:x}=O(),p=d(!0),w=d([]),c=async()=>{p.value=!0;try{const i=await R();w.value=i}finally{p.value=!1}},k=d(),C=(i,a)=>{k.value.open(i,a)};return T(()=>{c()}),(i,a)=>{const S=D,u=F,b=P,l=B,h=N,j=J,m=q("hasPermi"),I=K;return r(),z(A,null,[t(b,null,{default:e(()=>[o((r(),s(u,{type:"primary",plain:"",onClick:a[0]||(a[0]=n=>C("create"))},{default:e(()=>[t(S,{icon:"ep:plus",class:"mr-5px"}),a[1]||(a[1]=_(" \u65B0\u589E "))]),_:1})),[[m,["point:sign-in-config:create"]]])]),_:1}),t(b,null,{default:e(()=>[o((r(),s(j,{data:g(w)},{default:e(()=>[t(l,{label:"\u7B7E\u5230\u5929\u6570",align:"center",prop:"day",formatter:(n,v,f)=>["\u7B2C",f,"\u5929"].join(" ")},null,8,["formatter"]),t(l,{label:"\u5956\u52B1\u4F63\u91D1",align:"center",prop:"point"}),t(l,{label:"\u5956\u52B1\u7ECF\u9A8C",align:"center",prop:"experience"}),t(l,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:e(n=>[t(h,{type:g(W).COMMON_STATUS,value:n.row.status},null,8,["type","value"])]),_:1}),t(l,{label:"\u64CD\u4F5C",align:"center"},{default:e(n=>[o((r(),s(u,{link:"",type:"primary",onClick:v=>C("update",n.row.id)},{default:e(()=>a[2]||(a[2]=[_(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[m,["point:sign-in-config:update"]]]),o((r(),s(u,{link:"",type:"danger",onClick:v=>(async f=>{try{await y.delConfirm(),await U(f),y.success(x("common.delSuccess")),await c()}catch{}})(n.row.id)},{default:e(()=>a[3]||(a[3]=[_(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[m,["point:sign-in-config:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,g(p)]])]),_:1}),t(Q,{ref_key:"formRef",ref:k,onSuccess:c},null,512)],64)}}});export{G as default};