wisdomisite-java/src/main/resources/static/js/chunk-75ffaaeb.711cf721.js
2023-02-21 16:58:52 +08:00

1 line
15 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-75ffaaeb"],{"14d0":function(e,t,r){"use strict";r.d(t,"h",(function(){return n})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"j",(function(){return d})),r.d(t,"i",(function(){return m})),r.d(t,"g",(function(){return f}));var o=r("22b6"),n=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/list",e)},i=function(e){return Object(o.b)("xmgl/dischargingPlatformCurrentData/getNewestDischargingPlatformCurrentData",e,"aa")},a=function(e){return Object(o.b)("xmgl/dischargingPlatformCurrentData/getTodayDischargingPlatformCurrentDataList",e,"aa")},s=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/add",e)},l=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/edit",e)},c=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/queryById",e)},u=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/delete",e)},d=function(e){return Object(o.b)("xmgl/dischargingPlatformDev/updateDischargingPlatformCoordinate",e)},m=function(e){return Object(o.b)("xmgl/dischargingPlatformAlarm/list",e)},f=function(e){return Object(o.b)("xmgl/dischargingPlatformCurrentData/list",e)}},"4a06":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"h",(function(){return i})),r.d(t,"f",(function(){return a})),r.d(t,"m",(function(){return s})),r.d(t,"q",(function(){return l})),r.d(t,"i",(function(){return c})),r.d(t,"p",(function(){return u})),r.d(t,"e",(function(){return d})),r.d(t,"k",(function(){return m})),r.d(t,"o",(function(){return f})),r.d(t,"n",(function(){return h})),r.d(t,"v",(function(){return g})),r.d(t,"d",(function(){return p})),r.d(t,"u",(function(){return k})),r.d(t,"c",(function(){return b})),r.d(t,"r",(function(){return y})),r.d(t,"l",(function(){return I})),r.d(t,"t",(function(){return v})),r.d(t,"b",(function(){return P})),r.d(t,"j",(function(){return A})),r.d(t,"g",(function(){return x})),r.d(t,"s",(function(){return w}));var o=r("22b6"),n=function(e){return Object(o.b)("xmgl/baseRole/add",e)},i=function(e){return Object(o.b)("xmgl/baseRole/edit",e)},a=function(e){return Object(o.b)("xmgl/baseRole/delete",e)},s=function(e){return Object(o.b)("xmgl/baseRole/getProjectBaseRoleList",e)},l=function(e){return Object(o.b)("xmgl/baseAuthority/getRoleAuthorityList",e)},c=function(e){return Object(o.b)("xmgl/baseAuthority/grantAuthorityRole",e)},u=function(e){return Object(o.b)("xmgl/baseMenu/getProjectModuleGroupMenuList",e)},d=function(e){return Object(o.b)("xmgl/systemUser/addProjectUser",e)},m=function(e){return Object(o.b)("xmgl/systemUser/editProjectUser",e)},f=function(e){return Object(o.b)("xmgl/systemUser/getProjectChilderSystemUserList",e)},h=function(e){return Object(o.b)("xmgl/workerInfo/getLaborManagementInfoList",e)},g=function(e){return Object(o.b)("xmgl/userEnterprise/selectUserEnterpriseByUserId",e)},p=function(e){return Object(o.b)("xmgl/userEnterprise/addOrEditUserEnterprise",e)},k=function(e){return Object(o.b)("xmgl/userDevAuthority/selectUserDevAuthorityByUserId",e)},b=function(e){return Object(o.b)("xmgl/userDevAuthority/addOrEditUserDevAuthority",e)},y=function(e){return Object(o.b)("xmgl/videoItem/selecAllVideoList",e)},I=function(e){return Object(o.b)("xmgl/smsPlatformConfig/editSmsConfig",e)},v=function(e){return Object(o.b)("xmgl/smsPlatformConfig/selectSmsPlatformConfig",e)},P=function(e){return Object(o.b)("xmgl/noticeRemindSound/add",e)},A=function(e){return Object(o.b)("xmgl/noticeRemindSound/edit",e)},x=function(e){return Object(o.b)("xmgl/noticeRemindSound/delete",e)},w=function(e){return Object(o.b)("xmgl/noticeRemindSound/list",e)}},"8ccc":function(e,t,r){"use strict";r.r(t);var o=(r("c975"),r("a15b"),r("ac1f"),r("1276"),r("14d0")),n=r("4a06"),i={data:function(){return{projectSn:"",uploadUrl:"",fileUrl:"",rules:{devName:[{required:!0,message:this.$t("message.unload.rules.devName[0].message"),trigger:"blur"}]},facilityForm:{devName:"",devSn:"",maxLoad:"",promptAlarmPushWorkerId:"",importantAlarmPushWorkerId:"",secondaryAlarmPushWorkerId:"",urgentAlarmPushWorkerId:""},checkTowerId:"",checkedId:0,unloadList:[],rightTitle:this.$t("message.unload.sceneImg"),driverList:[],showTowerInfo:!1,bgUrl:"",isDevBackEnd:!1}},created:function(){this.uploadUrl=this.$store.state.UPLOADURL,this.fileUrl=this.$store.state.FILEURL,this.projectSn=this.$store.state.projectSn,this.getUnloadListApi(1),this.getWorkerInfoList(),this.bgUrl=this.$store.state.currentProDetail.constructionMapUrl,-1!=this.$route.path.indexOf("equipmentCenter")&&(this.isDevBackEnd=!0)},methods:{downloadFn:function(){window.open("/doc/"+this.$t("message.unload.unloadingAgreement")+".docx")},getUnloadListApi:function(e){var t=this,r={projectSn:this.projectSn};Object(o.h)(r).then((function(r){200==r.code&&(t.unloadList=r.result,1==e||(t.checkedId=t.unloadList.length,t.checkTowerId=t.unloadList[t.unloadList.length-1].id,t.selectMenu(t.checkedId)))}))},selectMenu:function(e){this.checkedId=e,0==e?(this.rightTitle=this.$t("message.unload.sceneImg"),this.showTowerInfo=!1,this.checkTowerId=""):(this.showTowerInfo=!0,this.unloadList[e-1].id&&(this.rightTitle=this.unloadList[e-1].devName,this.facilityForm=this.unloadList[e-1],this.checkTowerId=this.unloadList[e-1].id,this.getDetailsData(this.unloadList[e-1].id)))},getDetailsData:function(e){var t=this,r={id:e};Object(o.d)(r).then((function(e){200==e.code&&(t.facilityForm=e.result,t.facilityForm.importantAlarmPushWorkerId?-1!=t.facilityForm.importantAlarmPushWorkerId.indexOf(",")?t.facilityForm.importantAlarmPushWorkerId=t.facilityForm.importantAlarmPushWorkerId.split(","):t.facilityForm.importantAlarmPushWorkerId=[t.facilityForm.importantAlarmPushWorkerId]:t.facilityForm.importantAlarmPushWorkerId=[],t.facilityForm.promptAlarmPushWorkerId?-1!=t.facilityForm.promptAlarmPushWorkerId.indexOf(",")?t.facilityForm.promptAlarmPushWorkerId=t.facilityForm.promptAlarmPushWorkerId.split(","):t.facilityForm.promptAlarmPushWorkerId=[t.facilityForm.promptAlarmPushWorkerId]:t.facilityForm.promptAlarmPushWorkerId=[],t.facilityForm.secondaryAlarmPushWorkerId?-1!=t.facilityForm.secondaryAlarmPushWorkerId.indexOf(",")?t.facilityForm.secondaryAlarmPushWorkerId=t.facilityForm.secondaryAlarmPushWorkerId.split(","):t.facilityForm.secondaryAlarmPushWorkerId=[t.facilityForm.secondaryAlarmPushWorkerId]:t.facilityForm.secondaryAlarmPushWorkerId=[],t.facilityForm.urgentAlarmPushWorkerId?-1!=t.facilityForm.urgentAlarmPushWorkerId.indexOf(",")?t.facilityForm.urgentAlarmPushWorkerId=t.facilityForm.urgentAlarmPushWorkerId.split(","):t.facilityForm.urgentAlarmPushWorkerId=[t.facilityForm.urgentAlarmPushWorkerId]:t.facilityForm.urgentAlarmPushWorkerId=[])}))},newTowerBtn:function(){this.facilityForm={devName:"",devSn:"",promptAlarmPushWorkerId:[],importantAlarmPushWorkerId:[],secondaryAlarmPushWorkerId:[],urgentAlarmPushWorkerId:[]},this.showTowerInfo=!0,this.checkedId=-1,this.checkTowerId="",this.rightTitle=this.$t("message.unload.addDev2")},deleteOrCancel:function(){var e=this;-1==this.checkedId?(this.rightTitle=this.$t("message.unload.sceneImg"),this.checkedId=0,this.showTowerInfo=!1):this.$confirm(this.$t("message.unload.hintText"),this.$t("message.unload.hint"),{confirmButtonText:this.$t("message.unload.confirm"),cancelButtonText:this.$t("message.unload.cancel"),type:"warning"}).then((function(){var t={id:e.unloadList[e.checkedId-1].id};Object(o.b)(t).then((function(t){200==t.code?(e.checkedId=0,e.checkTowerId="",e.getUnloadListApi(1),e.showTowerInfo=!1,e.rightTitle=e.$t("message.unload.sceneImg"),e.$message({type:"success",message:e.$t("message.unload.removeSuccess")})):e.$message.error(t.message)}))})).catch((function(){e.$message({type:"info",message:e.$t("message.unload.cancelRemove")})}))},mousedown:function(e,t){var r=this,o=this.$refs.bgPackImg,n=o.scrollHeight-30,i=o.scrollWidth-30,a=e.target,s=e.clientX-a.offsetLeft,l=e.clientY-a.offsetTop;document.onmousemove=function(e){var o=e.clientX-s,a=e.clientY-l;o<0||a<0||a>n||o>i||(r.unloadList[t].mapX=o,r.unloadList[t].mapY=a)},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}},getWorkerInfoList:function(){var e=this,t={projectSn:this.projectSn};Object(n.o)(t).then((function(t){e.driverList=t.result}))},submit:function(){var e=this;this.$refs.facilityForm.validate((function(t){if(!t)return!1;var r=JSON.parse(JSON.stringify(e.facilityForm));r.projectSn=e.projectSn,r.mapX="0",r.mapY="0",r.importantAlarmPushWorkerId=r.importantAlarmPushWorkerId.join(","),r.promptAlarmPushWorkerId=r.promptAlarmPushWorkerId.join(","),r.secondaryAlarmPushWorkerId=r.secondaryAlarmPushWorkerId.join(","),r.urgentAlarmPushWorkerId=r.urgentAlarmPushWorkerId.join(","),-1==e.checkedId?Object(o.a)(r).then((function(t){200==t.code?(e.getUnloadListApi(2),e.$message.success(e.$t("message.unload.addSuccess"))):e.$message.error(t.message)})):Object(o.c)(r).then((function(t){200==t.code&&(e.getUnloadListApi(1),e.$message.success(e.$t("message.unload.editSuccess")))}))}))},saveTowerLocationBtn:function(){for(var e=this,t=[],r=0;r<this.unloadList.length;r++){var n={id:this.unloadList[r].id,mapX:this.unloadList[r].mapX,mapY:this.unloadList[r].mapY};t.push(n)}Object(o.j)(t).then((function(t){200==t.code&&(e.$message.success(e.$t("message.unload.saveSuccess")),e.getUnloadListApi(1))}))}}},a=(r("c4d0"),r("2877")),s=Object(a.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"cooperator flex"},[r("div",{staticClass:"left whiteBlock"},[r("vue-scroll",{staticStyle:{height:"94%"}},[r("el-menu",{staticClass:"el-menu-vertical-demo whiteBlock",attrs:{"default-active":String(e.checkedId)}},[r("el-menu-item",{staticClass:"el-menu-item",class:0==e.checkedId?"checked_item":"",attrs:{index:"0"},on:{click:function(t){return e.selectMenu(0)}}},[r("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("message.unload.menuTitle")))])]),e._l(e.unloadList,(function(t,o){return e.unloadList.length>0?r("el-menu-item",{key:o,staticClass:"el-menu-item",class:e.checkTowerId==t.id?"checked_item":"",attrs:{index:String(t.id)},on:{click:function(t){return e.selectMenu(o+1)}}},[r("span",{staticClass:"flex3 ",attrs:{slot:"title"},slot:"title"},[r("span",{staticClass:"title_index"},[e._v(e._s(o+1))]),r("span",{staticClass:"title_name"},[e._v(e._s(t.devName))])])]):e._e()}))],2)],1),r("div",{staticClass:"flex2 btn_pack"},[e.isDevBackEnd?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.newTowerBtn}},[e._v(e._s(e.$t("message.unload.addDev")))]):e._e(),e.isDevBackEnd?r("el-button",{attrs:{size:"small",type:"danger",disabled:0==e.checkedId},on:{click:e.deleteOrCancel}},[e._v(e._s(-1!=e.checkedId?e.$t("message.unload.removeDev"):e.$t("message.unload.cancelAdd")))]):e._e(),r("el-button",{attrs:{size:"small",type:"success",disabled:0!=e.checkedId},on:{click:e.saveTowerLocationBtn}},[e._v(e._s(e.$t("message.unload.saveDevPointInfo")))])],1)],1),r("div",{staticClass:"right"},[r("div",{staticClass:"pageTitle title flex2 whiteBlock",staticStyle:{"margin-bottom":"0"}},[e._v(" "+e._s(e.rightTitle)+" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.isDevBackEnd,expression:"isDevBackEnd"}],staticClass:"downloadBtn primaryText",on:{click:e.downloadFn}},[e._v(e._s(e.$t("message.unload.downLoadExcel")))])]),e.showTowerInfo?r("div",{staticClass:"content whiteBlock"},[r("vue-scroll",[r("el-form",{ref:"facilityForm",staticClass:"demo-facilityForm",attrs:{model:e.facilityForm,rules:e.$t("message.unload.rules"),"label-width":"150px"}},[r("el-form-item",{attrs:{label:e.$t("message.unload.devName"),prop:"devName"}},[r("el-input",{attrs:{placeholder:e.$t("message.unload.placeholderText")},model:{value:e.facilityForm.devName,callback:function(t){e.$set(e.facilityForm,"devName",t)},expression:"facilityForm.devName"}})],1),r("el-form-item",{attrs:{label:e.$t("message.unload.devNo"),prop:"devSn"}},[r("el-input",{attrs:{disabled:e.rightTitle!=e.$t("message.unload.addDev2"),placeholder:e.$t("message.unload.placeholderText2")},model:{value:e.facilityForm.devSn,callback:function(t){e.$set(e.facilityForm,"devSn",t)},expression:"facilityForm.devSn"}})],1),r("el-form-item",{attrs:{label:e.$t("message.unload.maxLoad"),prop:"maxLoad"}},[r("el-input",{attrs:{placeholder:e.$t("message.unload.placeholderText")},model:{value:e.facilityForm.maxLoad,callback:function(t){e.$set(e.facilityForm,"maxLoad",t)},expression:"facilityForm.maxLoad"}})],1),r("el-form-item",{attrs:{label:e.$t("message.unload.alarmPeople"),prop:"importantAlarmPushWorkerId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","collapse-tags":"",placeholder:e.$t("message.unload.placeholderText3")},model:{value:e.facilityForm.importantAlarmPushWorkerId,callback:function(t){e.$set(e.facilityForm,"importantAlarmPushWorkerId",t)},expression:"facilityForm.importantAlarmPushWorkerId"}},e._l(e.driverList,(function(e){return r("el-option",{key:e.workerId,attrs:{label:e.workerName,value:e.workerId+""}})})),1)],1),r("el-form-item",{attrs:{label:e.$t("message.unload.alarmPeople2"),prop:"urgentAlarmPushWorkerId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","collapse-tags":"",placeholder:e.$t("message.unload.placeholderText3")},model:{value:e.facilityForm.urgentAlarmPushWorkerId,callback:function(t){e.$set(e.facilityForm,"urgentAlarmPushWorkerId",t)},expression:"facilityForm.urgentAlarmPushWorkerId"}},e._l(e.driverList,(function(e){return r("el-option",{key:e.workerId,attrs:{label:e.workerName,value:e.workerId+""}})})),1)],1),r("el-form-item",{attrs:{label:e.$t("message.unload.alarmPeople3"),prop:"secondaryAlarmPushWorkerId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","collapse-tags":"",placeholder:e.$t("message.unload.placeholderText3")},model:{value:e.facilityForm.secondaryAlarmPushWorkerId,callback:function(t){e.$set(e.facilityForm,"secondaryAlarmPushWorkerId",t)},expression:"facilityForm.secondaryAlarmPushWorkerId"}},e._l(e.driverList,(function(e){return r("el-option",{key:e.workerId,attrs:{label:e.workerName,value:e.workerId+""}})})),1)],1),r("el-form-item",{attrs:{label:e.$t("message.unload.alarmPeople4"),prop:"promptAlarmPushWorkerId"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","collapse-tags":"",placeholder:e.$t("message.unload.placeholderText3")},model:{value:e.facilityForm.promptAlarmPushWorkerId,callback:function(t){e.$set(e.facilityForm,"promptAlarmPushWorkerId",t)},expression:"facilityForm.promptAlarmPushWorkerId"}},e._l(e.driverList,(function(e){return r("el-option",{key:e.workerId,attrs:{label:e.workerName,value:e.workerId+""}})})),1)],1),r("el-form-item",{attrs:{label:""}},[r("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.submit}},[e._v(e._s(e.$t("message.unload.save")))])],1)],1)],1)],1):r("div",{staticClass:"content whiteBlock"},[r("div",{staticClass:"bgPack"},[r("img",{ref:"bgPackImg",staticStyle:{width:"auto",height:"auto"},attrs:{src:e.bgUrl}}),e._l(e.unloadList,(function(t,o){return r("div",{key:o,staticClass:"point",style:{top:t.mapY+"px",left:t.mapX+"px"},on:{mousedown:function(t){return e.mousedown(t,o)}}},[e._v(" "+e._s(o+1)+" ")])}))],2)])])])}),[],!1,null,"07461118",null);t.default=s.exports},c4d0:function(e,t,r){"use strict";var o=r("c7a3");r.n(o).a},c7a3:function(e,t,r){}}]);