PageSourceSearch

https://jpsearch.go.jp/_nuxt/Bjq6eNs2.js

js jpsearch.go.jp collected 2026-09-24 18:50:32 UTC 4,806 bytes, 2 lines download raw bytes

1import{_ as ee}from"./CQqxS_yu.js";import{_ as te}from"./BREfnPzP.js";import{_ as ae}from"./CIV9sq-F.js";import{_ as oe}from"./evoY02gx.js";import{d as N,u as se,s as ne,Y as re,a0 as ce,$ as ie,a3 as le,ah as _e,o as i,g,f as n,e as l,b as r,h as _,t as k,c as f,w as c,as as me,at as ue,k as x,G as de,ac as pe,i as he,l as C,j as m,m as fe,au as ye,q as we,L as be,M as ge,N as ke}from"./2uVF055a.js";import{_ as xe}from"./DMCFmitT.js";import{_ as Ce}from"./DJEpZOLZ.js";import{_ as Se}from"./B-yGGW02.js";import{u as ve}from"./APu2pJix.js";import"./BMujGzjI.js";import"./DcJhej92.js";import"./US-h1eNn.js";import"./DVngRvMg.js";import"./Cpj98o6Y.js";import"./Cf0Q6YH6.js";import"./Td_Tic2p.js";const je={class:"csearch-list jps-layout-sm-content"},Le={key:0,class:"jps-block"},Ne={key:1},Me={class:"search-control"},$e={class:"search-box"},Be={class:"search-result-table-header-inner"},Ae=N({__name:"UiManagementCsList",setup(M){const{ls:t,led:u,ldate:y,langPath:w}=se(),S=ne(),d=re(),{snackbarSuccess:p,snackbarError:$}=ce(),{setLoading:v,loadingExecute:B,loadingExecuteAndNotify:A}=ie(),{searchCustomSearch:I,getCustomSearch:O,updateCustomSearch:U,createCustomSearch:D,deleteCustomSearch:P}=le(),o=C(null);_e(async()=>{o.value=ve({keywordFields:["keywords"],searchFields:[{key:"edit.userId",type:"keyword",placeHolder:{ja:"最終編集者"}}]},I,{configNoCache:!0,queryRewriter:e=>(e.permission="O",e.filter={type:["NORMAL","NOTE"]},e)}),await o.value.restoreQuery()});const E=async e=>{v(!0);const s=await O(e.id);s.permission.publicationLevel=e.permission.publicationLevel,await U(s),o.value.executeRefresh(),p({ja:"公開状態を変更しました"}),v(!1)},j=C(),F=async()=>{try{const e=await j.value.openAwait({title:{ja:"新しいテーマ別検索",en:"New designed search"},message:{ja:"IDと名前を入力して下さい",en:"Input ID and Name"},label:{ja:"名前",en:"Name"}});if(!e)return;const s={id:e.id,name:{ja:e.name,en:"",yomi:""},type:"NORMAL",keywordFields:["keywords"]};try{const h=await B(D(s));S.push(w(`/management/csearch/${h.id}`)),p({ja:e.name+"を作成しました"})}catch{$({ja:"テーマ別検索の作成に失敗しました。もう一度お試しください。",en:"Failed to create new designed search. Try Again."})}}catch{}},L=C(),R=async e=>{try{if(!await L.value.openAwait({message:m.deleteConfirm,messageVars:[t(e.name)]}))return;await A(t(m.deleted),P(e)),o.value.executeRefresh()}catch{}},T=fe(()=>V.filter(e=>d.isSysad?e.show==null||e.show=="sysad":e.show==null||e.show=="org")),V=[{label:()=>t(m.name),key:"name"},{label:()=>t({ja:"種別",en:"Type"}),path:["type"],display:e=>u(ye,e),sort:"type"},{label:()=>t({ja:"管理者",en:"Owner"}),key:"org",show:"sysad",sort:"permission.ownerOrg"},{label:()=>t(m.public),key:"public",sort:"permission.publicationLevel"},{label:()=>t({ja:"最終更新者",en:"Last Editor"}),path:["edit.userId"],sort:"edit.userId"},{label:()=>t(m.lastUpdated),path:["edit.date"],display:e=>y(e),sort:"edit.date"},{key:"menu"}];return(e,s)=>{const h=ee,G=te,H=ae,Y=oe,z=he,Q=xe,q=pe,J=de,K=ue,W=me,X=Ce,Z=Se;return i(),g("div",je,[n(d).isSysad?_("",!0):(i(),g("div",Le,[l("button",{class:"jps-round-button jps-blue",onClick:s[0]||(s[0]=a=>F())}," 新しいテーマ別検索を作成する "),r(h,{ref_key:"newDataModal",ref:j},null,512)])),n(o).searched?(i(),g("section",Ne,[l("div",Me,[l("div",null,k(n(o).state.result.hit)+"件",1),r(G,{ss:n(o)},null,8,["ss"]),l("div",$e,[r(H,{ss:n(o)},null,8,["ss"])])]),n(o).searched?(i(),f(X,{key:0,data:n(o).state.result.list,columns:n(T),class:"ui-sortable-search-result-table"},{header:c(({col:a,label:b})=>[l("div",Be,[x(k(b)+" ",1),a.sort?(i(),f(Y,{key:0,ss:n(o),field:a.sort,"is-item":!1,class:"is-hidden-mobile"},null,8,["ss","field"])):_("",!0)])]),"column-name":c(a=>[r(z,{to:"/management/csearch/"+a.row.id},{default:c(()=>[x(k(n(t)(a.row.name)),1)]),_:2},1032,["to"])]),"column-public":c(a=>[r(Q,{data:a.row,onUpdatePublicationLevel:b=>E(a.row)},null,8,["data","onUpdatePublicationLevel"])]),"column-org":c(a=>[r(q,{id:a.row.permission.ownerOrg},null,8,["id"])]),"column-menu":c(a=>[r(W,{position:"bottom-left"},{trigger:c(()=>[r(J,{name:"mdi/dots-horizontal",alt:"Optional Menu"})]),default:c(()=>[n(d).hasAdminFor(a.row)?(i(),f(K,{key:0,onClick:b=>R(a.row)},{default:c(()=>[...s[1]||(s[1]=[x("削除",-1)])]),_:1},8,["onClick"])):_("",!0)]),_:2},1024)]),_:1},8,["data","columns"])):_("",!0),r(Z,{ref_key:"confirmModal",ref:L},null,512)])):_("",!0)])}}}),Ie=Object.assign(we(Ae,[["__scopeId","data-v-6cd74235"]]),{__name:"UiManagementCsList"}),Ke=N({__name:"index",async setup(M){let t,u;const{getPageAndCache:y}=be(),{meta:w}=([t,u]=ge(()=>y()),t=await t,u(),t);return ke(w),(S,d)=>{const p=Ie;return i(),f(p)}}});
1export{Ke as default};
2//# sourceMappingURL=Bjq6eNs2.js.map

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.