1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a3ebf540"],{"0e0b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAb5JREFUKBVjZCAChK76z/zv5o8KJkaGg6trOI/AtDDBGLjo////M/65/mMukDb4+49hUUjjd2eYWoKaQ5q/T2Bg/O8B1PCElZHJ+y8Dw5yglu/yIAPwag5q/N70j4HRkEWYU4WBgVHsz/+/GQyMDN9Z/zNx4dUc3PSt6D/jfy8uAQ6f1dmMX9hYGaqBPkhjZGJoX1nLfh2n5qCm7yn/GRiTOLg4PZbmMX6K7Pkv8usXw3ZGRsbCdTWci0EaQQDD2UAbwxj+M5SzsXO4LS9hfJPU+Z/3x7fvO4AqF62t45gB0QYhGZE5IY0/PP8y/J/GwsTgtLqW837C/P8cHx//2M7wn/H0+nqOMmS1IDbcZmAI2v1j/L8WGJczQRob9v9n+fT4+0qgK25j0wjSDLYZFJfBTd+fAQOj7x/QyYz/meIZGP6H/2dkYNev5YhsYGT8B1KMDsA2R7T8VAJKPFlby9XN+J8xFBjKa4EaRUTFOWJwaQQZBNb8698/I6AbHgQ2f3cChqgXUPwUCw9H8Kx0xt8gRbgAWDNQAz8warSBjkv6x8jwDBy3RYzfcWmCiTMCU5EjjEMqzQLUkE6qJph6AErYncWlgAYnAAAAAElFTkSuQmCC"},"4c82f":function(e,t,a){"use strict";var i=a("c070");a.n(i).a},"6efd":function(e,t,a){"use strict";a.r(t);var i=(a("4160"),a("a434"),a("b0c0"),a("a9e3"),a("ac1f"),a("1276"),a("159b"),a("f4db")),s={data:function(){return{uploadUrl:"",fileUrl:"",projectSn:"",panoramaList:[],addPanoramicDialog:!1,dialogTitle:this.$t("message.AICenter.addPanorama2"),imgForm:{imageUrl:"",imageName:""},isEditType:!1,nextPano:{imageUrl:"",imageName:""},activePanoramicIndex:0,devList:this.$t("message.AICenter.devList"),markLocation:{longitude:"",latitude:""},panoramadata:null,markersPlugin:null,activeDevIndex:0,editMark:!1,dialogVisible:!1,checkDevId:""}},created:function(){this.uploadUrl=this.$store.state.UPLOADURL,this.fileUrl=this.$store.state.FILEURL,this.projectSn=this.$store.state.projectSn},mounted:function(){this.getPanoramaList()},methods:{getPanoramaList:function(){var e=this,t={projectSn:this.projectSn};Object(i.g)(t).then((function(t){200==t.code&&(e.panoramaList=t.result,t.result.length>0&&(e.editMark=!1,e.panoramadata?(e.panoramadata.destroy(),e.nextPano=t.result[e.activePanoramicIndex]):(e.activePanoramicIndex=0,e.nextPano=t.result[0]),setTimeout((function(){e.$nextTick((function(){e.showPhoto(),e.getDevMarkList(2)}))}),10)))}))},addPanoramicBtn:function(){var e=this;this.imgForm={imageUrl:"",imageName:""},this.isEditType=!1,this.dialogTitle=this.$t("message.AICenter.addPanorama2"),this.addPanoramicDialog=!0,setTimeout((function(){e.$refs.imgForm.clearValidate()}),300)},savePanoramicFn:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;var a=t.imgForm;a.projectSn=t.projectSn,t.isEditType?Object(i.e)(a).then((function(e){200==e.code?(t.$message.success("上传成功"),t.addPanoramicDialog=!1,t.getPanoramaList()):t.$message.error("上传失败")})):Object(i.b)(a).then((function(e){200==e.code?(t.$message.success("操作成功"),t.addPanoramicDialog=!1,t.getPanoramaList()):t.$message.error(e.message)}))}))},changePanoramicFn:function(e,t){var a=this;this.activePanoramicIndex=t,this.nextPano=e,this.editMark=!1,setTimeout((function(){a.panoramadata&&a.panoramadata.destroy(),a.$nextTick((function(){a.showPhoto(),a.getDevMarkList(2)}))}),10)},editPanoramicFn:function(e){this.imgForm=JSON.parse(JSON.stringify(e)),this.dialogTitle=this.$t("message.AICenter.editPanorama"),this.isEditType=!0,this.addPanoramicDialog=!0},deletePanoramicFn:function(e){var t=this;this.$confirm(this.$t("message.AICenter.tipText"),this.$t("message.AICenter.tip"),{confirmButtonText:this.$t("message.AICenter.confirm"),cancelButtonText:this.$t("message.AICenter.cancel"),type:"warning"}).then((function(){var a={id:e.id};Object(i.d)(a).then((function(e){200==e.code?(t.$message({type:"success",message:t.$t("message.AICenter.deleteSuccess")+"!"}),t.getPanoramaList(),t.activePanoramicIndex=0):t.$message.error(e.message)}))})).catch((function(){t.$message({type:"info",message:t.$t("message.AICenter.cancelDelete")})}))},handleSuccess:function(e){this.$message.success(this.$t("message.AICenter.updateSuccess")),this.imgForm.imageUrl=e.data[0].imageUrl},handlePictureCardPreview:function(e){},handleRemove:function(e){},showPhoto:function(){var e=this,t=this;this.displayPanoramadata=!0,this.panoramadata=new PhotoSphereViewer.Viewer({container:document.qu
|