1 |
- /* empty css *//* empty css *//* empty css *//* empty css */import{C as le}from"./card-page-0e6c0d35.js";import{a as ne,i as se,c as ie,k as ce}from"./basicMap-b9bb99ee.js";import{s as _}from"./tip-a7451ffc.js";import{_ as re,b as ue,K as pe,a as s,e as de,L as _e,o as C,f as T,m as e,w as t,p as fe,g as i,t as w,j as me,O as ge,s as u,P as ye,c as ve,v as he,Q as Ee,A as Ce,R as Re,S as be,T as ke,H as Se,D as Ie,U as Te,G as we,V as Ne,W as xe,I as De,J as Ae}from"./index-ab0329a3.js";import"./index-fdf5788b.js";const U=g=>(De("data-v-2d58dfa0"),g=g(),Ae(),g),Oe={class:"title-font-big"},Le=U(()=>i("span",{class:"title-font"},"返回",-1)),Me={style:{height:"100%","padding-top":"20px"}},Ue={class:"table-show-tile-font"},Pe=U(()=>i("br",null,null,-1)),Ve={class:"content-font"},je={class:"center",style:{"justify-content":"left"}},ze=["onClick"],Be=["onClick"],Je={class:"center",style:{"justify-content":"left"}},Ke={class:"content",style:{"padding-top":"20px"}},$e={class:"horizontally",style:{"padding-top":"10px"}},Fe={slot:"footer",class:"dialog-footer"},Ge={__name:"interface-page",setup(g){const d=ue(),m=pe(),y=s({RESOURCE_NAME:""}),N=s(!1),x=s(!1),v=s(!1),D=s([]),R=s(),b=s(),k=s(),S=s(),A=s(),O=s([]),p=s({currentPage:1,pageIndex:10,total:0});function P(){d.go(-1)}de(()=>{b.value=m.params.type,k.value=m.params.action,f()}),_e(m,(a,o)=>{b.value=m.params.type,k.value=m.params.action,f()});function V(){A.value.resetFields(),j(),f()}function j(){localStorage.removeItem("gis-map-tool")}function z(a){if(a==null){_({type:"error",message:"数据损坏!"});return}window.open(a.TEXT_ADDRESS)}function B(a){if(a==null){_({type:"error",message:"数据损坏!"});return}var o={uuid:a,type:"details"};localStorage.setItem("JSON_PARA",JSON.stringify(o)),d.push({name:"interface-details"})}function J(a){try{localStorage.setItem("gis-map-tool",JSON.stringify([a])),d.push({name:"interface-application"})}catch{_({type:"error",message:"申请工具出现异常!"})}}function K(){try{if(R.value.getSelectionRows().length<=0){_({type:"error",message:"请选择您要申请的工具!"});return}let a=R.value.getSelectionRows();localStorage.setItem("gis-map-tool",JSON.stringify(a)),d.push({name:"interface-application"})}catch{_({type:"error",message:"请选择您要申请的工具!"})}}function $(){try{if(S.value.getSelectionRows().length<=0){_({type:"error",message:"请选择您要申请的工具!"});return}let a=[];S.value.getSelectionRows().forEach(o=>{let l={};l.UUID=o.uuid,l.RESOURCE_NAME=o.resourceName,l.INSERT_TIME=o.insertTime,l.RELEASE_REMARKS=o.interfaceRemarks,a.push(l)}),localStorage.setItem("gis-map-tool",JSON.stringify(a)),d.push({name:"interface-application"})}catch{_({type:"error",message:"请选择您要申请的工具!"})}}function F(a){p.value.pageIndex=a,f()}function G(a){p.value.currentPage=a,f()}function f(){N.value=!0,ne(y.value.RESOURCE_NAME,"",2,b.value,p.value.pageIndex,p.value.currentPage).then(a=>{q(a)})}function X(a){se({uuid:a.UUID}).then(o=>{d.go(0)})}function H(a){ie(a).then(o=>{d.go(0)})}function Q(){v.value=!0,W()}function W(){ce().then(a=>{D.value=a,x.value=!1})}function q(a){var l,h;let o=((l=a.msg[0])==null?void 0:l.Rows)||[];p.value.totalCount=((h=a.msg[0])==null?void 0:h.TotalRowCount)||0,o.length>0&&(O.value=o),N.value=!1}return(a,o)=>{const l=he,h=Ee,I=Ce,Y=Re,Z=be,ee=ke,c=Se,r=Ie,L=Te,M=we,te=Ne,ae=fe,oe=xe;return C(),T("div",null,[e(le,null,{"card-header":t(()=>[e(I,null,{default:t(()=>[e(l,{span:22,style:{"padding-bottom":"30px"}},{default:t(()=>[i("span",Oe,w(k.value),1)]),_:1}),e(l,{onClick:P,span:2,style:{"padding-bottom":"30px",display:"flex","align-items":"center","justify-content":"flex-end",cursor:"pointer"}},{default:t(()=>[e(h,null,{default:t(()=>[e(me(ge))]),_:1}),Le]),_:1})]),_:1}),e(I,{gutter:20},{default:t(()=>[e(l,{span:18},{default:t(()=>[e(ee,{inline:!0,model:y.value,ref_key:"formDataRef",ref:A},{default:t(()=>[e(Z,{label:"工具名称",prop:"RESOURCE_NAME"},{default:t(()=>[e(Y,{style:{width:"400px"},modelValue:y.value.RESOURCE_NAME,"onUpdate:modelValue":o[0]||(o[0]=n=>y.value.RESOURCE_NAME=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1}),e(l,{span:6},{default:t(()=>[e(I,{id:"row-head",gutter:20},{default:t(()=>[e(l,{span:6},{default:t(()=>[e(c,{type:"primary",onClick:V},{default:t(()=>[u("重置")]),_:1})]),_:1}),e(l,{span:6},{default:t(()=>[e(c,{type:"primary",onClick:f},{default:t(()=>[u("查询")]),_:1})]),_:1}),e(l,{span:6},{default:t(()=>[e(c,{type:"primary",onClick:K},{default:t(()=>[u("批量申请")]),_:1})]),_:1}),e(l,{span:6},{default:t(()=>[e(c,{type:"primary",onClick:Q},{default:t(()=>[u("收藏列表")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),"card-item":t(()=>[i("div",Me,[e(M,{id:"stable","row-style":{backgroundColor:" #f2faff"},ref_key:"tableRef",ref:R,data:O.value,style:{width:"100%"}},{empty:t(()=>[e(L,{description:"暂无数据"})]),default:t(()=>[e(r,{type:"selection",width:"55"}),e(r,{label:"工具名称"},{default:t(({row:n})=>[i("span",Ue,w(n.RESOURCE_NAME),1),Pe]),_:1}),e(r,{label:"更新时间",width:"250"},{default:t(({row:n})=>[i("span",Ve,w(n.INSERT_TIME),1)]),_:1}),e(r,{label:"加入收藏夹",width:"200"},{default:t(({row:n})=>[i("div",je,[n.COLLECTION_FLAG=="-1"?(C(),T("i",{key:0,class:"iconfont icon-shoucang",style:{"padding-right":"20px"},onClick:E=>X(n)},null,8,ze)):(C(),T("i",{key:1,class:"iconfont icon-shoucang1",onClick:E=>H(n.COLLECTION_FLAG),style:{color:"#edd25b","padding-right":"20px"}},null,8,Be))])]),_:1}),e(r,{label:"操作"},{default:t(({row:n})=>[i("div",Je,[e(c,{class:"button-font",type:"primary",onClick:E=>z(n),plain:"",disabled:!n.TEXT_ADDRESS},{default:t(()=>[u("在线测试 ")]),_:2},1032,["onClick","disabled"]),e(c,{class:"button-font",type:"primary",onClick:E=>B(n),plain:""},{default:t(()=>[u("查看详情 ")]),_:2},1032,["onClick"]),e(c,{class:"button-font",type:"primary",onClick:E=>J(n),plain:""},{default:t(()=>[u("申请资源 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data"])]),i("div",Ke,[e(te,{class:"content",onSizeChange:F,onCurrentChange:G,"current-page":p.value.currentPage,"page-sizes":[10,30,50,100],"page-size":p.value.pageIndex,layout:"total, sizes, prev, pager, next, jumper",total:p.value.totalCount},null,8,["current-page","page-size","total"])])]),_:1}),e(ae,{title:"接口待申请列表",modelValue:v.value,"onUpdate:modelValue":o[2]||(o[2]=n=>v.value=n),center:""},{default:t(()=>[ye((C(),ve(M,{ref_key:"pendingTableRef",ref:S,data:D.value},{empty:t(()=>[e(L,{description:"暂无数据"})]),default:t(()=>[e(r,{type:"selection",width:"55"}),e(r,{property:"resourceName",label:"接口名称"}),e(r,{property:"interfaceRemarks",label:"接口备注"}),e(r,{property:"insertTime",label:"接口发布时间"})]),_:1},8,["data"])),[[oe,x.value]]),i("div",$e,[i("span",Fe,[e(c,{onClick:o[1]||(o[1]=n=>v.value=!1)},{default:t(()=>[u("取 消")]),_:1}),e(c,{type:"primary",onClick:$},{default:t(()=>[u("确 定")]),_:1})])])]),_:1},8,["modelValue"])])}}},at=re(Ge,[["__scopeId","data-v-2d58dfa0"]]);export{at as default};
|