1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-16b431d8"],{2150:function(t,e,n){},"2de2":function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return a}));var c="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",u="/duoduo-service/",a="/duoduo-service/custom-service/"},"459d":function(t,e,n){"use strict";n.d(e,"i",(function(){return u})),n.d(e,"D",(function(){return a})),n.d(e,"x",(function(){return i})),n.d(e,"p",(function(){return d})),n.d(e,"k",(function(){return b})),n.d(e,"l",(function(){return s})),n.d(e,"b",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"S",(function(){return j})),n.d(e,"B",(function(){return l})),n.d(e,"q",(function(){return O})),n.d(e,"T",(function(){return v})),n.d(e,"a",(function(){return q})),n.d(e,"h",(function(){return S})),n.d(e,"g",(function(){return m})),n.d(e,"m",(function(){return g})),n.d(e,"o",(function(){return h})),n.d(e,"w",(function(){return P})),n.d(e,"y",(function(){return T})),n.d(e,"G",(function(){return y})),n.d(e,"u",(function(){return A})),n.d(e,"d",(function(){return E})),n.d(e,"C",(function(){return I})),n.d(e,"z",(function(){return k})),n.d(e,"A",(function(){return G})),n.d(e,"M",(function(){return w})),n.d(e,"H",(function(){return C})),n.d(e,"O",(function(){return N})),n.d(e,"j",(function(){return F})),n.d(e,"t",(function(){return B})),n.d(e,"Q",(function(){return D})),n.d(e,"E",(function(){return M})),n.d(e,"e",(function(){return V})),n.d(e,"N",(function(){return W})),n.d(e,"c",(function(){return L})),n.d(e,"I",(function(){return R})),n.d(e,"s",(function(){return x})),n.d(e,"r",(function(){return J})),n.d(e,"L",(function(){return H})),n.d(e,"R",(function(){return Q})),n.d(e,"P",(function(){return _})),n.d(e,"v",(function(){return z})),n.d(e,"K",(function(){return K})),n.d(e,"F",(function(){return Z})),n.d(e,"f",(function(){return U})),n.d(e,"J",(function(){return X})),n("99af");var c=n("59b9"),o=n("ba72"),r=n("2de2"),u=function(t){return Object(c.b)().request("/api/company/config/".concat(t.companyId),o.b.GET,void 0,o.a.json)},a=function(t){return Object(c.b)().request("".concat(r.c,"weather/getCurrent?").concat(t),o.b.GET,void 0,o.a.json)},i=function(t){return Object(c.b)().request("".concat(r.b,"space/property"),o.b.POST,t,o.a.json)},d=function(t){return Object(c.b)().request("".concat(r.b,"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(t.spaceId),o.b.GET,void 0,o.a.json)},b=function(t){return Object(c.b)().request("".concat(r.b,"object/equipment/findForServe?spaceId=").concat(t.spaceId),o.b.POST,void 0,o.a.json)},s=function(t){return Object(c.b)().request("".concat(r.b,"custom/feedback/documents"),o.b.POST,t,o.a.json)},f=function(t){return Object(c.b)().request("".concat(r.b,"custom/feedbackCreate/v2"),o.b.POST,t,o.a.json)},p=function(t){return Object(c.b)({timeout:15e4}).request("".concat(r.b,"light/status/query?spaceId=").concat(t.spaceId),o.b.GET,void 0,o.a.json)},j=function(t){return Object(c.c)("".concat(r.b,"light/onoff/set"),t)},l=function(t){return Object(c.c)("".concat(r.b,"light/onoff/setSatus"),t)},O=function(t){return Object(c.b)().request("".concat(r.b,"object/objectDataEqpGroup/query"),o.b.POST,t,o.a.json)},v=function(t){return Object(c.b)().request("".concat(r.b,"meeting/room/scene/switchover"),o.b.POST,t,o.a.json)},q=function(t){return Object(c.b)().request("".concat(r.b,"customScene/create"),o.b.POST,t,o.a.json)},S=function(t){return Object(c.b)().request("".concat(r.b,"/spaceAdjust/queryPropertyData?").concat(t),o.b.GET,void 0,o.a.json)},m=function(t){return Object(c.b)().request("".concat(r.c,"object/building/query"),o.b.POST,t,o.a.json)},g=function(t){return Object(c.b)().request("".concat(r.c,"object/floor/query"),o.b.POST,t,o.a.json)},h=function(t){return Object(c.b)().request("".concat(r.d,"map/queryMapInfo"),o.b.POST,t,o.a.json)},P=function(t){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceEquipType?").concat(t),o.b.GET,void 0,o.a.json)},T=function(t){return Object(c.b)().request("".concat(r.c,"object/space/query"),o.b.POST,t,o.a.json)},y=function(t){return Object(c.b)().request("".concat(r.d,"permanentSpace/save"),o.b.POST,t,o.a.json)},A=function(){return Object(c.b)().request("".concat(r.d,"permanentSpace/query"),o.b.GET,void 0,o.a.json)},E=function(t){return Object(c.b)().request("".concat(r.d,"permanentSpace/delete?").concat(t))},I=function(){return Object(c.b)().request("".concat(r.d,"permanentSpace/queryZJ"),o.b.GET,void 0,o.a.json)},k=function(){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceModeSet"),o.b.GET,void 0,o.a.json)},G=function(){return Object(c.b)().request("".concat(r.c,"object/equipment/querySpaceTempSet"),o.b.GET,void 0,o.a.json)},w=function(t){return Object(c.b)().request("".concat(r.d,"scene/querySpaceSceneConfig?").concat(t),o.b.GET,void 0,o.a.json)},C=function(t){return Object(c.b)().request("".concat(r.b,"customScene/queryCustomAndScence?").concat(t),o.b.GET,void 0,o.a.json)},N=function(t){return Object(c.c)("".concat(r.b,"customScene/saveBatchCustomScene"),t)},F=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/getDefaultLocation?").concat(t),o.b.GET,void 0,o.a.json)},B=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/getPadSpaceList?").concat(t),o.b.GET,void 0,o.a.json)},D=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/saveWorkSpace"),o.b.POST,t,o.a.json)},M=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/insertWorkSpace"),o.b.POST,t,o.a.json)},V=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/deleteWorkSpace"),o.b.POST,t,o.a.json)},W=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/queryWorkSpace"),o.b.POST,t,o.a.json)},L=function(t){return Object(c.b)().request("".concat(r.d,"padSpace/queryWorkSpace"),o.b.POST,t,o.a.json)},R=function(t){return Object(c.b)().request("".concat(r.e,"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o.b.POST,t,o.a.json)},x=function(t){return Object(c.b)().request("".concat(r.d,"padLogin/getPadQrCodeStatus?").concat(t),o.b.GET,void 0,o.a.json)},J=function(t){return Object(c.b)().request("".concat(r.d,"padImage/queryImageByFuncType?").concat(t),o.b.GET,void 0,o.a.json)},H=function(t){return Object(c.b)().request("".concat(r.b,"ctrl/querySpaceConditioners?").concat(t),o.b.GET,void 0,o.a.json)},Q=function(t){return Object(c.c)("".concat(r.b,"ctrl/set"),t)},_=function(t){return Object(c.b)().request("".concat(r.d,"/map/saveMapPointInfo"),o.b.POST,t,o.a.json)},z=function(t){return Object(c.b)().request("".concat(r.a,"equipmentRun/queryEquipmentRunConfig?").concat(t),o.b.GET,void 0,o.a.json)},K=function(t){return Object(c.b)().request("".concat(r.b,"ctrl/querySapceFloorHeating?").concat(t),o.b.GET,void 0,o.a.json)},Z=function(t){return Object(c.c)("".concat(r.d,"padSpace/insertWorkSpaceBatch"),t)},U=function(t){return Object(c.c)("".concat(r.d,"padSpace/deleteWorkSpaceBatch"),t)},X=function(t){return Object(c.b)().request("".concat(r.b,"ctrl/queryEquipmentStatusInfo?").concat(t),o.b.GET,void 0,o.a.json)}},"4be3":function(t,e,n){"use strict";function c(t){return Object(o.pushScopeId)("data-v-52976aba"),t=t(),Object(o.popScopeId)(),t}n.r(e);var o=n("7a23"),r={class:"com-upload"},u=c((function(){return Object(o.createElementVNode)("p",null,"四川大厦的地图上传功能",-1)})),a={class:"file-upload"},i=c((function(){return Object(o.createElementVNode)("div",{class:"file-upload-text"},"上传文件",-1)})),d={class:"fileName"},b={class:"status"};n("d81d"),n("b0c0"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var s=n("5530"),f=n("53ca"),p=n("459d"),j=n("d399"),l=(n("e7e5"),Object(o.defineComponent)({components:{},setup:function(){var t=Object(o.reactive)({allObj:[],floorObj:{},spaceArr:[],fileName:"",status:"",getFile:function(e){for(var n=e.target.files,c=0;c<n.length;c++){var o=function(e){var c=n[e],o=(o=c.name).split(".")[0],r=new FileReader;if("undefined"==typeof FileReader)return{v:void 0};r.readAsText(c,"gb2312"),r.onload=function(){var c=r.result;t.handPoint(c,o),e===n.length-1&&(t.formSpaceData(),t.floorObj.spaceList=t.spaceArr,t.saveMapPointInfo())}}(c);if("object"===Object(f.a)(o))return o.v}},saveMapPointInfo:function(){j.a.loading({duration:0,forbidClick:!0,message:"正在上传..."}),Object(p.P)(t.floorObj).then((function(e){"success"==e.result&&(t.status="上传成功",t.fileName="",document.getElementById("upfile").value=null),j.a.clear()})).catch((function(){j.a.clear()}))},formSpaceData:function(){t.spaceArr.map((function(e){e.devicePointArr.map((function(e){e.left=+e.left,e.top=+t.floorObj.height-+e.top})),e.logoPointArr.map((function(e){e.left=+e.left,e.top=+t.floorObj.height-+e.top})),e.pointArr.map((function(e){e.left=+e.left,e.top=+t.floorObj.height-+e.top})),e.circlePointArr.map((function(e){e.left=+e.left,e.top=+t.floorObj.height-+e.top})),e.detailPointArr.map((function(e){e.left=+e.left,e.top=+t.floorObj.height-+e.top}))}))},handPoint:function(e,n){e=e.replace(/\"/g,"");var c,o,r=n.split("-");n=e.split(/[(\r\n)\r\n]+/);r&&"L"==r[0]?n.map((function(e){e&&(e={width:(e=e.split(","))[0]?+e[0]:0,height:e[1]?+e[1]:0}).width&&e.height&&(t.floorObj.width=e.width,t.floorObj.height=e.height,t.floorObj.floorId=r[1])})):r[0]&&(c={spaceId:r[1]?r[1].toString():"",localName:r[0]?r[0].toString():"",canClick:!r[2]||"unc"!=r[2],pointArr:[],devicePointArr:[],circlePointArr:[],detailPointArr:[],logoPointArr:[]},n.map((function(t,e){t&&(t={left:(t=t.split(","))[0],top:t[1]},(c.canClick&&r[2]&&"c"==r[2]||!c.canClick&&r[3]&&"c"==r[3]?c.circlePointArr:c.canClick?e<1?c.detailPointArr:e<2?c.logoPointArr:e<3?c.devicePointArr:c.pointArr:c.pointArr).push(t))})),o=!1,t.spaceArr.map((function(t){r[1]&&t.spaceId===r[1]?(t.circlePointArr=c.circlePointArr,o=!0):t.spaceId===r[0]&&(t.logoPointArr=c.logoPointArr,t.devicePointArr=c.devicePointArr,t.pointArr=c.pointArr,o=!0)})),o||t.spaceArr.push(c))}});return Object(o.nextTick)((function(){})),Object(o.onMounted)((function(){})),Object(s.a)({},Object(o.toRefs)(t))}})),O=(n("96d3"),n("6b0d"));n=n.n(O);e.default=n()(l,[["render",function(t,e,n,c,s,f){return Object(o.openBlock)(),Object(o.createElementBlock)("div",r,[u,Object(o.createElementVNode)("div",a,[i,Object(o.createElementVNode)("input",{class:"file-upload-input",id:"upfile",type:"file",webkitdirectory:"",onChange:e[0]||(e[0]=function(){return t.getFile&&t.getFile.apply(t,arguments)})},null,32)]),Object(o.createElementVNode)("div",d,Object(o.toDisplayString)(t.fileName),1),Object(o.createElementVNode)("div",b,Object(o.toDisplayString)(t.status),1)])}],["__scopeId","data-v-52976aba"]])},"96d3":function(t,e,n){"use strict";n("2150")},b0c0:function(t,e,n){var c=n("83ab"),o=(n=n("9bf2").f,Function.prototype),r=o.toString,u=/^\s*function ([^ (]*)/;!c||"name"in o||n(o,"name",{configurable:!0,get:function(){try{return r.call(this).match(u)[1]}catch(t){return""}}})}}]);
|