12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6637d5f0"],{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 i}));var c="/duoduo-service/setup-service/",o="/duoduo-service/object-service/",r="/duoduo-service/duoduoenv-service/",u="/duoduo-service/",i="/duoduo-service/custom-service/"},"459d":function(t,e,n){"use strict";n.d(e,"h",(function(){return u})),n.d(e,"C",(function(){return i})),n.d(e,"w",(function(){return a})),n.d(e,"o",(function(){return d})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return b})),n.d(e,"b",(function(){return f})),n.d(e,"m",(function(){return p})),n.d(e,"P",(function(){return j})),n.d(e,"N",(function(){return l})),n.d(e,"A",(function(){return O})),n.d(e,"p",(function(){return v})),n.d(e,"Q",(function(){return q})),n.d(e,"a",(function(){return m})),n.d(e,"g",(function(){return S})),n.d(e,"f",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"n",(function(){return P})),n.d(e,"v",(function(){return T})),n.d(e,"x",(function(){return y})),n.d(e,"E",(function(){return A})),n.d(e,"t",(function(){return E})),n.d(e,"d",(function(){return I})),n.d(e,"B",(function(){return k})),n.d(e,"y",(function(){return G})),n.d(e,"z",(function(){return w})),n.d(e,"I",(function(){return C})),n.d(e,"F",(function(){return N})),n.d(e,"K",(function(){return D})),n.d(e,"i",(function(){return F})),n.d(e,"s",(function(){return M})),n.d(e,"M",(function(){return L})),n.d(e,"D",(function(){return V})),n.d(e,"e",(function(){return B})),n.d(e,"J",(function(){return R})),n.d(e,"c",(function(){return W})),n.d(e,"G",(function(){return x})),n.d(e,"r",(function(){return J})),n.d(e,"q",(function(){return Q})),n.d(e,"H",(function(){return _})),n.d(e,"O",(function(){return z})),n.d(e,"L",(function(){return H})),n.d(e,"u",(function(){return K}));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)},i=function(t){return Object(c["b"])().request("".concat(r["c"],"weather/getCurrent?").concat(t),o["b"].GET,void 0,o["a"].json)},a=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)},s=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)},b=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:1e3}).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"],"object/eqp/infocode/set"),t)},O=function(t){return Object(c["c"])("".concat(r["b"],"light/onoff/setSatus"),t)},v=function(t){return Object(c["b"])().request("".concat(r["b"],"object/objectDataEqpGroup/query"),o["b"].POST,t,o["a"].json)},q=function(t){return Object(c["b"])().request("".concat(r["b"],"meeting/room/scene/switchover"),o["b"].POST,t,o["a"].json)},m=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)},g=function(t){return Object(c["b"])().request("".concat(r["c"],"object/building/query"),o["b"].POST,t,o["a"].json)},h=function(t){return Object(c["b"])().request("".concat(r["c"],"object/floor/query"),o["b"].POST,t,o["a"].json)},P=function(t){return Object(c["b"])().request("".concat(r["d"],"map/queryMapInfo"),o["b"].POST,t,o["a"].json)},T=function(t){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceEquipType?").concat(t),o["b"].GET,void 0,o["a"].json)},y=function(t){return Object(c["b"])().request("".concat(r["c"],"object/space/query"),o["b"].POST,t,o["a"].json)},A=function(t){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/save"),o["b"].POST,t,o["a"].json)},E=function(){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/query"),o["b"].GET,void 0,o["a"].json)},I=function(t){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/delete?").concat(t))},k=function(){return Object(c["b"])().request("".concat(r["d"],"permanentSpace/queryZJ"),o["b"].GET,void 0,o["a"].json)},G=function(){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceModeSet"),o["b"].GET,void 0,o["a"].json)},w=function(){return Object(c["b"])().request("".concat(r["c"],"object/equipment/querySpaceTempSet"),o["b"].GET,void 0,o["a"].json)},C=function(t){return Object(c["b"])().request("".concat(r["d"],"scene/querySpaceSceneConfig?").concat(t),o["b"].GET,void 0,o["a"].json)},N=function(t){return Object(c["b"])().request("".concat(r["b"],"customScene/queryCustomAndScence?").concat(t),o["b"].GET,void 0,o["a"].json)},D=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)},M=function(t){return Object(c["b"])().request("".concat(r["d"],"padSpace/getPadSpaceList?").concat(t),o["b"].GET,void 0,o["a"].json)},L=function(t){return Object(c["b"])().request("".concat(r["d"],"padSpace/saveWorkSpace"),o["b"].POST,t,o["a"].json)},V=function(t){return Object(c["b"])().request("".concat(r["d"],"padSpace/insertWorkSpace"),o["b"].POST,t,o["a"].json)},B=function(t){return Object(c["b"])().request("".concat(r["d"],"padSpace/deleteWorkSpace"),o["b"].POST,t,o["a"].json)},R=function(t){return Object(c["b"])().request("".concat(r["d"],"padSpace/queryWorkSpace"),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)},x=function(t){return Object(c["b"])().request("".concat(r["e"],"wechat-service-duoduoenv/duoduoenv/customerservice/query"),o["b"].POST,t,o["a"].json)},J=function(t){return Object(c["b"])().request("".concat(r["d"],"padLogin/getPadQrCodeStatus?").concat(t),o["b"].GET,void 0,o["a"].json)},Q=function(t){return Object(c["b"])().request("".concat(r["d"],"padImage/queryImageByFuncType?").concat(t),o["b"].GET,void 0,o["a"].json)},_=function(t){return Object(c["b"])().request("".concat(r["b"],"ctrl/querySpaceConditioners?").concat(t),o["b"].GET,void 0,o["a"].json)},z=function(t){return Object(c["c"])("".concat(r["b"],"ctrl/set"),t)},H=function(t){return Object(c["b"])().request("".concat(r["d"],"/map/saveMapPointInfo"),o["b"].POST,t,o["a"].json)},K=function(t){return Object(c["b"])().request("".concat(r["a"],"equipmentRun/queryEquipmentRunConfig?").concat(t),o["b"].GET,void 0,o["a"].json)}},"4be3":function(t,e,n){"use strict";n.r(e);var c=n("7a23"),o=function(t){return Object(c["pushScopeId"])("data-v-52976aba"),t=t(),Object(c["popScopeId"])(),t},r={class:"com-upload"},u=o((function(){return Object(c["createElementVNode"])("p",null,"四川大厦的地图上传功能",-1)})),i={class:"file-upload"},a=o((function(){return Object(c["createElementVNode"])("div",{class:"file-upload-text"},"上传文件",-1)})),d={class:"fileName"},s={class:"status"};function b(t,e,n,o,b,f){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",r,[u,Object(c["createElementVNode"])("div",i,[a,Object(c["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(c["createElementVNode"])("div",d,Object(c["toDisplayString"])(t.fileName),1),Object(c["createElementVNode"])("div",s,Object(c["toDisplayString"])(t.status),1)])}n("d81d"),n("b0c0"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");var f=n("5530"),p=n("53ca"),j=n("459d"),l=n("d399"),O=(n("e7e5"),Object(c["defineComponent"])({components:{},setup:function(){var t=[],e=[],n={},o=Object(c["reactive"])({allObj:t,floorObj:n,spaceArr:e,fileName:"",status:"",getFile:function(t){for(var e=t.target.files,n=function(t){var n=e[t],c=n.name;c=c.split(".")[0];var r=new FileReader;if("undefined"===typeof FileReader)return{v:void 0};r.readAsText(n,"gb2312"),r.onload=function(){var n=r.result;o.handPoint(n,c),t===e.length-1&&(o.formSpaceData(),o.floorObj.spaceList=o.spaceArr,o.saveMapPointInfo())}},c=0;c<e.length;c++){var r=n(c);if("object"===Object(p["a"])(r))return r.v}},saveMapPointInfo:function(){l["a"].loading({duration:0,forbidClick:!0,message:"正在上传..."}),Object(j["L"])(o.floorObj).then((function(t){if("success"==t.result){o.status="上传成功",o.fileName="";var e=document.getElementById("upfile");e.value=null}l["a"].clear()})).catch((function(){l["a"].clear()}))},formSpaceData:function(){o.spaceArr.map((function(t){t.devicePointArr.map((function(t){t.left=1*t.left,t.top=1*o.floorObj.height-1*t.top})),t.logoPointArr.map((function(t){t.left=1*t.left,t.top=1*o.floorObj.height-1*t.top})),t.pointArr.map((function(t){t.left=1*t.left,t.top=1*o.floorObj.height-1*t.top})),t.circlePointArr.map((function(t){t.left=1*t.left,t.top=1*o.floorObj.height-1*t.top})),t.detailPointArr.map((function(t){t.left=1*t.left,t.top=1*o.floorObj.height-1*t.top}))}))},handPoint:function(t,e){t=t.replace(/\"/g,"");var n=e.split("-"),c=t.split(/[(\r\n)\r\n]+/);if(n&&"L"==n[0])c.map((function(t){if(t){var e=t.split(","),c={width:e[0]?1*e[0]:0,height:e[1]?1*e[1]:0};c.width&&c.height&&(o.floorObj.width=c.width,o.floorObj.height=c.height,o.floorObj.floorId=n[1])}}));else if(n[0]){var r={spaceId:n[1]?n[1].toString():"",localName:n[0]?n[0].toString():"",canClick:!n[2]||"unc"!=n[2],pointArr:[],devicePointArr:[],circlePointArr:[],detailPointArr:[],logoPointArr:[]};c.map((function(t,e){if(t){var c=t.split(","),o={left:c[0],top:c[1]};r.canClick&&n[2]&&"c"==n[2]||!r.canClick&&n[3]&&"c"==n[3]?r.circlePointArr.push(o):r.canClick?e<1?r.detailPointArr.push(o):e<2?r.logoPointArr.push(o):e<3?r.devicePointArr.push(o):r.pointArr.push(o):r.pointArr.push(o)}}));var u=!1;o.spaceArr.map((function(t){n[1]&&t.spaceId===n[1]?(t.circlePointArr=r.circlePointArr,u=!0):t.spaceId===n[0]&&(t.logoPointArr=r.logoPointArr,t.devicePointArr=r.devicePointArr,t.pointArr=r.pointArr,u=!0)})),u||o.spaceArr.push(r)}}});return Object(c["nextTick"])((function(){})),Object(c["onMounted"])((function(){})),Object(f["a"])({},Object(c["toRefs"])(o))}})),v=(n("96d3"),n("6b0d")),q=n.n(v);const m=q()(O,[["render",b],["__scopeId","data-v-52976aba"]]);e["default"]=m},"96d3":function(t,e,n){"use strict";n("2150")}}]);
- //# sourceMappingURL=chunk-6637d5f0.3b6b765b.js.map
|