wisdomisite-java/src/main/resources/static/js/chunk-a3ebf540.f01c7c70.js
2023-02-16 15:28:15 +08:00

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.querySelector("#photosphere"),panorama:this.fileUrl+this.nextPano.imageUrl,plugins:[[PhotoSphereViewer.MarkersPlugin,{markers:[]}]]});var a=this.markersPlugin=this.panoramadata.getPlugin(PhotoSphereViewer.MarkersPlugin);a.on("select-marker",(function(s,n){t.$confirm(e.$t("message.AICenter.tipText2")+"?",e.$t("message.AICenter.tip"),{confirmButtonText:e.$t("message.AICenter.confirm"),cancelButtonText:e.$t("message.AICenter.cancel"),type:"warning"}).then((function(){Object(i.c)({id:n.id}).then((function(i){200==i.code?(t.$message({type:"success",message:e.$t("message.AICenter.deleteSuccess")+"!"}),a.removeMarker({id:n.id})):t.$message({type:"error",message:i.message})}))})).catch((function(){t.$message({type:"info",message:e.$t("message.AICenter.cancelDelete")+"!"})}))}))},editMarkBtn:function(){var e=this;this.editMark=!this.editMark,this.editMark?this.panoramadata.on("click",(function(t){e.markLocation={longitude:t.args[0].longitude,latitude:t.args[0].latitude},e.dialogVisible=!0,e.getDevMarkList(1)})):this.panoramadata.__events.click.splice(1,1)},getDevMarkList:function(e){var t=this,s={panoramaId:this.nextPano.id,projectSn:this.projectSn,selectType:e,devType:""};Object(i.f)(s).then((function(i){if(i.result.length>0){var s=JSON.parse(JSON.stringify(i.result));1==e?t.devList.forEach((function(e,t){var a=[];s.forEach((function(t){e.type==t.devType&&a.push(t)})),e.list=a})):(t.markersPlugin&&t.markersPlugin.clearMarkers(),s.forEach((function(e,i){var s=null;switch(Number(e.devType)){case 1:s=a("0b61");break;case 2:s=a("0232");break;case 3:s=a("6d57");break;case 4:s=a("0e91");break;case 5:s=a("b5fd1");break;case 6:s=a("7f4e");break;case 7:s=a("8f4b");break;case 8:s=a("294c")}var n=t.markersPlugin=t.panoramadata.getPlugin(PhotoSphereViewer.MarkersPlugin);setTimeout((function(){n.addMarker({id:e.id,longitude:Number(e.longitude),latitude:Number(e.latitude),image:s,width:42,height:42,anchor:"bottom center",tooltip:t.$t("message.AICenter.devName")+":"+e.name,data:{generated:!0}})}),200)})))}}))},changeDevFn:function(e,t){this.activeDevIndex=t},saveMark:function(){var e=this,t={},a=this.checkDevId.split(",");t.devType=a[0],t.devId=a[2],t.longitude=this.markLocation.longitude,t.latitude=this.markLocation.latitude,t.panoramaId=this.nextPano.id,t.projectSn=this.projectSn,Object(i.a)(t).then((function(t){200==t.code?(e.$message.success(e.$t("message.AICenter.addSuccess")),e.dialogVisible=!1,e.getDevMarkList(2)):e.$message.error(t.message)}))}}},n=(a("4c82f"),a("2877")),r=Object(n.a)(s,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"fullHeight positionPage"},[i("div",{staticClass:"left fullHeight whiteBlock"},[i("div",{staticClass:"title"},[i("span",[e._v(e._s(e.$t("message.AICenter.panorama")))])]),i("div",{staticClass:"list_content"},[e.panoramaList.length>0?i("vue-scroll",e._l(e.panoramaList,(function(t,s){return i("div",{key:s,staticClass:"flex content_data",class:{active:e.activePanoramicIndex==s},on:{click:function(a){return e.changePanoramicFn(t,s)}}},[i("div",[e._v(e._s(t.imageName))]),i("div",{staticClass:"flex2"},[i("img",{staticClass:"icon",staticStyle:{"margin-right":"16px"},attrs:{src:a("0e0b")},on:{click:function(a){return a.stopPropagation(),e.editPanoramicFn(t)}}}),i("img",{staticClass:"icon",attrs:{src:a("f2df")},on:{click:function(a){return a.stopPropagation(),e.deletePanoramicFn(t)}}})])])})),0):i("div",{staticClass:"placeholderBox"},[e._v(" "+e._s(e.$t("message.personnelPosition.mapManage.no_data"))+" ")])],1),i("div",{staticClass:"addFirm",on:{click:e.addPanoramicBtn}},[e._v(e._s(e.$t("message.AICenter.addPanorama")))])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.panoramaList.length>0,expression:"panoramaList.length > 0"}],staticClass:"right fullHeight whiteBlock"},[i("div",{staticClass:"flex2 btn_wrap"},[i("el-button",{staticStyle:{"margin-left":"15px"},attrs:{size:"small",type:"primary"},on:{click:e.editMarkBtn}},[e._v(e._s(e.editMark?e.$t("message.AICenter.cancel"):e.$t("message.AICenter.editLocation")))])],1),i("div",{staticClass:"photosphere",attrs:{id:"photosphere"}})]),0==e.panoramaList.length?i("div",{staticClass:"right fullHeight whiteBlock"},[i("div",{staticClass:"nodata_wrap"},[i("img",{attrs:{src:a("f4f0")}}),i("div",[e._v(e._s(e.$t("message.laborMange.noData")))])])]):e._e(),i("el-dialog",{attrs:{"modal-append-to-body":!1,title:e.dialogTitle,visible:e.addPanoramicDialog,width:"667px"},on:{"update:visible":function(t){e.addPanoramicDialog=t}}},[i("div",{staticClass:"dialog_content"},[i("el-form",{ref:"imgForm",staticClass:"dialogFormBox",attrs:{size:"medium",model:e.imgForm,"label-width":"140px"}},[i("el-form-item",{attrs:{label:e.$t("message.AICenter.photoName")+":",prop:"imageName",rules:[{required:!0,message:e.$t("message.AICenter.placeholder")+e.$t("message.AICenter.photoName"),trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:e.$t("message.AICenter.placeholder")},model:{value:e.imgForm.imageName,callback:function(t){e.$set(e.imgForm,"imageName",t)},expression:"imgForm.imageName"}})],1),i("el-form-item",{attrs:{label:e.$t("message.AICenter.updataPhoto")+":",prop:"imageUrl",rules:[{required:!0,message:e.$t("message.AICenter.pleaseUpdataPhoto"),trigger:"blur"}]}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl,"show-file-list":!1,"on-success":e.handleSuccess,name:"files","on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove}},[e.imgForm.imageUrl?i("img",{staticClass:"avatar",attrs:{src:e.fileUrl+e.imgForm.imageUrl}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),i("div",{staticClass:"dialog-footer"},[i("el-button",{staticClass:"cancleBtn",attrs:{icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.addPanoramicDialog=!1}}},[e._v(e._s(e.$t("message.personnelPosition.cancel"))+" ")]),i("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:function(t){return e.savePanoramicFn("imgForm")}}},[e._v(e._s(e.$t("message.personnelPosition.determine"))+" ")])],1)],1)],1)]),i("el-dialog",{attrs:{"modal-append-to-body":!1,title:e.$t("message.AICenter.connectDev"),visible:e.dialogVisible,width:"70%","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"dialog_content",staticStyle:{height:"550px"}},[i("div",{staticClass:"flex3",staticStyle:{height:"86%"}},[i("div",{staticClass:"left"},[i("div",{staticClass:"title"},[i("span",[e._v(e._s(e.$t("message.AICenter.devType")))])]),e.devList.length>0?i("vue-scroll",{staticStyle:{height:"100%"}},e._l(e.devList,(function(t,a){return i("div",{key:a,staticClass:"flex content_data",class:{active:e.activeDevIndex==a},on:{click:function(i){return e.changeDevFn(t,a)}}},[i("div",[e._v(e._s(t.name))])])})),0):e._e()],1),i("div",{staticClass:"right",staticStyle:{padding:"0 15px"}},[i("vue-scroll",{staticStyle:{height:"100%"}},[i("el-table",{ref:"multipleTable",staticClass:"tables",staticStyle:{width:"100%"},attrs:{data:e.devList[e.activeDevIndex].list}},[i("el-table-column",{attrs:{label:e.$t("message.AICenter.choose"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.row.devType+",id,"+t.row.devId},model:{value:e.checkDevId,callback:function(t){e.checkDevId=t},expression:"checkDevId"}},[i("i")])]}}])}),i("el-table-column",{attrs:{prop:"name",label:e.$t("message.AICenter.devName")}}),i("el-table-column",{attrs:{prop:"devSn",label:e.$t("message.AICenter.devNo")}})],1)],1)],1)]),i("div",{staticClass:"dialog-footer"},[i("el-button",{staticClass:"cancleBtn",attrs:{icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.dialogVisible=!1,e.checkDevId=""}}},[e._v(e._s(e.$t("message.personnelPosition.cancel"))+" ")]),i("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:e.saveMark}},[e._v(e._s(e.$t("message.personnelPosition.determine"))+" ")])],1)])])],1)}),[],!1,null,"52b46983",null);t.default=r.exports},c070:function(e,t,a){},f2df:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAO5JREFUKBVjZEADbyydKv4zMMQhCzMyMCwSOb6vA0Xsja2TGcO//zLIggTZTIxPWBj+MqgzMDCqEVSMrOAvAzeY+///f8YvDl4SyHLY2CA1ILUgOSYQ8cbWRfX7r+8TQGwQeGPlOBHCQmV///ljIkgtSA6skfEvMxPQIDAbJPiPgcEJRIMAMhsYaIwgtSBxuGIQhxQwYjUCI+oHLKCQ2TAxEI09cBh5neCKUNgM4MgHyYEZoBTx7ef3Y8yMTNEMjP8+wTUhM/4z8f39/28pFzunFc+BbS/gJryydk4GJnZ3ZLUYbCbGnWJH984FiQMACsZEV2/V6FcAAAAASUVORK5CYII="},f4db:function(e,t,a){"use strict";a.d(t,"g",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return r})),a.d(t,"d",(function(){return o})),a.d(t,"f",(function(){return c})),a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return d})),a.d(t,"h",(function(){return m}));var i=a("22b6"),s=function(e){return Object(i.b)("xmgl/virtualRealityPanoramaRecord/selectVirtualRealityPanoramaList",e)},n=function(e){return Object(i.b)("xmgl/virtualRealityPanoramaRecord/add",e)},r=function(e){return Object(i.b)("xmgl/virtualRealityPanoramaRecord/edit",e)},o=function(e){return Object(i.b)("xmgl/virtualRealityPanoramaRecord/delete",e)},c=function(e){return Object(i.b)("xmgl/virtualRealityDevPoint/selectVirtualRealityDevPointList",e)},l=function(e){return Object(i.b)("xmgl/virtualRealityDevPoint/add",e)},d=function(e){return Object(i.b)("xmgl/virtualRealityDevPoint/delete",e)},m=function(e){return Object(i.b)("xmgl/standardDev/selectStandardDevStatisticsBySn",e)}},f4f0:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABBCAYAAABCbvOuAAAAAXNSR0IArs4c6QAABz9JREFUeAHtXGtsFEUcn//sbvcehZaWAiJCoYm8BDERxCfaxESBqG25QiQk9It+M9HEoFDg2hIIavSD8YN+IBpNREpLMCpGJSQISAAFkZcoGEQojz6Q693e7e3OOEO4cq13vevtTI/HTnLZudn/a34z+5//zM4sQndACgapGthEC2RWVZUpnMsOUopPvYOGm1Gz1LItv1B9WLNLR2pHPnoZ4v3JPazFp6OTdiGj2dkfnZN74IQ5E++i9eHR8Rg8hhAuRohaBOFIJp5s7wMiHkSRwuR2Dh3r3fZxHUT78vJGPN+APJ2qMQPZ4IXJnh+nHkNWMAikL63T/9KAXLyejonGYnMJoL9Vv75v06uoCwCoU4MT/AsajMVEQWcZJGMppXHLE/7my2VlocR9fq1qjDyMEZ6WXMZo/2hd7d2RXCYij0UI6SuD+6NILFoJlJ7astLzbfNr0CkSxB59RDGKdM9WCgi0WOHzgXdpSc89lmld6d07ulj/BBN6jAD9s3Sk/tmiyR4pj7cUINFpNAoj8MAQz57kisnIb1gGIbXQu5UBFbG7o88F3qKjEnp4473/CsSQqpisUWPMl0Zqa8FO3Bd5lQOkGS9DmIRYTzREGptOFtej2t6vKJB224jOeyFolCfTDivTDiqTvPuTy0Tn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