tableHeader-voC7dWz1.js 3.2 KB

1
  1. import{u as B,s as e,o as S}from"./store-F66kEjW2.js";import{b as T,i as y}from"./index-3qA-WN0K.js";import{d as U,a2 as V,K as p,aq as q,e as s,f as D,u as o,y as i,C as L,i as n,am as f,L as c,j as a,t as _,G as A}from"./vue-A59npLRR.js";import{q as $,_ as N}from"./index-EwE51S_X.js";import"./echarts-cxb9vJr1.js";const E={class:"modules-header"},G={class:"table-header-buttons"},H={class:"table-header-operate-text"},M={class:"table-header-operate-text"},P={class:"table-header-operate-text"},R={class:"table-header-operate-text"},j={class:"table-header-operate-text"},F={class:"table-search"},K=U({__name:"tableHeader",setup(J){const{t}=V(),h=B(),g=()=>{e.table.onlyLocal=!e.table.onlyLocal,y()},C=()=>{e.dialog.baAccount=!0,e.loading.common=!0,S().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=p("el-alert"),r=p("Icon"),d=p("el-button"),v=p("el-button-group"),z=p("el-input"),u=q("blur");return s(),D("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",E,[n("div",G,[f((s(),i(d,{title:m.$t("Refresh"),onClick:o(T),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",H,_(o(t)("module.Upload installation")),1)]),_:1},8,["title"])),[[u]]),f((s(),i(d,{onClick:g,class:A(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",M,_(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",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",R,_(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",j,_(o(t)("module.Member information")),1)]),_:1})),[[u]])]),n("div",F,[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($)(x,500)()),placeholder:o(t)("module.Search is actually very simple")},null,8,["modelValue","placeholder"])])])])}}}),Z=N(K,[["__scopeId","data-v-d613762d"]]);export{Z as default};