suyuan/public/admin/assets/index.25626024.js

2 lines
3.0 KiB
JavaScript
Raw Normal View History

2024-01-03 11:38:29 +08:00
import{_ as B}from"./index.6286e930.js";import{G as b,H as v,C as V,B as x,D as w,I as R,w as k}from"./element-plus.5df6f736.js";import{r as c}from"./index.687d0718.js";import{d as y,_ as I,ae as N,o as _,c as A,T as o,K as t,a as u,L as G,J as T,R as n}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.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"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";function U(){return c.get({url:"/recharge.recharge/getConfig"})}function j(s){return c.post({url:"/recharge.recharge/setConfig",params:s})}const q=u("span",{class:"font-extrabold text-lg"},"\u5145\u503C\u8BBE\u7F6E",-1),H=n("\u5F00\u542F"),J=n("\u5173\u95ED"),K=u("div",{class:"form-tips"},"\u5173\u95ED\u6216\u5F00\u542F\u5145\u503C\u529F\u80FD\uFF0C\u5173\u95ED\u540E\u5C06\u4E0D\u663E\u793A\u5145\u503C\u5165\u53E3",-1),L=u("div",{class:"form-tips"}," \u6700\u4F4E\u5145\u503C\u91D1\u989D\u8981\u6C42\uFF0C\u4E0D\u586B\u6216\u586B0\u8868\u793A\u4E0D\u9650\u5236\u6700\u4F4E\u5145\u503C\u91D1\u989D ",-1),O=n("\u4FDD\u5B58"),Vt=y({__name:"index",setup(s){const e=I({status:1,min_amount:""}),i=async()=>{const l=await U();Object.assign(e,l)},d=async()=>{await j(e),i()};return i(),(l,r)=>{const m=b,f=v,p=V,E=x,g=w,C=R,D=k,F=B,h=N("perms");return _(),A("div",null,[o(C,{shadow:"never",class:"!border-none"},{header:t(()=>[q]),default:t(()=>[o(g,{model:e,"label-width":"120px"},{default:t(()=>[o(p,{label:"\u72B6\u6001"},{default:t(()=>[u("div",null,[o(f,{modelValue:e.status,"onUpdate:modelValue":r[0]||(r[0]=a=>e.status=a),class:"ml-4"},{default:t(()=>[o(m,{label:1},{default:t(()=>[H]),_:1}),o(m,{label:0},{default:t(()=>[J]),_:1})]),_:1},8,["modelValue"]),K])]),_:1}),o(p,{label:"\u6700\u4F4E\u5145\u503C\u91D1\u989D"},{default:t(()=>[u("div",null,[o(E,{modelValue:e.min_amount,"onUpdate:modelValue":r[1]||(r[1]=a=>e.min_amount=a),placeholder:"\u8BF7\u8F93\u5165\u6700\u4F4E\u5145\u503C\u91D1\u989D",clearable:""},null,8,["modelValue"]),L])]),_:1})]),_:1},8,["model"])]),_:1}),G((_(),T(F,null,{default:t(()=>[o(D,{type:"primary",onClick:d},{default:t(()=>[O]),_:1})]),_:1})),[[h,["recharge.recharge/setConfig"]]])])}}});export{Vt as default};