1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
|
webpackJsonp([25],{"9QpW":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),l=a("exGp"),n=a.n(l),o=a("vLgD");function r(e){return Object(o.a)({url:"/physical/sample?page="+e.page+"&size="+e.size+"&voyageName="+e.voyageName+"&equipmentType="+e.equipmentType+"&platformName="+e.platformName+"&platformType="+e.platformType+"&sampleType="+e.sampleType,method:"get",type:"application/x-www-form-urlencoded"})}function c(e){return Object(o.a)({url:"/physical/file/delete?documentId="+e.documentId,method:"get",type:"application/x-www-form-urlencoded"})}function p(e){return Object(o.a)({url:"/physical/file/detail?sampleId="+e.sampleId+"&type="+e.type,method:"get",type:"application/x-www-form-urlencoded"})}var u=a("+GE2"),d=a("E4LH"),m={name:"PhysicalDataDelivery",components:{ListDialog:a("O85r").a},props:{},data:function(){return{loading:!1,fileLoading:!1,voyageList:[],platformTypeOption:[],platformNameOption:[{label:"探索一号",value:"探索一号"}],search:{voyageName:"",platformType:"",platformName:"",equipmentType:"",sampleType:""},multipleSelection:[],tableData:[{sampleNumber:"TS-14"},{sampleNumber:"TS-14"}],currentPage:1,pagesize:20,count:0,listfLag:"",showListDialog:!1,dialogTitle:"",chooseData:"",sourceData:[],userStatus:!1,showUserForm:!1,choose:0,chooseList:[{name:"原始数据"},{name:"后处理数据"},{name:"成果数据"}],fileData:[],type:""}},mounted:function(){this.init(),this.getDataList("platformType"),this.getAllVoyage()},methods:{jumpTo:function(e){window.open(e,"_blank")},turnPage:function(e,t){t?window.open(e,"_blank"):this.$router.push({name:e})},dimensionChange:function(){},saveData:function(){},handleClose:function(e){e()},init:function(){this.currentPage=1,this.getData()},getData:function(){var e=this;return n()(i.a.mark(function t(){var a,s;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.search.voyageName.length||Object(d.c)(e.search.voyageName)){t.next=5;break}return e.$message({message:"输入不合规",type:"warning"}),e.tableData=[],e.count=0,t.abrupt("return");case 5:return e.loading=!0,a={page:e.currentPage,size:e.pagesize,voyageName:e.search.voyageName,equipmentType:e.search.equipmentType,platformName:e.search.platformName,platformType:e.search.platformType,sampleType:e.search.sampleType},t.prev=7,t.next=10,r(a);case 10:200==(s=t.sent).code&&s.data.content&&(e.tableData=s.data.content,e.count=Number(s.data.count)),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(7),console.log(t.t0);case 17:e.loading=!1;case 18:case"end":return t.stop()}},t,e,[[7,14]])}))()},openListDialog:function(e,t){this.listfLag=e,this.dialogTitle=t,"设备类型"==t?(this.getDataList("equType"),this.chooseData=this.search.equipmentType):"数据样品类型"==t&&(this.getDataList("sampleType"),this.chooseData=this.search.sampleType)},closeListForm:function(){this.showListDialog=!1},confirmListForm:function(e){this.showListDialog=!1,e&&("数据样品类型"==this.dialogTitle?this.search.sampleType=e:this.search.equipmentType=e)},chooseBtn:function(e){this.choose=e,this.fileDetail()},confirmModal:function(e,t,a){if(e.sampleId){this.sampleId=e.sampleId;var s=a.target.id;this.showUserForm=!0,this.choose=0,"view"==s?this.userStatus=!1:"edit"==s&&(this.userStatus=!0),this.fileDetail()}},fileDetail:function(){var e=this;return n()(i.a.mark(function t(){var a,s;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.fileLoading=!0,a={sampleId:e.sampleId,type:""},0==e.choose?a.type="ORIGINAL":1==e.choose?a.type="POSTDATA":a.type="OUTCOME",t.prev=3,t.next=6,p(a);case 6:200==(s=t.sent).code&&(s.data?e.fileData=s.data:e.fileData=[]),e.fileLoading=!1,t.next=15;break;case 11:t.prev=11,t.t0=t.catch(3),console.log(t.t0),e.fileLoading=!1;case 15:case"end":return t.stop()}},t,e,[[3,11]])}))()},confirmModalFile:function(e,t,a){var s=a.target.id;"download"==s?this.downloadDoc(e.documentId):"delete"==s&&this.deleteFile(e.documentId)},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pagesize=e,this.getData()},ha
|