chunk-0f7bdb64.c448b353.js 17 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0f7bdb64"],{1146:function(e,t,n){},"1a04":function(e,t,n){},"459d":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"z",(function(){return i})),n.d(t,"t",(function(){return u})),n.d(t,"m",(function(){return l})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return b})),n.d(t,"b",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"L",(function(){return j})),n.d(t,"x",(function(){return p})),n.d(t,"n",(function(){return O})),n.d(t,"M",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"j",(function(){return q})),n.d(t,"l",(function(){return S})),n.d(t,"s",(function(){return h})),n.d(t,"u",(function(){return T})),n.d(t,"A",(function(){return k})),n.d(t,"q",(function(){return V})),n.d(t,"c",(function(){return x})),n.d(t,"y",(function(){return C})),n.d(t,"v",(function(){return w})),n.d(t,"w",(function(){return P})),n.d(t,"G",(function(){return N})),n.d(t,"B",(function(){return E})),n.d(t,"I",(function(){return B})),n.d(t,"J",(function(){return I})),n.d(t,"d",(function(){return G})),n.d(t,"H",(function(){return M})),n.d(t,"C",(function(){return F})),n.d(t,"p",(function(){return z})),n.d(t,"o",(function(){return A})),n.d(t,"F",(function(){return L})),n.d(t,"K",(function(){return D})),n.d(t,"r",(function(){return W})),n.d(t,"E",(function(){return H})),n.d(t,"D",(function(){return J})),n("99af");var c=n("59b9"),r=n("ba72"),o=n("2de2"),a=function(e){return Object(c.b)().request("/api/company/config/".concat(e.companyId),r.b.GET,void 0,r.a.json)},i=function(e){return Object(c.b)().request("".concat(o.c,"weather/getCurrent?").concat(e),r.b.GET,void 0,r.a.json)},u=function(e){return Object(c.b)().request("".concat(o.b,"space/property"),r.b.POST,e,r.a.json)},l=function(e){return Object(c.b)().request("".concat(o.b,"meeting/room/scene/getMeetingScene/V2?spaceId=").concat(e.spaceId),r.b.GET,void 0,r.a.json)},s=function(e){return Object(c.b)().request("".concat(o.b,"object/equipment/findForServe?spaceId=").concat(e.spaceId),r.b.POST,void 0,r.a.json)},b=function(e){return Object(c.b)().request("".concat(o.b,"custom/feedback/documents"),r.b.POST,e,r.a.json)},d=function(e){return Object(c.b)().request("".concat(o.b,"custom/feedbackCreate/v2"),r.b.POST,e,r.a.json)},f=function(e){return Object(c.b)({timeout:15e4}).request("".concat(o.b,"light/status/query?spaceId=").concat(e.spaceId),r.b.GET,void 0,r.a.json)},j=function(e){return Object(c.c)("".concat(o.b,"light/onoff/set"),e)},p=function(e){return Object(c.c)("".concat(o.b,"light/onoff/setSatus"),e)},O=function(e){return Object(c.b)().request("".concat(o.b,"object/objectDataEqpGroup/query"),r.b.POST,e,r.a.json)},g=function(e){return Object(c.b)().request("".concat(o.b,"meeting/room/scene/switchover"),r.b.POST,e,r.a.json)},v=function(e){return Object(c.b)().request("".concat(o.b,"customScene/create"),r.b.POST,e,r.a.json)},m=function(e){return Object(c.b)().request("".concat(o.b,"/spaceAdjust/queryPropertyData?").concat(e),r.b.GET,void 0,r.a.json)},y=function(e){return Object(c.b)().request("".concat(o.c,"object/building/query"),r.b.POST,e,r.a.json)},q=function(e){return Object(c.b)().request("".concat(o.c,"object/floor/query"),r.b.POST,e,r.a.json)},S=function(e){return Object(c.b)().request("".concat(o.d,"map/queryMapInfo"),r.b.POST,e,r.a.json)},h=function(e){return Object(c.b)().request("".concat(o.c,"object/equipment/querySpaceEquipType?").concat(e),r.b.GET,void 0,r.a.json)},T=function(e){return Object(c.b)().request("".concat(o.c,"object/space/query"),r.b.POST,e,r.a.json)},k=function(e){return Object(c.b)().request("".concat(o.d,"permanentSpace/save"),r.b.POST,e,r.a.json)},V=function(){return Object(c.b)().request("".concat(o.d,"permanentSpace/query"),r.b.GET,void 0,r.a.json)},x=function(e){return Object(c.b)().request("".concat(o.d,"permanentSpace/delete?").concat(e))},C=function(){return Object(c.b)().request("".concat(o.d,"permanentSpace/queryZJ"),r.b.GET,void 0,r.a.json)},w=function(){return Object(c.b)().request("".concat(o.c,"object/equipment/querySpaceModeSet"),r.b.GET,void 0,r.a.json)},P=function(){return Object(c.b)().request("".concat(o.c,"object/equipment/querySpaceTempSet"),r.b.GET,void 0,r.a.json)},N=function(e){return Object(c.b)().request("".concat(o.d,"scene/querySpaceSceneConfig?").concat(e),r.b.GET,void 0,r.a.json)},E=function(e){return Object(c.b)().request("".concat(o.b,"customScene/queryCustomAndScence?").concat(e),r.b.GET,void 0,r.a.json)},B=function(e){return Object(c.c)("".concat(o.b,"customScene/saveBatchCustomScene"),e)},I=function(e){return Object(c.b)().request("".concat(o.d,"padSpace/saveWorkSpace"),r.b.POST,e,r.a.json)},G=function(e){return Object(c.b)().request("".concat(o.d,"padSpace/deleteWorkSpace"),r.b.POST,e,r.a.json)},M=function(e){return Object(c.b)().request("".concat(o.d,"padSpace/queryWorkSpace"),r.b.POST,e,r.a.json)},F=function(e){return Object(c.b)().request("".concat(o.e,"wechat-service-duoduoenv/duoduoenv/customerservice/query"),r.b.POST,e,r.a.json)},z=function(e){return Object(c.b)().request("".concat(o.d,"padLogin/getPadQrCodeStatus?").concat(e),r.b.GET,void 0,r.a.json)},A=function(e){return Object(c.b)().request("".concat(o.d,"padImage/queryImageByFuncType?").concat(e),r.b.GET,void 0,r.a.json)},L=function(e){return Object(c.b)().request("".concat(o.b,"ctrl/querySpaceConditioners?").concat(e),r.b.GET,void 0,r.a.json)},D=function(e){return Object(c.c)("".concat(o.b,"ctrl/set"),e)},W=function(e){return Object(c.b)().request("".concat(o.a,"equipmentRun/queryEquipmentRunConfig?").concat(e),r.b.GET,void 0,r.a.json)},H=function(e){return Object(c.b)().request("".concat(o.b,"ctrl/querySapceFloorHeating?").concat(e),r.b.GET,void 0,r.a.json)},J=function(e){return Object(c.b)().request("".concat(o.b,"ctrl/queryEquipmentStatusInfo?").concat(e),r.b.GET,void 0,r.a.json)}},"565f":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return r})),t=n("c199"),n=n("d1ba");const c=Object(t.a)(n.a);var r=c},"68b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return d}));var c=n("7a23"),r=(t=n("fe7e"),n("f691")),o=n("f344"),a=n("8da3"),i=n("b070"),u=n("ad06");const[l,s]=Object(t.a)("cell"),b={icon:String,size:String,title:r.f,value:r.f,label:r.f,center:Boolean,isLink:Boolean,border:r.g,required:Boolean,iconPrefix:String,valueClass:r.h,labelClass:r.h,titleClass:r.h,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}};n=Object(o.a)({},b,i.b);var d=Object(c.defineComponent)({name:l,props:n,setup(e,{slots:t}){const n=Object(i.c)(),r=()=>{if(t.title||Object(a.b)(e.title))return Object(c.createVNode)("div",{class:[s("title"),e.titleClass],style:e.titleStyle},[t.title?t.title():Object(c.createVNode)("span",null,[e.title]),(()=>{if(t.label||Object(a.b)(e.label))return Object(c.createVNode)("div",{class:[s("label"),e.labelClass]},[t.label?t.label():e.label])})()])};return()=>{var{size:o,center:i,border:l,isLink:b,required:d}=e,f=null!=(f=e.clickable)?f:b;const j={center:i,required:d,clickable:f,borderless:!l};return o&&(j[o]=!!o),Object(c.createVNode)("div",{class:s(j),role:f?"button":void 0,tabindex:f?0:void 0,onClick:n},[t.icon?t.icon():e.icon?Object(c.createVNode)(u.a,{name:e.icon,class:s("left-icon"),classPrefix:e.iconPrefix},null):void 0,r(),(()=>{const n=t.value||t.default;var r;if(n||Object(a.b)(e.value))return r=t.title||Object(a.b)(e.title),Object(c.createVNode)("div",{class:[s("value",{alone:!r}),e.valueClass]},[n?n():Object(c.createVNode)("span",null,[e.value])])})(),t["right-icon"]?t["right-icon"]():e.isLink?(b=e.arrowDirection?"arrow-"+e.arrowDirection:"arrow",Object(c.createVNode)(u.a,{name:b,class:s("right-icon")},null)):void 0,null==(i=t.extra)?void 0:i.call(t)])}}})},7744:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return r})),t=n("c199"),n=n("68b4");const c=Object(t.a)(n.b);var r=c},b650:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return p}));t=n("c199");var c=n("7a23"),r=n("fe7e"),o=n("f344"),a=n("f691"),i=n("4a89"),u=n("b1d2"),l=n("b070"),s=n("ad06"),b=n("543e");const[d,f]=Object(r.a)("button");n=Object(o.a)({},l.b,{tag:Object(a.e)("button"),text:String,icon:String,type:Object(a.e)("default"),size:Object(a.e)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(a.e)("button"),loadingSize:a.f,loadingText:String,loadingType:String,iconPosition:Object(a.e)("left")}),r=Object(c.defineComponent)({name:d,props:n,emits:["click"],setup(e,{emit:t,slots:n}){const r=Object(l.c)(),o=()=>e.loading?n.loading?n.loading():Object(c.createVNode)(b.a,{size:e.loadingSize,type:e.loadingType,class:f("loading")},null):n.icon?Object(c.createVNode)("div",{class:f("icon")},[n.icon()]):e.icon?Object(c.createVNode)(s.a,{name:e.icon,class:f("icon"),classPrefix:e.iconPrefix},null):void 0,a=n=>{e.loading?Object(i.e)(n):e.disabled||(t("click",n),r())};return()=>{const{tag:t,type:r,size:i,block:l,round:s,plain:b,square:d,loading:j,disabled:p,hairline:O,nativeType:g,iconPosition:v}=e;var m=[f([r,i,{plain:b,block:l,round:s,square:d,loading:j,disabled:p,hairline:O}]),{[u.b]:O}];return Object(c.createVNode)(t,{type:g,class:m,style:(()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}})(),disabled:p,onClick:a},{default:()=>[Object(c.createVNode)("div",{class:f("content")},["left"===v&&o(),(()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text)return Object(c.createVNode)("span",{class:f("text")},[t])})(),"right"===v&&o()])]})}}});const j=Object(t.a)(r);var p=j},bc1b:function(e,t,n){},d1ba:function(e,t,n){"use strict";n.d(t,"a",(function(){return T})),n.d(t,"b",(function(){return h}));var c=n("7a23"),r=(t=n("fe7e"),n("f691")),o=n("f344"),a=n("b1d2"),i=n("8da3"),u=n("8405"),l=n("4a89");function s(e,t){var n;if(!t.required||(n=e,Array.isArray(n)?n.length:0===n||n))return!(t.pattern&&!t.pattern.test(String(e)))}function b(e,t){const n=t["message"];return Object(i.c)(n)?n(e,t):n||""}function d({target:e}){e.composing=!0}function f({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function j(e){return[...e].length}var p=n("68b4"),O=n("f465"),g=n("1f4d"),v=n("4eda"),m=n("ad06"),y=n("7744");const[q,S]=Object(t.a)("field"),h={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:r.f,formatter:Function,clearIcon:Object(r.e)("clear"),modelValue:Object(r.c)(""),inputAlign:String,placeholder:String,autocomplete:String,errorMessage:String,clearTrigger:Object(r.e)("focus"),formatTrigger:Object(r.e)("onChange"),error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null}};n=Object(o.a)({},p.a,h,{rows:r.f,type:Object(r.e)("text"),rules:Array,autosize:[Boolean,Object],labelWidth:r.f,labelClass:r.h,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var T=Object(c.defineComponent)({name:q,props:n,emits:["blur","focus","clear","keypress","click-input","click-left-icon","click-right-icon","update:modelValue"],setup(e,{emit:t,slots:n}){const r=Object(g.a)(),o=Object(c.reactive)({focused:!1,validateFailed:!1,validateMessage:""}),p=Object(c.ref)(),q=Object(c.ref)(),h=Object(O.k)(a.f)["parent"],T=()=>{var t;return String(null!=(t=e.modelValue)?t:"")},k=t=>Object(i.b)(e[t])?e[t]:h&&Object(i.b)(h.props[t])?h.props[t]:void 0,V=Object(c.computed)(()=>{var t,n=k("readonly");return!(!e.clearable||n)&&(n=""!==T(),t="always"===e.clearTrigger||"focus"===e.clearTrigger&&o.focused,n&&t)}),x=Object(c.computed)(()=>q.value&&n.input?q.value():e.modelValue),C=e=>e.reduce((e,t)=>e.then(()=>{if(!o.validateFailed){let c=x["value"];if(s(c=t.formatter?t.formatter(c,t):c,t))return t.validator?(e=c,n=t,new Promise(t=>{const c=n.validator(e,n);Object(i.g)(c)?c.then(t):t(c)}).then(e=>{e&&"string"==typeof e?(o.validateFailed=!0,o.validateMessage=e):!1===e&&(o.validateFailed=!0,o.validateMessage=b(c,t))})):void 0;var e,n;o.validateFailed=!0,o.validateMessage=b(c,t)}}),Promise.resolve()),w=()=>{o.validateFailed&&(o.validateFailed=!1,o.validateMessage="")},P=(t=e.rules)=>new Promise(n=>{w(),t?C(t).then(()=>{o.validateFailed?n({name:e.name,message:o.validateMessage}):n()}):n()}),N=t=>{if(h&&e.rules){const c=h.props.validateTrigger===t;var n=e.rules.filter(e=>e.trigger?e.trigger===t:c);n.length&&P(n)}},E=(n,c="onChange")=>{var r,o,a;r=n,a=e.maxlength,n=Object(i.b)(a)&&j(r)>a?(o=T())&&j(o)===+a?o:(o=+a,[...r].slice(0,o).join("")):r,"number"!==e.type&&"digit"!==e.type||(a="number"===e.type,n=Object(u.e)(n,a,a)),e.formatter&&c===e.formatTrigger&&(n=e.formatter(n)),p.value&&p.value.value!==n&&(p.value.value=n),n!==e.modelValue&&t("update:modelValue",n)},B=e=>{e.target.composing||E(e.target.value)},I=()=>{var e;return null==(e=p.value)?void 0:e.blur()},G=()=>{var t=p.value;if("textarea"===e.type&&e.autosize&&t){var n,c=e.autosize,r=Object(l.b)();t.style.height="auto";let o=t.scrollHeight;Object(i.f)(c)&&(({maxHeight:c,minHeight:n}=c),void 0!==c&&(o=Math.min(o,c)),void 0!==n&&(o=Math.max(o,n))),o&&(t.style.height=o+"px",Object(l.g)(r))}},M=e=>{o.focused=!0,t("focus",e),Object(c.nextTick)(G),k("readonly")&&I()},F=e=>{k("readonly")||(o.focused=!1,E(T(),"onBlur"),t("blur",e),N("onBlur"),Object(c.nextTick)(G),Object(l.f)())},z=e=>t("click-input",e),A=e=>t("click-left-icon",e),L=e=>t("click-right-icon",e),D=e=>{Object(l.e)(e),t("update:modelValue",""),t("clear",e)},W=Object(c.computed)(()=>"boolean"==typeof e.error?e.error:!!(h&&h.props.showError&&o.validateFailed)||void 0),H=Object(c.computed)(()=>{var e=k("labelWidth");if(e)return{width:Object(u.b)(e)}}),J=n=>{13===n.keyCode&&(h&&h.props.submitOnEnter||"textarea"===e.type||Object(l.e)(n),"search"===e.type&&I()),t("keypress",n)},K=()=>e.id||r+"-input",R=()=>[Object(c.createVNode)("div",{class:S("body")},[(()=>{var t=S("control",[k("inputAlign"),{error:W.value,custom:!!n.input,"min-height":"textarea"===e.type&&!e.autosize}]);if(n.input)return Object(c.createVNode)("div",{class:t,onClick:z},[n.input()]);var o;t={id:K(),ref:p,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:t,value:e.modelValue,disabled:k("disabled"),readonly:k("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,"aria-labelledby":e.label?r+"-label":void 0,onBlur:F,onFocus:M,onInput:B,onClick:z,onChange:f,onKeypress:J,onCompositionend:f,onCompositionstart:d};return"textarea"===e.type?Object(c.createVNode)("textarea",t,null):Object(c.createVNode)("input",Object(c.mergeProps)("number"===(o=e.type)?{type:"text",inputmode:"decimal"}:"digit"===o?{type:"tel",inputmode:"numeric"}:{type:o},t),null)})(),V.value&&Object(c.createVNode)(m.a,{name:e.clearIcon,class:S("clear"),onTouchstart:D},null),(()=>{const t=n["right-icon"];if(e.rightIcon||t)return Object(c.createVNode)("div",{class:S("right-icon"),onClick:L},[t?t():Object(c.createVNode)(m.a,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])})(),n.button&&Object(c.createVNode)("div",{class:S("button")},[n.button()])]),(()=>{var t;if(e.showWordLimit&&e.maxlength)return t=j(T()),Object(c.createVNode)("div",{class:S("word-limit")},[Object(c.createVNode)("span",{class:S("word-num")},[t]),Object(c.createTextVNode)("/"),e.maxlength])})(),(()=>{if(!h||!1!==h.props.showErrorMessage){var t=e.errorMessage||o.validateMessage;if(t){const e=n["error-message"];var r=k("errorMessageAlign");return Object(c.createVNode)("div",{class:S("error-message",r)},[e?e({message:t}):t])}}})()];return Object(v.a)({blur:I,focus:()=>{var e;return null==(e=p.value)?void 0:e.focus()},validate:P,formValue:x,resetValidation:w}),Object(c.provide)(O.a,{customValue:q,resetValidation:w,validateWithTrigger:N}),Object(c.watch)(()=>e.modelValue,()=>{E(T()),w(),N("onChange"),Object(c.nextTick)(G)}),Object(c.onMounted)(()=>{E(T(),e.formatTrigger),Object(c.nextTick)(G)}),()=>{var t,o=k("disabled"),a=k("labelAlign");t=k("colon")?":":"";const i=n.label?[n.label(),t]:e.label?Object(c.createVNode)("label",{id:r+"-label",for:K()},[e.label+t]):void 0,u=(()=>{const t=n["left-icon"];if(e.leftIcon||t)return Object(c.createVNode)("div",{class:S("left-icon"),onClick:A},[t?t():Object(c.createVNode)(m.a,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])})();return Object(c.createVNode)(y.a,{size:e.size,icon:e.leftIcon,class:S({error:W.value,disabled:o,["label-"+a]:a}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:H.value,valueClass:S("value"),titleClass:[S("label",[a,{required:e.required}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:u?()=>u:null,title:i?()=>i:null,value:R,extra:n.extra})}}})}}]);