PageSourceSearch

https://redeindica.go.gov.br/build/assets/Empresas-f3f07917.js

js redeindica.go.gov.br collected 2026-10-02 00:27:05 UTC 4,461 bytes, 1 lines download raw bytes

1import{p as k,N as w,a as r,o as l,g as d,f as s,w as n,d as a,e as _,t as p,F as C}from"./app-5fc1912d.js";import{_ as E}from"./AuthenticatedLayout-aebca31e.js";import{I as q}from"./iconify-03d69e80.js";import{_ as A}from"./InputLabel-cab2995d.js";import{_ as T}from"./InputError-148d22cd.js";import{_ as L}from"./DropdownLink-668637b0.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import"./ApplicationLogo-e0d31125.js";import"./icon-df62cc88.js";import"./validacaoNome-49cf0a9d.js";const S={name:"Usuarios",components:{DropdownLink:L,Icon:q,AuthenticatedLayout:E,InputError:T,InputLabel:A},props:{usuarios:{type:Array,default:""}},data(){return{columns:[{name:"Nome",align:"center",label:"Nome",field:"name",sortable:!0},{name:"Usuário",align:"center",label:"Usuário",field:"nome_usuario",sortable:!0},{name:"E-mail",align:"center",label:"E-mail",field:"email",sortable:!0},{name:"Status",align:"center",label:"Status",field:"status",sortable:!0},{name:"actions",align:"center",label:"Ações",field:"actions",sortable:!0}],acaoTomada:!1,showResetButton:!1,timeoutReference:null}},methods:{async closeDialog(t){try{const o=await k.post("/alterar-status-usuario",{usuario_alterado_id:t.id,status:"Ativo"});w.create({type:"positive",position:"top-right",message:"Empresa Ativa com sucesso"}),t.acaoTomada=!0,this.showResetButton=!0,this.timeoutReference=setTimeout(()=>{this.showResetButton=!1,window.location.href=window.location.href},5e3)}catch(o){w.create({type:"negative",position:"top-right",message:o}),console.error(o)}},resetSelections(t){t.acaoTomada=!1},paginationLabel(){return`Total de registro(s) encontrado(s): ${this.usuarios.length}`},redirectToCadastroEmpresa(){window.location.href="cadastro-empresa"}}},U=a("title",null,"Minhas Vagas",-1),V={class:"tw-py-12"},B={class:"tw-max-w-7xl tw-mx-auto sm:tw-px-6 lg:tw-px-8"},I={class:"tw-bg-white tw-overflow-hidden tw-shadow-sm sm:tw-rounded-lg"},R=a("span",{class:"tw-mr-1"},"Adicionar Empresa",-1),D={key:0},$={class:"tw-inline-flex tw-items-center tw-rounded-md tw-shadow-sm"},P=["onClick"],j=["onClick"],F={key:1},H={class:"tw-w-full tw-flex tw-justify-center tw-items-center"};function z(t,o,f,M,b,i){const h=r("Head"),c=r("Icon"),u=r("q-icon"),g=r("q-input"),y=r("q-td"),x=r("q-table"),v=r("AuthenticatedLayout");return l(),d(C,null,[s(h,null,{default:n(()=>[U]),_:1}),s(v,null,{default:n(()=>[a("div",V,[a("div",B,[a("div",I,[s(x,{flat:"",bordered:"",rows:f.usuarios,columns:b.columns,filter:t.filter,"row-key":"id",selected:t.selected,"onUpdate:selected":o[2]||(o[2]=e=>t.selected=e),"no-data-label":"Sem dados cadastrados","no-results-label":"A sua pesquisa não retornou dados","rows-per-page-options":[0],"pagination-label":i.paginationLabel},{"top-left":n(()=>[a("button",{onClick:o[0]||(o[0]=(...e)=>i.redirectToCadastroEmpresa&&i.redirectToCadastroEmpresa(...e)),class:"tw-flex tw-items-center tw-justify-center tw-bg-green-500 tw-px-3 tw-py-2 tw-rounded-md tw-text-black"},[R,s(c,{icon:"material-symbols:add-circle"})])]),"top-right":n(()=>[s(g,{borderless:"",dense:"",modelValue:t.filter,"onUpdate:modelValue":o[1]||(o[1]=e=>t.filter=e),placeholder:"Pesquisar",class:"tw-border tw-border-gray-400 tw-rounded-md tw-px-2"},{append:n(()=>[s(u,{name:"search"})]),_:1},8,["modelValue"])]),"body-cell":n(e=>[s(y,{props:e},{default:n(()=>[e.col.name==="actions"?(l(),d("div",D,[a("div",$,[e.row.status==="Pendente"&&!e.row.acaoTomada?(l(),d("button",{key:0,onClick:m=>i.closeDialog(e.row),class:"tw-text-slate-800 hover:tw-text-green-600 tw-text-sm tw-bg-white hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-font-medium tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center",title:"Aprovar Candidato"},[s(c,{icon:"mdi:like-outline"})],8,P)):_("",!0),e.row.acaoTomada&&e.row.status==="Pendente"?(l(),d("button",{key:1,onClick:m=>i.resetSelections(e.row),class:"tw-text-slate-800 hover:tw-text-blue-600 tw-text-sm tw-bg-white hover:tw-bg-slate-100 tw-border tw-border-slate-200 tw-font-medium tw-px-4 tw-py-2 tw-inline-flex tw-space-x-1 tw-items-center",title:"Resetar Seleção"},[s(c,{icon:"fluent-mdl2:reset"})],8,j)):_("",!0)])])):(l(),d("div",F,p(e.value),1))]),_:2},1032,["props"])]),"no-data":n(({icon:e,message:m,filter:G})=>[a("div",H,[a("span",null,p(m),1),s(u,{size:"2em",name:"sentiment_dissatisfied"})])]),_:1},8,["rows","columns","filter","selected","pagination-label"])])])])]),_:1})],64)}const oe=N(S,[["render",z]]);export{oe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.