You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
8.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[922],{20922:(t,e,l)=>{l.r(e),l.d(e,{default:()=>u});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"lab-detail"},[e("el-form",{attrs:{"label-width":"130px"}},[e("div",{staticClass:"h2title"},[e("h2",[t._v("基本信息")])]),e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"申请用户",prop:"applyUserName"}},[e("span",[t._v(t._s(t.form.applyUserName))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"实验室状态"}},["01"==t.form.status?e("span",{staticStyle:{color:"#6CBD7F","font-weight":"600"}},[t._v(t._s(t.busStatusList(t.form.busStatus)))]):e("span",{staticStyle:{color:"red","font-weight":"600"}},[t._v(t._s(t.busStatusList(t.form.busStatus)))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"生效时间",prop:"startDate"}},[e("span",[t._v(t._s(t.parseTime(t.form.startDate,"{y}-{m}-{d}")))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"到期时间",prop:"endDate"}},[e("span",[t._v(t._s(t.parseTime(t.form.endDate,"{y}-{m}-{d}")))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"使用镜像",prop:"dockerImageName"}},[e("span",[t._v(t._s(t.form.dockerImageName))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"服务类型",prop:"serviceType"}},[e("span",[t._v(t._s(t.form.serviceType))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"实验室名称",prop:"labTitle"}},[e("span",[t._v(t._s(t.form.labTitle))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"实验室配置",prop:"configList"}},[e("span",[t._v(t._s(t.configList))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"服务地址",prop:"loginUrl"}},[e("span",[e("a",{staticStyle:{color:"#3165DB"},attrs:{href:t.form.loginUrl,target:"_blank"}},[t._v(t._s(t.form.loginUrl))])])])],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"申请说明",prop:"applyDesc"}},[e("span",[t._v(t._s(t.form.applyDesc))])])],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[e("span",[t._v(t._s(t.form.remarks))])])],1)],1)],1)]),t._m(0),e("el-collapse",{on:{change:t.handleChange},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{title:"平台数据",name:"1"}},[e("el-table",{attrs:{size:"small",stripe:"",data:t.form.libList}},[e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"empty"},slot:"empty"},[t._v("暂无数据 ")]),e("el-table-column",{attrs:{align:"center",label:"文件类型",prop:"libType","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(l){return[e("span",[t._v(t._s("data"==l.row.libType?"数据文件":"python组件"))])]}}])}),e("el-table-column",{attrs:{align:"center",label:"文件大小",prop:"fileSize",width:"100","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(l){return[e("span",[t._v(" "+t._s(t.convertFileSize(l.row.fileSize))+" ")])]}}])}),e("el-table-column",{attrs:{align:"center",label:"文件名称",prop:"fileName","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{align:"center",label:"文件说明",prop:"libDesc","show-overflow-tooltip":!0}})],1)],1),e("el-collapse-item",{attrs:{title:"我的数据",name:"2"}},[e("el-table",{attrs:{size:"small",stripe:"",data:t.form.applyLibList}},[e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"empty"},slot:"empty"},[t._v("暂无数据 ")]),e("el-table-column",{attrs:{align:"center",label:"文件类型",prop:"libType","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(l){return[e("span",[t._v(t._s("data"==l.row.libType?"数据文件":"python组件"))])]}}])}),e("el-table-column",{attrs:{align:"center",label:"文件大小",prop:"fileSize",width:"100","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(l){return[e("span",[t._v(" "+t._s(t.convertFileSize(l.row.fileSize))+" ")])]}}])}),e("el-table-column",{attrs:{align:"center",label:"文件名称",prop:"fileName","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{align:"center",label:"文件说明",prop:"libDesc","show-overflow-tooltip":!0}})],1)],1),e("el-collapse-item",{attrs:{title:"下载数据",name:"3"}},[e("el-table",{attrs:{size:"small",stripe:"",data:t.form.dockerFileList}},[e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"empty"},slot:"empty"},[t._v("暂无数据 ")]),e("el-table-column",{attrs:{align:"center",label:"文件大小",prop:"fileSize",width:"100","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(l){return[e("span",[t._v(" "+t._s(t.convertFileSize(l.row.fileSize))+" ")])]}}])}),e("el-table-column",{attrs:{align:"center",label:"文件名称",prop:"fileName","show-overflow-tooltip":!0}}),e("el-table-column",{attrs:{align:"center",label:"文件说明",prop:"libDesc","show-overflow-tooltip":!0}})],1)],1)],1)],1)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"h2title"},[e("h2",[t._v("文件信息")])])}],o=(l(69826),l(41539),l(9653),l(56977),l(32900));const s={name:"LabDetail",data:function(){return{form:{},configList:"",activeNames:["1","2","3"],busStatuss:[{label:"生效中",value:"01"},{label:"到期结束",value:"02"},{label:"强制结束",value:"03"},{label:"已禁用",value:"04"},{label:"已销毁",value:"05"},{label:"销毁处理中",value:"06"},{label:"重新初始化中",value:"07"}]}},created:function(){this.getDetail()},methods:{busStatusList:function(t){var e=this.busStatuss.find((function(e){return e.value==t}));return e?e.label:null},getDetail:function(){var t=this,e=this.$route.params.applyId;(0,o.en)(e).then((function(e){t.form=e.data,t.configList="CPU"+t.form.cpuLimits+";内存:"+t.form.memoryLimits+"G硬盘"+t.form.discLimits+"G"}))},convertFileSize:function(t){if(void 0!=t){var e=Number(t)/1024,l=e/1024,a=l/1024;return a>=1?a.toFixed(2)+" GB":l>=1?l.toFixed(2)+" MB":e>=1?e.toFixed(2)+" KB":Number(t).toFixed(2)+" B"}},handleChange:function(t){}}},n=s;var i=l(43736),p=(0,i.Z)(n,a,r,!1,null,"7449eb70",null);const u=p.exports},32900:(t,e,l)=>{l.d(e,{Cp:()=>D,F7:()=>Z,Hc:()=>_,Ht:()=>i,JE:()=>h,W1:()=>f,WG:()=>s,_I:()=>w,aX:()=>r,bL:()=>L,c0:()=>k,cT:()=>g,d5:()=>o,e_:()=>b,en:()=>p,fR:()=>n,in:()=>S,jr:()=>y,oK:()=>d,qS:()=>m,rK:()=>v,uN:()=>c,ur:()=>u});var a=l(73821);function r(t){return(0,a.Z)({url:"/myApply/laboratoryList",method:"get",params:t})}function o(t){return(0,a.Z)({url:"/myApply/laboratoryDetail?reviewId="+t,method:"get"})}function s(t){return(0,a.Z)({url:"/myApply/exportList",method:"get",params:t})}function n(t){return(0,a.Z)({url:"/myApply/download",method:"get",params:t})}function i(t){return(0,a.Z)({url:"/myLab/list",method:"get",params:t})}function p(t){return(0,a.Z)({url:"/myLab/info?applyId="+t,method:"get"})}function u(t){return(0,a.Z)({url:"/myLab/restart",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/myLab/dataInjection",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/myLab/fileList?applyId="+t,method:"get"})}function f(t){return(0,a.Z)({url:"/myLab/applyDown",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/api/userApiList",method:"get",params:t})}function b(t){return(0,a.Z)({url:"/api/userApiStatisticsList",method:"get",params:t})}function v(t){return(0,a.Z)({url:"/myMessage/page",method:"get",params:t})}function h(t){return(0,a.Z)({url:"/myMessage/detail?msgId="+t,method:"post"})}function y(t){return(0,a.Z)({url:"myMessage/markRead",method:"post",data:t})}function _(t){return(0,a.Z)({url:"/myResources/list",method:"get",params:t})}function g(t){return(0,a.Z)({url:"/myResources/uploadFile",method:"post",data:t,headers:{"Content-Type":"multipart/form-data"}})}function w(t){return(0,a.Z)({url:"/myResources/delete?fileId="+t,method:"delete"})}function S(t){return(0,a.Z)({url:"/rePwd/getPhoneByUser?username="+t,method:"get"})}function L(){return(0,a.Z)({url:"/rePwd/sendPhoneCode",method:"get"})}function Z(t){return(0,a.Z)({url:"/rePwd/verifyPhoneCode?phoneCode="+t,method:"get"})}function k(t){return(0,a.Z)({url:"/rePwd/reset",method:"post",data:t})}function D(t){return(0,a.Z)({url:"/changePassword",method:"post",data:t})}}}]);