wisdomisite-java/src/main/resources/static/js/chunk-1043b455.6547b14e.js
2023-02-21 16:58:52 +08:00

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1043b455"],{"034d":function(e,t,n){e.exports=n.p+"img/jlwModel.f70ce66c.png"},"04de":function(e,t,n){},"348c":function(e,t,n){"use strict";var i=n("04de");n.n(i).a},"64be":function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"x",(function(){return s})),n.d(t,"u",(function(){return r})),n.d(t,"V",(function(){return a})),n.d(t,"U",(function(){return l})),n.d(t,"J",(function(){return c})),n.d(t,"y",(function(){return u})),n.d(t,"A",(function(){return d})),n.d(t,"L",(function(){return m})),n.d(t,"M",(function(){return g})),n.d(t,"N",(function(){return f})),n.d(t,"O",(function(){return b})),n.d(t,"g",(function(){return p})),n.d(t,"I",(function(){return h})),n.d(t,"X",(function(){return B})),n.d(t,"h",(function(){return j})),n.d(t,"T",(function(){return v})),n.d(t,"o",(function(){return x})),n.d(t,"K",(function(){return F})),n.d(t,"P",(function(){return O})),n.d(t,"e",(function(){return I})),n.d(t,"f",(function(){return $})),n.d(t,"t",(function(){return M})),n.d(t,"W",(function(){return C})),n.d(t,"G",(function(){return y})),n.d(t,"H",(function(){return w})),n.d(t,"Q",(function(){return A})),n.d(t,"B",(function(){return S})),n.d(t,"C",(function(){return _})),n.d(t,"p",(function(){return P})),n.d(t,"a",(function(){return D})),n.d(t,"l",(function(){return k})),n.d(t,"q",(function(){return R})),n.d(t,"v",(function(){return L})),n.d(t,"j",(function(){return T})),n.d(t,"R",(function(){return E})),n.d(t,"S",(function(){return N})),n.d(t,"z",(function(){return U})),n.d(t,"b",(function(){return z})),n.d(t,"F",(function(){return K})),n.d(t,"E",(function(){return V})),n.d(t,"d",(function(){return H})),n.d(t,"s",(function(){return Q})),n.d(t,"w",(function(){return q})),n.d(t,"k",(function(){return J})),n.d(t,"n",(function(){return Y})),n.d(t,"m",(function(){return G})),n.d(t,"D",(function(){return W})),n.d(t,"c",(function(){return Z})),n.d(t,"r",(function(){return X}));var i=n("22b6"),o=function(e){return Object(i.b)("xmgl/project/add",e)},s=function(e){return Object(i.b)("xmgl/project/edit",e)},r=function(e){return Object(i.b)("xmgl/project/delete",e)},a=function(e){return Object(i.a)("xmgl/systemProvinces/selectProvincesCityList",e)},l=function(e){return Object(i.b)("xmgl/project/selectCompanyProjectPage",e)},c=function(e){return Object(i.b)("xmgl/projectConfig/getProjectConfigList",e)},u=function(e){return Object(i.b)("xmgl/projectConfig/edit",e)},d=function(e){return Object(i.b)("forged/getToken",e)},m=function(e){return Object(i.b)("xmgl/projectBim/add",e)},g=function(e){return Object(i.b)("xmgl/projectBim/delete",e)},f=function(e){return Object(i.b)("xmgl/projectBim/edit",e)},b=function(e){return Object(i.b)("xmgl/projectBim/list",e)},p=function(e){return Object(i.b)("xmgl/projectBimConfig/addOrEditProjectBimConfig",e)},h=function(e){return Object(i.b)("xmgl/projectBimConfig/getProjectBimConfigInfo",e)},B=function(e){return Object(i.b)("xmgl/projectBim/updateMainModel",e)},j=function(e){return Object(i.b)("xmgl/bimDevPoint/addOrUpdateBimDevPoint",e)},v=function(e){return Object(i.b)("xmgl/bimDevPoint/selectBimDevPointList",e)},x=function(e){return Object(i.b)("xmgl/bimDevPoint/deleteBimDevPoint",e)},F=function(e){return Object(i.b)("xmgl/videoItem/getVideoItemInfo",e)},O=function(e){return Object(i.a)("/xmgl/bimface/selectProjectBimfaceList",e)},I=function(e){return Object(i.b)("/xmgl/bimface/addBimfaceConfig",e)},$=function(e){return Object(i.b)("/xmgl/bimface/uploadFile",e)},M=function(e){return Object(i.a)("/xmgl/bimface/deleteProjectBim",e)},C=function(e){return Object(i.a)("/xmgl/bimface/updateEnabled",e)},y=function(e){return Object(i.a)("/xmgl/bimface/getConfigStatus",e)},w=function(e){return Object(i.a)("/xmgl/bimface/getViewTokenByFileId",e)},A=function(e){return Object(i.b)("/xmgl/massReboundBuild/selectBuildInfoList",e)},S=function(e){return Object(i.b)("/xmgl/massReboundBuild/getBuildFloorList",e)},_=function(e){return Object(i.b)("/xmgl/massReboundFloor/selectFloorAndRoomList",e)},P=function(e){return Object(i.b)("/xmgl/massReboundBuild/delete",e)},D=function(e){return Object(i.b)("/xmgl/massReboundBuild/addBatchBuildFloor",e)},k=function(e){return Object(i.b)("/xmgl/massReboundFloor/selectFloorAndRoomList",e)},R=function(e){return Object(i.b)("/xmgl/massReboundFloor/delete",e)},L=function(e){return Object(i.b)("/xmgl/massReboundRoom/delete",e)},T=function(e){return Object(i.b)("/xmgl/massReboundRoom/add",e)},E=function(e){return Object(i.b)("/xmgl/massReboundBuild/editBatchName",e)},N=function(e){return Object(i.b)("/xmgl/massReboundFloor/updateBatchName",e)},U=function(e){return Object(i.b)("xmgl/massReboundBuild/selectBuildAndRoomList",e)},z=function(e){return Object(i.b)("/xmgl/massReboundFloor/add",e)},K=function(e){return Object(i.b)("/xmgl/houseType/selectHouseTypeCountList",e)},V=function(e){return Object(i.b)("/xmgl/houseType/list",e)},H=function(e){return Object(i.b)("/xmgl/houseType/add",e)},Q=function(e){return Object(i.b)("/xmgl/houseType/delete",e)},q=function(e){return Object(i.b)("/xmgl/houseType/edit",e)},J=function(e){return Object(i.b)("/xmgl/massReboundRoom/saveBatchBind",e)},Y=function(e){return Object(i.b)("/xmgl/massReboundRoom/deleteBind",e)},G=function(e){return Object(i.b)("/xmgl/massReboundRoom/deleteFloorBind",e)},W=function(e){return Object(i.b)("/xmgl/functionRoom/selectList",e)},Z=function(e){return Object(i.b)("/xmgl/functionRoom/add",e)},X=function(e){return Object(i.b)("/xmgl/functionRoom/delete",e)}},8604:function(e,t,n){"use strict";n.r(t);var i=(n("4160"),n("159b"),n("64be")),o={data:function(){return{token:"",model:1,url:"",iframe:null}},props:{fileId:{default:"10000757034823"}},created:function(){},mounted:function(){this.url=window.location.origin+"/bim.html",this.iframe=document.getElementById("iframe"),window.addEventListener("message",this.getIframeMessage),this.getModelList()},watch:{fileId:{handler:function(e,t){var n=this;e!=t&&this.$nextTick((function(){n.load(),window.addEventListener("message",n.getIframeMessage)}))},deep:!0}},methods:{load:function(){this.iframe.contentWindow.postMessage("Message from parentload complate")},getIframeMessage:function(e){},getModelList:function(){var e=this;Object(i.P)({projectSn:this.$store.state.projectSn}).then((function(t){e.buildList=t.result.page.records,t.result.page.records.forEach((function(t){t.isEnable&&e.getToken(t.fileId)}))}))},getToken:function(e){var t=this;Object(i.H)({fileId:e,projectSn:this.$store.state.projectSn}).then((function(e){var n=e.result;t.iframe.contentWindow.postMessage({token:n})}))}}},s=n("2877"),r={components:{overview:Object(s.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fullHeight"},[n("iframe",{attrs:{src:e.url,frameborder:"0",width:"100%",height:"100%",id:"iframe"},on:{load:e.load}})])}),[],!1,null,null,null).exports},data:function(){return{fileId:"",dialogTableVisible:!1,buildList:[],addBuildDialog:!1,isAdd:!0,addBuildForm:{version:"",modelName:"",modelUrl:"",projectSn:""},uploadParams:{modelName:"",projectSn:""},fullscreenLoading:!1,beaconFormRules:{modelName:[{required:!0,message:this.$t("message.personnelPosition.required"),trigger:"blur"}],version:[{required:!0,message:this.$t("message.personnelPosition.required"),trigger:"blur"}]},configFormRules:{appKey:[{required:!0,message:this.$t("message.personnelPosition.required"),trigger:"blur"}],appSecret:[{required:!0,message:this.$t("message.personnelPosition.required"),trigger:"blur"}]},activeBuildIndex:0,configDialog:!1,configForm:{appKey:"",appSecret:"",type:1}}},mounted:function(){this.getConfigFn(),this.loadData()},methods:{submitConfigData:function(){var e=this;this.$refs.configForm.validate((function(t){if(!t)return!1;e.configForm.projectSn=e.$store.state.projectSn,Object(i.e)(e.configForm).then((function(t){e.configDialog=!1,e.loadData(),e.$message.success(e.$t("message.BIMmanage.configSuccess")+"!")}))}))},getIntro:function(){this.dialogTableVisible=!0,this.url="@/assets/images/projectImg/jlwModel.png.png"},registerCount:function(){window.open("https://bimface.com/user-console/login")},setToMain:function(e,t){var n=this,o=t;for(var s in this.buildList)s!=o&&(this.buildList[s].isEnable=!1);Object(i.W)({projectSn:this.$store.state.projectSn,id:e.id}).then((function(e){n.loadData()}))},getConfigFn:function(){var e=this;Object(i.G)({projectSn:this.$store.state.projectSn}).then((function(t){t.result?(e.configForm=t.result.bimfaceConfig,e.loadData()):e.configDialog=!0}))},addFn:function(){this.addBuildDialog=!0,this.isAdd=!0,""!=this.addBuildForm.modelUrl&&this.$refs.upload.clearFiles(),this.addBuildForm.modelName="",this.addBuildForm.version="",this.addBuildForm.modelUrl=""},exceedFn:function(e,t){this.$message.warning(this.$t("message.BIMmanage.tipText")+e.length+this.$t("message.BIMmanage.tipText2")+(e.length+t.length)+this.$t("message.BIMmanage.tipText3"))},changeUpload:function(e,t){},uploadMapSuccess:function(e){this.addBuildForm.modelUrl=e.data[0].imageUrl},editBuildFn:function(e){this.isAdd=!1,this.addBuildForm=JSON.parse(JSON.stringify(e)),this.addBuildDialog=!0},changeBuildFn:function(e,t){this.activeBuildIndex=t,this.buildList.length>0&&(this.fileId=parseInt(this.buildList[this.activeBuildIndex].fileId))},loadData:function(){var e=this;Object(i.P)({projectSn:this.$store.state.projectSn}).then((function(t){e.buildList=t.result.page.records,t.result.page.records.forEach((function(t,n){0==t.isEnable?t.isEnable=!1:(t.isEnable=!0,e.activeBuildIndex=n,e.fileId=t.fileId)}))}))},submitData:function(){var e=this;this.$refs.addBuildForm.validate((function(t){if(!t)return!1;e.isAdd?(""==e.addBuildForm.modelUrl?e.$message.error(e.$t("message.BIMmanage.pleaseChooseFile")):(e.uploadParams.modelName=e.addBuildForm.modelName,e.uploadParams.projectSn=e.$store.state.projectSn,e.fullscreenLoading=e.$loading({lock:!0,text:e.$t("message.BIMmanage.loading"),spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),e.$refs.upload.submit()),e.addBuildForm.projectSn=e.$store.state.projectSn,Object(i.f)(e.addBuildForm).then((function(t){e.addBuildDialog=!1,e.loadData(),e.$message.success(e.$t("message.personnelPosition.add_success"))}))):Object(i.N)(e.addBuildForm).then((function(t){e.addBuildDialog=!1,e.loadData(),e.$message.success(e.$t("message.personnelPosition.edit_success"))}))}))},deleteFn:function(e){var t=this;this.$confirm(this.$t("message.BIMmanage.tipText4")+"【"+e.modelName+"】,"+this.$t("message.BIMmanage.tipText5")+"?",this.$t("message.BIMmanage.tip"),{confirmButtonText:this.$t("message.BIMmanage.confirm"),cancelButtonText:this.$t("message.BIMmanage.cancel"),type:"warning"}).then((function(){Object(i.t)({id:e.id}).then((function(e){t.$message({type:"success",message:t.$t("message.BIMmanage.deleteSuccess")+"!"}),t.loadData()}))})).catch((function(){t.$message({type:"info",message:t.$t("message.BIMmanage.cancelDelete")+"!"})}))}}},a=(n("348c"),Object(s.a)(r,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"fullHeight"},[i("div",{staticClass:"left fullHeight whiteBlock"},[i("div",{staticClass:"title"},[i("span",[e._v(e._s(e.$t("message.BIMmanage.model")))]),i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{type:"default",size:"mini"},on:{click:function(t){e.configDialog=!0}}},[e._v(e._s(e.$t("message.BIMmanage.confingServer")))])],1),i("div",{staticClass:"list_content"},[e.buildList.length>0?i("vue-scroll",e._l(e.buildList,(function(t,o){return i("div",{key:o,staticClass:"flex content_data",class:{active:e.activeBuildIndex==o},on:{click:function(n){return e.changeBuildFn(t,o)}}},[i("div",[e._v(e._s(t.modelName))]),i("div",{staticClass:"flex2"},[i("el-switch",{on:{change:function(n){return e.setToMain(t,o)}},model:{value:t.isEnable,callback:function(n){e.$set(t,"isEnable",n)},expression:"item.isEnable"}}),i("img",{staticClass:"icon",staticStyle:{"margin-left":"8px"},attrs:{src:n("f2df")},on:{click:function(n){return n.stopPropagation(),e.deleteFn(t)}}})],1)])})),0):i("div",{staticClass:"placeholderBox"},[e._v(e._s(e.$t("message.personnelPosition.mapManage.no_data")))])],1),i("div",{staticClass:"addFirm",on:{click:e.addFn}},[e._v(" "+e._s(e.$t("message.BIMmanage.updateNewModel"))+" ")])]),i("div",{staticClass:"right fullHeight"},[i("div",{staticClass:"mapContainer whiteBlock"},[i("overview",{attrs:{urn:e.buildList.length>0?e.buildList[e.activeBuildIndex].bimUrn:"",fileId:e.buildList.length>0?parseInt(e.buildList[e.activeBuildIndex].fileId):"",opendrawlabel:!0}})],1)]),i("el-dialog",{attrs:{"modal-append-to-body":!1,title:e.$t("message.BIMmanage.updateNewModel"),visible:e.addBuildDialog,width:"667px"},on:{"update:visible":function(t){e.addBuildDialog=t}}},[i("div",{staticClass:"dialog_content"},[i("el-form",{ref:"addBuildForm",staticClass:"dialogFormBox",attrs:{size:"medium",model:e.addBuildForm,rules:e.beaconFormRules,"label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("message.BIMmanage.modelName"),prop:"modelName"}},[i("el-input",{attrs:{placeholder:e.$t("message.personnelPosition.please_enter")},model:{value:e.addBuildForm.modelName,callback:function(t){e.$set(e.addBuildForm,"modelName",t)},expression:"addBuildForm.modelName"}})],1),i("el-form-item",{attrs:{label:"模型版本号",prop:"version"}},[i("el-input",{attrs:{placeholder:e.$t("message.personnelPosition.please_enter")},model:{value:e.addBuildForm.version,callback:function(t){e.$set(e.addBuildForm,"version",t)},expression:"addBuildForm.version"}})],1),i("el-form-item",{attrs:{label:e.$t("message.BIMmanage.modelFile"),prop:"modelUrl"}},[i("el-upload",{ref:"upload",staticClass:"uploadBtn",attrs:{name:"files",action:"http://47.97.202.104:6023/upload/image","show-file-list":!0,data:e.uploadParams,"on-change":e.changeUpload,"on-success":e.uploadMapSuccess,limit:1,"on-exceed":e.exceedFn}},[i("el-button",{attrs:{slot:"trigger",type:"primary",size:"medium"},slot:"trigger"},[e._v(e._s(e.$t("message.BIMmanage.chooseFile")))]),i("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger",size:"medium"},on:{click:function(t){e.$refs.upload.clearFiles(),e.addBuildForm.modelUrl=""}}},[e._v(e._s(e.$t("message.BIMmanage.cleanFile")))]),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.addBuildForm.modelUrl.name))])],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.addBuildDialog=!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:e.submitData}},[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.BIMmanage.confingServerData"),visible:e.configDialog,width:"700px","close-on-click-modal":!!e.configForm.id,"show-close":!!e.configForm.id},on:{"update:visible":function(t){e.configDialog=t}}},[i("div",{staticClass:"dialog_content"},[i("p",{directives:[{name:"show",rawName:"v-show",value:e.configForm.id,expression:"configForm.id"}],staticClass:"redText",staticStyle:{"margin-bottom":"20px","text-align":"center"}},[e._v(e._s(e.$t("message.BIMmanage.warnText")))]),i("el-form",{ref:"configForm",staticClass:"dialogFormBox",attrs:{size:"medium",model:e.configForm,rules:e.configFormRules,"label-width":"140px"}},[i("el-form-item",{attrs:{label:"AppKey(公钥):",prop:"appKey"}},[i("el-input",{attrs:{placeholder:e.$t("message.personnelPosition.please_enter")},model:{value:e.configForm.appKey,callback:function(t){e.$set(e.configForm,"appKey",t)},expression:"configForm.appKey"}}),i("el-button",{attrs:{type:"text",size:"medium"},on:{click:e.getIntro}},[e._v(e._s("获取公钥"))])],1),i("el-form-item",{attrs:{label:"AppSecrt(私钥):",prop:"appSecret"}},[i("el-input",{attrs:{width:"200",type:"password","show-password":!0,placeholder:e.$t("message.personnelPosition.please_enter")},model:{value:e.configForm.appSecret,callback:function(t){e.$set(e.configForm,"appSecret",t)},expression:"configForm.appSecret"}}),i("el-button",{attrs:{type:"text",size:"medium"},on:{click:e.getIntro}},[e._v(e._s("获取私钥"))])],1),i("div",{staticClass:"dialog-footer"},[i("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.registerCount}},[e._v(e._s("获取模型帐号"))]),i("el-button",{attrs:{type:"primary",icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.configDialog=!1}}},[e._v(e._s("取消"))]),i("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:e.submitConfigData}},[e._v(e._s(e.$t("message.personnelPosition.determine")))])],1)],1)],1)]),i("el-dialog",{attrs:{title:"使用说明",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[i("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:n("034d")}})])],1)}),[],!1,null,"048235e0",null));t.default=a.exports},f2df:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAO5JREFUKBVjZEADbyydKv4zMMQhCzMyMCwSOb6vA0Xsja2TGcO//zLIggTZTIxPWBj+MqgzMDCqEVSMrOAvAzeY+///f8YvDl4SyHLY2CA1ILUgOSYQ8cbWRfX7r+8TQGwQeGPlOBHCQmV///ljIkgtSA6skfEvMxPQIDAbJPiPgcEJRIMAMhsYaIwgtSBxuGIQhxQwYjUCI+oHLKCQ2TAxEI09cBh5neCKUNgM4MgHyYEZoBTx7ef3Y8yMTNEMjP8+wTUhM/4z8f39/28pFzunFc+BbS/gJryydk4GJnZ3ZLUYbCbGnWJH984FiQMACsZEV2/V6FcAAAAASUVORK5CYII="}}]);