2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
import{_ as b}from"./index.25a763ba.js";import{P as B,Q as v,y as V,I as x,D as w,C as y,w as k}from"./element-plus.517d4382.js";import{r as c}from"./index.8b1962e9.js";import{d as R,a0 as I,ai as N,o as _,c as A,V as o,M as t,a as u,O,L as T,T as n}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.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:"text-lg font-extrabold"},"\u5145\u503C\u8BBE\u7F6E",-1),G=n("\u5F00\u542F"),L=n("\u5173\u95ED"),M=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),P=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),Q=n("\u4FDD\u5B58"),vt=R({__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=y,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(()=>[G]),_:1}),o(m,{label:0},{default:t(()=>[L]),_:1})]),_:1},8,["modelValue"]),M])]),_: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"]),P])]),_:1})]),_:1},8,["model"])]),_:1}),O((_(),T(F,null,{default:t(()=>[o(D,{type:"primary",onClick:d},{default:t(()=>[Q]),_:1})]),_:1})),[[h,["recharge.recharge/setConfig"]]])])}}});export{vt as default};
|