interface-application-6796998c.js 9.8 KB

1
  1. /* empty css */import{f as K}from"./basicMap-b9bb99ee.js";import{C as B}from"./card-page-0e6c0d35.js";/* empty css *//* empty css */import{_ as G}from"./back-ee285bca.js";import{s as T}from"./tip-a7451ffc.js";import{_ as Q,b as X,a as r,e as z,Y as J,r as W,o as p,f as S,m as e,w as t,g as i,t as j,s as P,D as Z,G as $,R as ee,S as ae,v as le,a2 as te,$ as oe,a0 as re,T as ne,A as Ee,H as _e,I as de,J as se}from"./index-ab0329a3.js";import"./index-fdf5788b.js";const Ae={name:"biasMapAdd",components:{CardPage:B},setup(f,{expose:o}){const C=X();r(!1);const a=r(null),Y=r(!1),y=r(""),R=r(!1),s=r({RESOURCE_NAME:void 0,USE_TERM:void 0,SHARED_STARTTIME:void 0,SHARED_ENDTIME:void 0,IP_ADDRESS:void 0,DAY_LIMIT:void 0,CONCURRENCY:void 0,SYSTEM_NAME:void 0,APPLY_USER_NAME:void 0,APPLY_UNIT_NAME:void 0,APPLY_TIME:"11:06:01"}),d=r([{PARAM_NAME:"PARAM_NAME",PARAM_DESCRIBE:"PARAM_DESCRIBE",PARAM_EXPLAIN:"PARAM_EXPLAIN",PARAM_TYPE:"数据类型"}]),n=r([{PARAM_NAME:"PARAM_NAME",PARAM_DESCRIBE:"PARAM_DESCRIBE",PARAM_EXPLAIN:"PARAM_EXPLAIN",PARAM_TYPE:"数据类型"}]),E=r({RESOURCE_NAME:[{required:!0,message:"请输入共享信息",trigger:"blur"}],USE_TERM:[{required:!0,message:"请输入使用期限",trigger:"blur"}],SHARED_STARTTIME:[{required:!0,message:"共享开始日期不能为空",trigger:"change"}],SHARED_ENDTIME:[{required:!0,message:"共享结束日期不能为空",trigger:"change"}],IP_ADDRESS:[{required:!0,message:"请输入ip",trigger:"blur"}],DAY_LIMIT:[{required:!0,message:"请输入访问限制数",trigger:"blur"}],CONCURRENCY:[{required:!0,message:"请输入并发量",trigger:"blur"}],APPLY_USER_NAME:[{required:!0,message:"请输入申请人",trigger:"blur"}],APPLY_UNIT_NAME:[{required:!0,message:"请输入申请单位",trigger:"blur"}],APPLY_TIME:[{required:!0,message:"请选择申请时间",trigger:"change"}],SYSTEM_NAME:[{required:!0,message:"请输入系统名称",trigger:"change"}]}),D=r({UUID:"",RESOURCE_NAME:"",RESOURCE_TYPE:"",SHARING_TOOLKIT:"",SHARING_INTERFACE:"",RELEASE_TIME:"",RELEASE_REMARKS:"",RESOURCE_THUMBNAIL:"",TOOLKIT_FILES:"",TOOLKIT_REMARKS:"",INTERFACE_ADDRESS:"",INTERFACE_TYPE:"",REQUEST_MODE:"",INTERFACE_REMARKS:"",INTERFACE_STATE:"",UNIT_CODE:"",USER_CODE:"",SLT_URL:""}),m=r(),I=()=>{a.value.validate(_=>{_?H():T({type:"error",message:"保存失败!"})})},M=()=>{a.value.resetFields()},N=r(!1),c=r(!1),A=r({INTERFACE_UUID:"",SHARED_FREQUENCY:"",SHARED_STARTTIME:"",SHARED_ENDTIME:"",USE_TERM:"",IP_ADDRESS:"",CONCURRENCY:"",DAY_LIMIT:"",APPLY_USER:"",APPLY_USER_NAME:"",APPLY_UNIT:"",APPLY_UNIT_NAME:"",APPLY_TIME:"",APPYL_REASON:"",AUDIT_OPINION:"",AUDIT_USER:"",AUDIT_USER_NAME:"",AUDIT_UNIT:"",AUDIT_UNIT_NAME:"",AUDIT_TIME:"",AUDIT_STATE:""}),l=r(""),g=r([]),V=r(""),O=r("");function h(){let _=localStorage.getItem("gis-map-tool");if(_){m.value=JSON.parse(_),m.value.forEach(U=>{g.value.push(U.UUID)});let u=JSON.parse(localStorage.getItem("yyfnzt_user"));A.value.APPLY_UNIT=u.UNIT,A.value.APPLY_UNIT_NAME=u.UNIT_NAME,A.value.APPLY_USER=u.USERID,A.value.APPLY_USER_NAME=u.USERNAME}}function w(){const _=new Date,u=_.getFullYear(),U=String(_.getMonth()+1).padStart(2,"0"),F=String(_.getDate()).padStart(2,"0"),k=String(_.getHours()).padStart(2,"0"),x=String(_.getMinutes()).padStart(2,"0"),q=String(_.getSeconds()).padStart(2,"0");return`${u}-${U}-${F} ${k}:${x}:${q}`}function H(){if(!g.value){T({type:"error",message:"保存失败!"});return}K({ids:g.value,systemName:s.value.SYSTEM_NAME,sharedFrequency:s.value.SHARED_FREQUENCY,sharedStarTime:s.value.SHARED_STARTTIME,sharedEndTime:s.value.SHARED_ENDTIME,useTerm:s.value.USE_TERM,ipAddress:s.value.IP_ADDRESS,concurrency:s.value.CONCURRENCY,dayLimit:s.value.DAY_LIMIT,applyTime:w(),appylReason:A.value.APPYL_REASON}).then(_=>{var u=_.msg;u[0].success=="true"?(T({type:"success",message:"保存成功!"}),L()):T({type:"error",message:"保存失败!"})})}function L(){C.go(-1),v()}function v(){localStorage.removeItem("gis-map-tool")}return z(()=>{h()}),J(()=>{v()}),o({}),{elForm:a,details:Y,dialogTitle:y,openFlag:R,formData:s,rules:E,tableData:m,uuid:l,type:V,apply_uuid:O,show_interface:N,show_save_button:c,submitForm:I,onback:L,resetForm:M,utilFormData:D,put_tableData:d,out_tableData:n,applyData:A}}},b=f=>(de("data-v-2ec7f543"),f=f(),se(),f),ue={style:{"padding-bottom":"15px","font-size":"22px"}},ie=b(()=>i("span",{class:"title-font"},"接口共享 / 新增",-1)),Re={style:{"padding-top":"10px","padding-bottom":"30px"}},me=b(()=>i("p",{style:{"padding-bottom":"15px"},class:"title-font"},"资源清单 ",-1)),pe={key:0},Se={key:1},fe={key:2},ce={key:0},Te={key:1},De=b(()=>i("p",{style:{"padding-bottom":"15px"},class:"title-font"},"申请信息",-1)),Ie={style:{"text-align":"center"}};function Me(f,o,C,a,Y,y){const R=Z,s=$,d=ee,n=ae,E=le,D=te,m=oe,I=re,M=ne,N=Ee,c=_e,A=W("card-page");return p(),S("div",null,[e(A,null,{"card-header":t(()=>[i("div",ue,[ie,i("img",{onClick:o[0]||(o[0]=(...l)=>a.onback&&a.onback(...l)),style:{float:"right",padding:"3px 0"},src:G})])]),"card-item":t(()=>[i("div",Re,[me,e(s,{border:"","header-cell-style":{backgroundColor:" #e2f0ff",color:"#636a6e"},"row-style":{backgroundColor:" #f2faff",color:"#636a6e"},data:a.tableData,style:{width:"100%"}},{default:t(()=>[e(R,{prop:"RESOURCE_NAME",label:"资源名称"}),e(R,{label:"共享类型"},{default:t(l=>[l.row.SHARING_INTERFACE=="1"?(p(),S("span",pe," 不共享 ")):l.row.SHARING_INTERFACE=="2"?(p(),S("span",Se," 共享 ")):(p(),S("span",fe," 暂无 "))]),_:1}),e(R,{prop:"INSERT_TIME",label:"发布时间"}),e(R,{prop:"RELEASE_REMARKS",label:"资源简介"},{default:t(l=>[l.row.RELEASE_REMARKS!=""&&l.row.RELEASE_REMARKS!=null?(p(),S("span",ce,j(l.row.RELEASE_REMARKS),1)):(p(),S("span",Te," 暂无 "))]),_:1})]),_:1},8,["data"])]),e(N,{gutter:15},{default:t(()=>[De,e(M,{ref:"elForm",model:a.formData,inline:"",rules:a.rules,size:"medium","label-width":"100px","label-position":"top"},{default:t(()=>[e(E,{span:8},{default:t(()=>[e(n,{label:"共享信息",prop:"RESOURCE_NAME"},{default:t(()=>[e(d,{modelValue:a.formData.RESOURCE_NAME,"onUpdate:modelValue":o[1]||(o[1]=l=>a.formData.RESOURCE_NAME=l),placeholder:"请输入共享信息",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"共享频率",prop:"RESOURCE_NAME"},{default:t(()=>[e(d,{modelValue:a.formData.SHARED_FREQUENCY,"onUpdate:modelValue":o[2]||(o[2]=l=>a.formData.SHARED_FREQUENCY=l),placeholder:"请输入共享频率",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"使用期限(天)",prop:"USE_TERM"},{default:t(()=>[e(d,{modelValue:a.formData.USE_TERM,"onUpdate:modelValue":o[3]||(o[3]=l=>a.formData.USE_TERM=l),placeholder:"请输入使用期限",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"共享开始时间",prop:"SHARED_STARTTIME"},{default:t(()=>[e(D,{format:"YYYY/MM/DD","value-format":"YYYY-MM-DD",modelValue:a.formData.SHARED_STARTTIME,"onUpdate:modelValue":o[4]||(o[4]=l=>a.formData.SHARED_STARTTIME=l),type:"date",placeholder:"选择日期"},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"共享结束时间",prop:"SHARED_ENDTIME"},{default:t(()=>[e(I,{modelValue:a.formData.SHARED_ENDTIME,"onUpdate:modelValue":o[5]||(o[5]=l=>a.formData.SHARED_ENDTIME=l),placeholder:"请选择共享结束时间"},{default:t(()=>[e(m,{label:"无期限",value:"1"}),e(m,{label:"固定结束时间",value:"2"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"ip",prop:"IP_ADDRESS"},{default:t(()=>[e(d,{modelValue:a.formData.IP_ADDRESS,"onUpdate:modelValue":o[6]||(o[6]=l=>a.formData.IP_ADDRESS=l),placeholder:"请输入ip",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"访问限制数",prop:"DAY_LIMIT"},{default:t(()=>[e(d,{modelValue:a.formData.DAY_LIMIT,"onUpdate:modelValue":o[7]||(o[7]=l=>a.formData.DAY_LIMIT=l),placeholder:"请输入访问限制数",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"并发量",prop:"CONCURRENCY"},{default:t(()=>[e(d,{modelValue:a.formData.CONCURRENCY,"onUpdate:modelValue":o[8]||(o[8]=l=>a.formData.CONCURRENCY=l),placeholder:"请输入并发量",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"系统名称",prop:"SYSTEM_NAME"},{default:t(()=>[e(d,{modelValue:a.formData.SYSTEM_NAME,"onUpdate:modelValue":o[9]||(o[9]=l=>a.formData.SYSTEM_NAME=l),placeholder:"请输入系统名称",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"申请人"},{default:t(()=>[e(d,{disabled:"",modelValue:a.applyData.APPLY_USER_NAME,"onUpdate:modelValue":o[10]||(o[10]=l=>a.applyData.APPLY_USER_NAME=l),placeholder:"请输入申请人",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:8},{default:t(()=>[e(n,{label:"申请单位"},{default:t(()=>[e(d,{disabled:"",modelValue:a.applyData.APPLY_UNIT_NAME,"onUpdate:modelValue":o[11]||(o[11]=l=>a.applyData.APPLY_UNIT_NAME=l),placeholder:"请输入申请单位",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(E,{span:20},{default:t(()=>[e(n,{label:"申请原因",prop:"APPYL_REASON"},{default:t(()=>[e(d,{type:"textarea",modelValue:a.applyData.APPYL_REASON,"onUpdate:modelValue":o[12]||(o[12]=l=>a.applyData.APPYL_REASON=l),rows:"5"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1}),i("div",Ie,[e(c,{onClick:a.submitForm},{default:t(()=>[P("提交")]),_:1},8,["onClick"]),P("   "),e(c,{onClick:a.onback},{default:t(()=>[P("关闭")]),_:1},8,["onClick"])])]),_:1})])}const ve=Q(Ae,[["render",Me],["__scopeId","data-v-2ec7f543"]]);export{ve as default};