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
14 KiB

4 months ago
"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[201],{7201:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});a(82772),a(73210);var l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lab-apply"},[t("div",{staticClass:"top-filter"},[t("el-form",{ref:"queryForm",attrs:{model:e.queryParams,size:"small","label-width":"82px",inline:!0}},[t("el-form-item",{attrs:{label:"实验室名称",prop:"labTitle"}},[t("el-input",{attrs:{clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParams.labTitle,callback:function(t){e.$set(e.queryParams,"labTitle",t)},expression:"queryParams.labTitle"}})],1),t("el-form-item",{attrs:{label:"实验室编号",prop:"applyId"}},[t("el-input",{attrs:{clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParams.applyId,callback:function(t){e.$set(e.queryParams,"applyId",t)},expression:"queryParams.applyId"}})],1),t("el-form-item",{attrs:{label:"实验室状态",prop:"busStatus"}},[t("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryParams.busStatus,callback:function(t){e.$set(e.queryParams,"busStatus","string"===typeof t?t.trim():t)},expression:"queryParams.busStatus"}},e._l(e.busStatusList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),t("el-button",{attrs:{size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1)],1),t("div",{staticClass:"tale-list"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"355px","max-height":"500px"},attrs:{data:e.myLablyList,"max-height":"500px"}},[t("div",{staticStyle:{"text-align":"left"},attrs:{slot:" empty"},slot:" empty"},[t("el-empty",{attrs:{description:"暂无数据"}})],1),t("el-table-column",{attrs:{align:"center",label:"实验室编号",prop:"applyId","show-overflow-tooltip":!0,width:"180"}}),t("el-table-column",{attrs:{align:"center",label:"实验室名称",prop:"labTitle","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{align:"center",label:"状态","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(a){return["01"===a.row.busStatus?t("span",{staticClass:"review-status"},[t("i",{staticClass:"icon-circle green"}),e._v(e._s(e.busStatusspan(a.row.busStatus))+" ")]):t("span",{staticClass:"review-status"},[t("i",{staticClass:"icon-circle red"}),e._v(e._s(e.busStatusspan(a.row.busStatus))+" ")])]}}])}),t("el-table-column",{attrs:{align:"center",label:"生效时间",prop:"startDate","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(e._s(e.parseTime(a.row.startDate,"{y}-{m}-{d}")))])]}}])}),t("el-table-column",{attrs:{align:"center",label:"到期时间",prop:"endDate","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(e._s(e.parseTime(a.row.endDate,"{y}-{m}-{d}")))])]}}])}),t("el-table-column",{attrs:{align:"center",label:"硬件资源",prop:"dockerImageName","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v(" "+e._s("CPU"+a.row.cpuLimits+";内存:"+a.row.memoryLimits+"G硬盘"+a.row.discLimits+"G")+" ")])]}}])}),t("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{size:"small",type:"text"},on:{click:function(t){return e.goLabDetail(a.row.applyId)}}},[e._v("详情")]),"01"===a.row.busStatus?t("el-dropdown",{attrs:{size:"mini"},on:{command:function(t){return e.handleCommands(t,a.row)}}},[t("span",{staticClass:"el-dropdown-link",staticStyle:{color:"#409EFF",cursor:"pointer"}},[t("i",{staticClass:"el-icon-d-arrow-right el-icon--right"}),e