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

"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[668],{84668:(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:"downloadApplyId"}},[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.downloadApplyId,callback:function(t){e.$set(e.queryParams,"downloadApplyId",t)},expression:"queryParams.downloadApplyId"}})],1),t("el-form-item",{attrs:{label:"文件名称",prop:"fileName"}},[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.fileName,callback:function(t){e.$set(e.queryParams,"fileName",t)},expression:"queryParams.fileName"}})],1),t("el-form-item",{attrs:{label:"审批状态",prop:"reviewStatus"}},[t("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.queryParams.reviewStatus,callback:function(t){e.$set(e.queryParams,"reviewStatus","string"===typeof t?t.trim():t)},expression:"queryParams.reviewStatus"}},e._l(e.reviewOptions,(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:{stripe:"",data:e.exportApplyList,"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:"downloadApplyId","show-overflow-tooltip":!0}}),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:"fileName","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.reviewStatus?t("span",{staticClass:"review-status"},[t("i",{staticClass:"icon-circle orange"}),e._v("待审批 ")]):e._e(),"02"===a.row.reviewStatus?t("span",{staticClass:"review-status"},[t("i",{staticClass:"icon-circle green"}),e._v("审批通过 ")]):e._e(),"03"===a.row.reviewStatus?t("span",{staticClass:"review-status"},[t("i",{staticClass:"icon-circle red"}),e._v("审批拒绝 ")]):e._e()]}}])}),t("el-table-column",{attrs:{align:"center",label:"审批说明",prop:"reviewDesc","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{align:"center",label:"申请时间",prop:"createTime","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{align:"center",label:"审批时间",prop:"updateTime","show-overflow-tooltip":!0}}),t("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right","class-name":"small-padding fixed-width",width:"100"},scopedSlots:e._u([{key:"default",fn:function(a){return["02"===a.row.reviewStatus&"00"===a.row.dataStatus?t("a",{staticStyle:{color:"#1890ff"},attrs:{href:"#"},on:{click:function(t){return e.downloadFile(a.row)}}},[e._v("下载")]):e._e()]}}])})],1)],1),t("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},r=[],n=(a(69826),a(41539),a(32900));const o={name:"DataApply",data:function(){return{loading:!0,total:0,exportApplyList:[],queryParams:{pageNum:1,pageSize:10,downloadApplyId:"",fileName:"",reviewStatus:""},busStatusList:[{label:"运行中",value:"01"},{label:"到期结束",value:"02"},{label:"强制结束",value:"03"},{label:"已禁用",value:"04"},{label:"已销毁",value:"05"},{label:"销毁处理中",value:"06"},{label:"重新初始化中",value:"07"},{label:"错误",value:"08"}],reviewOptions:[{value:"01",label:"待审批"},{value:"02",label:"审批通过"},{value:"03",label:"审批拒绝"}]}},created:function(){this.getList()},methods:{busStatusspan:function(e){var t=this.busStatusList,a=t.find((function(t){return t.value==e}));return a?a.label:null},getList:function(){var e=this;(0,n.WG)(this.queryParams).then((function(t){e.exportApplyList=t.rows,e.total=t.total,e.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},downloadFile:function(e){var t={downloadApplyId:e.downloadApplyId,isQuery:!0};(0,n.fR)(t).then((function(t){if(200==t.code){var a="/public/myApply/download?downloadApplyId="+e.downloadApplyId;window.open(a,"_blank")}}))}}},s=o;var i=a(43736),u=(0,i.Z)(s,l,r,!1,null,"1ee29cb8",null);const p=u.exports},32900:(e,t,a)=>{a.d(t,{Cp:()=>C,F7:()=>P,Hc:()=>b,Ht:()=>i,JE:()=>v,W1:()=>m,WG:()=>o,_I:()=>S,aX:()=>r,bL:()=>k,c0:()=>Z,cT:()=>g,d5:()=>n,e_:()=>y,en:()=>u,fR:()=>s,in:()=>_,jr:()=>h,oK:()=>f,qS:()=>d,rK:()=>w,uN:()=>c,ur:()=>p});var l=a(73821);function r(e){return(0,l.Z)({url:"/myApply/laboratoryList",method:"get",params:e})}function n(e){return(0,l.Z)({url:"/myApply/laboratoryDetail?reviewId="+e,method:"get"})}function o(e){return(0,l.Z)({url:"/myApply/exportList",method:"get",params:e})}function s(e){return(0,l.Z)({url:"/myApply/download",method:"get",params:e})}function i(e){return(0,l.Z)({url:"/myLab/list",method:"get",params:e})}function u(e){return(0,l.Z)({url:"/myLab/info?applyId="+e,method:"get"})}function p(e){return(0,l.Z)({url:"/myLab/restart",method:"post",data:e})}function d(e){return(0,l.Z)({url:"/myLab/dataInjection",method:"post",data:e})}function c(e){return(0,l.Z)({url:"/myLab/fileList?applyId="+e,method:"get"})}function m(e){return(0,l.Z)({url:"/myLab/applyDown",method:"post",data:e})}function f(e){return(0,l.Z)({url:"/api/userApiList",method:"get",params:e})}function y(e){return(0,l.Z)({url:"/api/userApiStatisticsList",method:"get",params:e})}function w(e){return(0,l.Z)({url:"/myMessage/page",method:"get",params:e})}function v(e){return(0,l.Z)({url:"/myMessage/detail?msgId="+e,method:"post"})}function h(e){return(0,l.Z)({url:"myMessage/markRead",method:"post",data:e})}function b(e){return(0,l.Z)({url:"/myResources/list",method:"get",params:e})}function g(e){return(0,l.Z)({url:"/myResources/uploadFile",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}})}function S(e){return(0,l.Z)({url:"/myResources/delete?fileId="+e,method:"delete"})}function _(e){return(0,l.Z)({url:"/rePwd/getPhoneByUser?username="+e,method:"get"})}function k(){return(0,l.Z)({url:"/rePwd/sendPhoneCode",method:"get"})}function P(e){return(0,l.Z)({url:"/rePwd/verifyPhoneCode?phoneCode="+e,method:"get"})}function Z(e){return(0,l.Z)({url:"/rePwd/reset",method:"post",data:e})}function C(e){return(0,l.Z)({url:"/changePassword",method:"post",data:e})}}}]);