code-origin/server/public/admin/assets/index.037c934e.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2023-11-08 17:59:25 +08:00
import{_ as T}from"./index.1cf7e9ba.js";import{r as F,b as L,d as N}from"./index.ffa405f0.js";import{G as R,H as $,C as z,D as G,I as M,w as q,B as H,L as K,M as j}from"./element-plus.317dd699.js";import{d as C,$ as J,e as O,af as P,o as c,c as p,U as t,L as e,M as v,K as E,a as s,V as Q,a7 as W,u as X,S as u,T as Y,b7 as Z,b6 as tt}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./lodash.873faf2b.js";import"./axios.3af9fe4b.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.1a2c9cae.js";import"./color.3050aad5.js";import"./clone.3b081931.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.21f7a9fd.js";import"./ms.a9ae1d6d.js";import"./@element-plus.196c7323.js";import"./nprogress.fd69c5bf.js";import"./vue-clipboard3.9796a14d.js";import"./clipboard.2bdac801.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./lodash-es.29c53eac.js";import"./dayjs.f7363e4f.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";function et(){return F.get({url:"/setting.hot_search/getConfig"})}function ot(r){return F.post({url:"/setting.hot_search/setConfig",params:r})}const _=r=>(Z("data-v-1f7b34ef"),r=r(),tt(),r),st={class:"hot-search"},at=u("\u5F00\u542F"),nt=u("\u5173\u95ED"),lt=_(()=>s("div",{class:"form-tips"},"\u9ED8\u8BA4\u5F00\u542F\uFF0C\u5173\u95ED\u5219\u524D\u7AEF\u4E0D\u663E\u793A\u8BE5\u529F\u80FD",-1)),rt={class:"lg:flex"},it={class:"flex-1 min-w-0"},ct=u("\u6DFB\u52A0"),ut=u(" \u5220\u9664 "),_t={class:"hot-search-phone mt-4 lg:mt-0 lg:ml-4 flex-none"},dt=_(()=>s("div",{class:"mb-4 text-center"},"- \u70ED\u641C\u9884\u89C8\u56FE -",-1)),mt={class:"hot-search-phone-content"},pt={class:"search-com"},ht={class:"search-con flex items-center px-[15px]"},ft=_(()=>s("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1)),bt=_(()=>s("div",{class:"hot-search-title"},"\u70ED\u95E8\u641C\u7D22",-1)),gt={class:"hot-search-text"},Dt=u("\u4FDD\u5B58"),vt=C({name:"search"}),Et=C({...vt,setup(r){const n=J({status:1,data:[]}),x=O(()=>n.data.filter(o=>o.name).sort((o,l)=>l.sort-o.sort)),h=async()=>{try{const o=await et();for(const l in n)n[l]=o[l]}catch(o){console.log("\u83B7\u53D6=>",o)}},B=()=>{n.data.push({name:"",sort:0})},y=o=>{n.data.splice(o,1)},V=async()=>{try{await ot(n),h()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return h(),(o,l)=>{const f=R,w=$,k=z,S=G,b=M,d=q,g=H,m=K,I=j,U=L,A=T,D=P("perms");return c(),p("div",st,[t(b,{class:"!border-none",shadow:"never"},{default:e(()=>[t(S,{ref:"formRef",model:n,"label-width":"100px"},{default:e(()=>[t(k,{label:"\u529F\u80FD\u72B6\u6001",style:{"margin-bottom":"0"}},{default:e(()=>[s("div",null,[t(w,{modelValue:n.status,"onUpdate:modelValue":l[0]||(l[0]=a=>n.status=a)},{default:e(()=>[t(f,{label:1},{default:e(()=>[at]),_:1}),t(f,{label:0},{default:e(()=>[nt]),_:1})]),_:1},8,["modelValue"]),lt])]),_:1})]),_:1},8,["model"])]),_:1}),t(b,{class:"!border-none mt-4",shadow:"never"},{default:e(()=>[s("div",rt,[s("div",it,[t(d,{type:"primary",class:"mb-4",onClick:B},{default:e(()=>[ct]),_:1}),t(I,{size:"large",data:n.data},{default:e(()=>[t(m,{label:"\u5173\u952E\u8BCD",prop:"describe","min-width":"160"},{default:e(({row:a})=>[t(g,{modelValue:a.name,"onUpdate:modelValue":i=>a.name=i,clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57","show-word-limit":"",maxlength:"30"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(m,{label:"\u6392\u5E8F",prop:"describe","min-width":"160"},{default:e(({row:a})=>[t(g,{modelValue:a.sort,"onUpdate:modelValue":i=>a.sort=i,type:"number"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(m,{label:"\u64CD\u4F5C","min-width":"80",fixed:"right"},{default:e(({$index:a})=>[v((c(),E(d,{type:"danger"