multiStoreAdmin/build/store/assets/index.bb148b08.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2024-06-19 18:46:09 +08:00
import{_ as N}from"./index.189d8be3.js";import{r as C,b as R,d as z}from"./index.669f9987.js";import{G,H as L,D as M,F as $,I as j,w as q,C as H,L as O,M as P}from"./element-plus.9175fe58.js";import{d as x,a0 as W,b as J,am as K,o as i,c as h,W as t,O as e,u as c,a,T as d,P as E,M as F,V as Q,a7 as X,U as Y,bk as Z,bj as tt}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./lodash.6c5d06b3.js";import"./axios.13991fdc.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./@element-plus.12c58ce2.js";import"./nprogress.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";function et(){return C.get({url:"/setting.hot_search/getConfig"})}function ot(r){return C.post({url:"/setting.hot_search/setConfig",params:r})}const m=r=>(Z("data-v-bd261930"),r=r(),tt(),r),at={class:"hot-search"},st=m(()=>a("div",{class:"form-tips"},"\u9ED8\u8BA4\u5F00\u542F\uFF0C\u5173\u95ED\u5219\u524D\u7AEF\u4E0D\u663E\u793A\u8BE5\u529F\u80FD",-1)),nt={class:"lg:flex"},lt={class:"flex-1 min-w-0"},rt={class:"hot-search-phone mt-4 lg:mt-0 lg:ml-4 flex-none"},ut=m(()=>a("div",{class:"mb-4 text-center"},"- \u70ED\u641C\u9884\u89C8\u56FE -",-1)),it={class:"hot-search-phone-content"},ct={class:"search-com"},dt={class:"search-con flex items-center px-[15px]"},mt=m(()=>a("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1)),_t=m(()=>a("div",{class:"hot-search-title"},"\u70ED\u95E8\u641C\u7D22",-1)),pt={class:"hot-search-text"},ht=x({name:"search"}),ft=x({...ht,setup(r){const n=W({status:1,data:[]}),B=J(()=>n.data.filter(o=>o.name).sort((o,l)=>l.sort-o.sort)),f=async()=>{try{const o=await et();for(const l in n)n[l]=o[l]}catch(o){console.log("\u83B7\u53D6=>",o)}},y=()=>{n.data.push({name:"",sort:0})},V=o=>{n.data.splice(o,1)},w=async()=>{try{await ot(n),f()}catch(o){console.log("\u4FDD\u5B58=>",o)}};return f(),(o,l)=>{const b=G,k=L,S=M,I=$,g=j,_=q,D=H,p=O,U=P,A=R,T=N,v=K("perms");return i(),h("div",at,[t(g,{class:"!border-none",shadow:"never"},{default:e(()=>[t(I,{ref:"formRef",model:c(n),"label-width":"100px"},{default:e(()=>[t(S,{label:"\u529F\u80FD\u72B6\u6001",style:{"margin-bottom":"0"}},{default:e(()=>[a("div",null,[t(k,{modelValue:c(n).status,"onUpdate:modelValue":l[0]||(l[0]=s=>c(n).status=s)},{default:e(()=>[t(b,{label:1},{default:e(()=>[d("\u5F00\u542F")]),_:1}),t(b,{label:0},{default:e(()=>[d("\u5173\u95ED")]),_:1})]),_:1},8,["modelValue"]),st])]),_:1})]),_:1},8,["model"])]),_:1}),t(g,{class:"!border-none mt-4",shadow:"never"},{default:e(()=>[a("div",nt,[a("div",lt,[t(_,{type:"primary",class:"mb-4",onClick:y},{default:e(()=>[d("\u6DFB\u52A0")]),_:1}),t(U,{size:"large",data:c(n).data},{default:e(()=>[t(p,{label:"\u5173\u952E\u8BCD",prop:"describe","min-width":"160"},{default:e(({row:s})=>[t(D,{modelValue:s.name,"onUpdate:modelValue":u=>s.name=u,clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57","show-word-limit":"",maxlength:"30"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(p,{label:"\u6392\u5E8F",prop:"describe","min-width":"160"},{default:e(({row:s})=>[t(D,{modelValue:s.sort,"onUpdate:modelValue":u=>s.sort=u,type:"number"},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),t(p,{label:"\u64CD\u4F5C","min-width":"80",fixed:"right"},{default:e(({$index:s})=>[E((i(),F(_,{type:"danger",link:"",onClick:u=>V(s)},{default:e(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["setting:storage:edit"]]]