tableHeader-746b22a4.js 3.1 KB

1
  1. import{u as V,s as e,o as B}from"./store-5ff6cbac.js";import{b as S,i as y}from"./index-0ec044bf.js";import{f as T,x as U,_ as D}from"./index-ba596ae9.js";import{h as q,p as s,l as A,k as o,M as i,a4 as L,o as n,a6 as f,N as c,q as a,V as p,a2 as N,t as _,a7 as $}from"./vue-a39e6937.js";const H={class:"modules-header"},M={class:"table-header-buttons"},E={class:"table-header-operate-text"},P={class:"table-header-operate-text"},F={class:"table-header-operate-text"},G={class:"table-header-operate-text"},R={class:"table-header-operate-text"},j={class:"table-search"},J=q({__name:"tableHeader",setup(K){const{t}=T(),h=V(),g=()=>{e.table.onlyLocal=!e.table.onlyLocal,y()},C=()=>{e.dialog.baAccount=!0,e.loading.common=!0,B().then(m=>{h.dataFill(m.data.userInfo)}).catch(()=>{h.removeToken()}).finally(()=>{e.loading.common=!1})},x=()=>{e.table.modulesEbak[e.table.params.activeTab]=void 0,y()},k=m=>{window.open(m,"_blank")},I=()=>{e.dialog.common=!0,e.common.quickClose=!0,e.common.dialogTitle=t("module.Upload installation"),e.common.type="uploadInstall"};return(m,l)=>{const w=_("el-alert"),r=_("Icon"),d=_("el-button"),v=_("el-button-group"),z=_("el-input"),u=$("blur");return s(),A("div",null,[o(e).table.remark?(s(),i(w,{key:0,class:"ba-table-alert",title:o(e).table.remark,type:"info","show-icon":""},null,8,["title"])):L("",!0),n("div",H,[n("div",M,[f((s(),i(d,{title:m.$t("refresh"),onClick:o(S),color:"#40485b",type:"info"},{default:c(()=>[a(r,{name:"fa fa-refresh",color:"#ffffff",size:"14"})]),_:1},8,["title","onClick"])),[[u]]),a(v,{class:"ml10"},{default:c(()=>[f((s(),i(d,{onClick:I,title:o(t)("module.Upload zip package for installation"),type:"primary"},{default:c(()=>[a(r,{name:"fa fa-upload",color:"#ffffff",size:"14"}),n("span",E,p(o(t)("module.Upload installation")),1)]),_:1},8,["title"])),[[u]]),f((s(),i(d,{onClick:g,class:N(o(e).table.onlyLocal?"local-active":""),title:o(t)("module.Uploaded / installed modules"),type:"primary"},{default:c(()=>[a(r,{name:"fa fa-desktop",color:"#ffffff",size:"14"}),n("span",P,p(o(t)("module.Local module")),1)]),_:1},8,["class","title"])),[[u]])]),_:1}),a(v,{class:"ml10"},{default:c(()=>[f((s(),i(d,{onClick:l[0]||(l[0]=b=>k("https://wonderful-code.gitee.io/senior/module/start.html")),type:"success"},{default:c(()=>[a(r,{name:"fa fa-cloud-upload",color:"#ffffff",size:"14"}),n("span",F,p(o(t)("module.Publishing module")),1)]),_:1})),[[u]]),f((s(),i(d,{onClick:l[1]||(l[1]=b=>k("https://wonderful-code.gitee.io/guide/other/appendix/getPoints.html")),type:"success"},{default:c(()=>[a(r,{name:"fa fa-rocket",color:"#ffffff",size:"14"}),n("span",G,p(o(t)("module.Get points")),1)]),_:1})),[[u]])]),_:1}),f((s(),i(d,{class:"ml10",onClick:C,type:"success"},{default:c(()=>[a(r,{name:"fa fa-user-o",color:"#ffffff",size:"14"}),n("span",R,p(o(t)("module.Member information")),1)]),_:1})),[[u]])]),n("div",j,[a(z,{modelValue:o(e).table.params.quickSearch,"onUpdate:modelValue":l[2]||(l[2]=b=>o(e).table.params.quickSearch=b),class:"xs-hidden",onInput:l[3]||(l[3]=b=>o(U)(x,500)()),placeholder:o(t)("module.Search is actually very simple")},null,8,["modelValue","placeholder"])])])])}}});const Y=D(J,[["__scopeId","data-v-33dd8a04"]]);export{Y as default};