chunk-016ba2f5.8328af77.js 8.2 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-016ba2f5"],{"116c":function(e,t,n){"use strict";function a(e){return Object(r.pushScopeId)("data-v-0e56ff36"),e=e(),Object(r.popScopeId)(),e}n.r(t);var r=n("7a23"),c=a((function(){return Object(r.createElementVNode)("div",{class:"energy-top"},[Object(r.createElementVNode)("div",{class:"top-item"}," 调节记录 ")],-1)})),o={class:"page-box detail-content"},i={class:"time"},d={class:"item-date fl"},u={class:"item-text fl"},s={class:"num fr"},l={key:1,class:"nodata"},b={class:"nodataImg"},f=["src"],j=a((function(){return Object(r.createElementVNode)("div",{class:"firstTitle"},"您还没有调节记录",-1)}));n("4160"),n("159b");var p=n("5530"),O=n("2bdd"),m=(n("2994"),n("9151")),g=n("0613"),v=n("6c02"),h=n("d257"),k=(O=Object(r.defineComponent)({components:{VanList:O.a},setup:function(){var e=Object(r.reactive)({parseImgUrl:h.y,loading:!1,finished:!1,dataMap:null,noDataFlag:!1,user:g.a.state.user,page:1,pageCount:12,list:[],type:"temp",onLoad:function(){e.getLoadData()},getLoadData:function(){var t={orders:[{column:"createTime",asc:!1}],criteria:{projectId:e.user.projectId,userId:e.user.userId},page:e.page,size:e.pageCount};"temp"===e.type?(t.criteria.itemId={$in:[1,2,3,4,5,6,10,12]},e.tempFeedbackQuery(t)):e.lightFeedbackQuery(t)},formatDataMap:function(t){t.forEach((function(t){var n=Object(h.d)(t.createTime)[0];t.showDate=Object(h.d)(t.createTime)[1],t.showTime=Object(h.d)(t.createTime)[2],e.setTempDetail(t),e.dataMap||(e.dataMap={}),e.dataMap[n]?e.dataMap[n].push(t):e.dataMap[n]=[t]}))},setTempDetail:function(t){if("temp"==e.type)switch(t.itemId){case 1:case 2:t.details="空调温度调高";break;case 3:case 4:t.details="空调温度调低";break;case 5:t.details="空调风量调小";break;case 6:t.details="空调风量调大";break;case 10:t.details="关闭空调";break;case 12:t.details="开启空调"}else t.details=t.onOff?"照明开启":"照明关闭"},tempFeedbackQuery:function(t){Object(m.j)(t).then((function(t){t=null!=(t=null==t?void 0:t.content)?t:[],e.loading=!1,e.formatDataMap(t),t&&0===t.length?e.finished=!0:e.page++,e.dataMap||(e.noDataFlag=!0)}))},lightFeedbackQuery:function(t){Object(m.b)(t).then((function(t){t=null!=(t=null==t?void 0:t.content)?t:[],e.loading=!1,e.formatDataMap(t),t&&0===t.length?e.finished=!0:e.page++}))}});return Object(r.onMounted)((function(){var t=Object(v.c)();e.type=t.query.type})),Object(p.a)({},Object(r.toRefs)(e))}}),n("7d42"),n("6b0d"));n=n.n(k);t.default=n()(O,[["render",function(e,t,n,a,p,O){var m=Object(r.resolveComponent)("van-list");return Object(r.openBlock)(),Object(r.createElementBlock)(r.Fragment,null,[c,Object(r.createElementVNode)("div",o,[Object(r.createVNode)(m,{loading:e.loading,"onUpdate:loading":t[0]||(t[0]=function(t){return e.loading=t}),finished:e.finished,"finished-text":"没有更多了",onLoad:e.onLoad},{default:Object(r.withCtx)((function(){return[e.noDataFlag?Object(r.createCommentVNode)("",!0):(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,{key:0},Object(r.renderList)(e.dataMap,(function(e,t){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"detail-box",key:t},[Object(r.createElementVNode)("div",i,Object(r.toDisplayString)(t),1),(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e,(function(e,n){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"detail-item clearfix",key:t+n},[Object(r.createElementVNode)("div",d,[Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.showDate||"--"),1),Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.showTime||"--"),1)]),Object(r.createElementVNode)("div",u,[Object(r.createElementVNode)("span",null,Object(r.toDisplayString)(e.spaceName||"--"),1)]),Object(r.createElementVNode)("div",s,Object(r.toDisplayString)(e.details||"--"),1)])})),128))])})),128)),e.noDataFlag?(Object(r.openBlock)(),Object(r.createElementBlock)("div",l,[Object(r.createElementVNode)("div",b,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("page-portrait","nodata.png"),alt:""},null,8,f)]),j])):Object(r.createCommentVNode)("",!0)]})),_:1},8,["loading","finished","onLoad"])])],64)}],["__scopeId","data-v-0e56ff36"]])},2994:function(e,t,n){"use strict";n("68ef"),n("e3b3"),n("c0c2")},"2bdd":function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));t=n("c199");var a=n("7a23"),r=n("fe7e"),c=n("f691"),o=n("4a89"),i=n("f465"),d=n("4eda"),u=n("80f6"),s=n("543e");const[l,b,f]=Object(r.a)("list");n={error:Boolean,offset:Object(c.c)(300),loading:Boolean,finished:Boolean,errorText:String,direction:Object(c.e)("down"),loadingText:String,finishedText:String,immediateCheck:c.g},r=Object(a.defineComponent)({name:l,props:n,emits:["load","update:error","update:loading"],setup(e,{emit:t,slots:n}){const r=Object(a.ref)(!1),c=Object(a.ref)(),l=Object(a.ref)(),j=Object(u.b)(),p=Object(i.m)(c),O=()=>{Object(a.nextTick)(()=>{if(!(r.value||e.finished||e.error||!1===(null==j?void 0:j.value))){var{offset:n,direction:a}=e,d=Object(i.l)(p);if(d.height&&!Object(o.d)(c)){let e=!1;var u=Object(i.l)(l);(e="up"===a?d.top-u.top<=n:u.bottom-d.bottom<=n)&&(r.value=!0,t("update:loading",!0),t("load"))}}})},m=()=>{t("update:error",!1),O()};return Object(a.watch)(()=>[e.loading,e.finished,e.error],O),j&&Object(a.watch)(j,e=>{e&&O()}),Object(a.onUpdated)(()=>{r.value=e.loading}),Object(a.onMounted)(()=>{e.immediateCheck&&O()}),Object(d.a)({check:O}),Object(i.i)("scroll",O,{target:p}),()=>{var t=null==(t=n.default)?void 0:t.call(n),o=Object(a.createVNode)("div",{ref:l,class:b("placeholder")},null);return Object(a.createVNode)("div",{ref:c,role:"feed",class:b(),"aria-busy":r.value},["down"===e.direction?t:o,(()=>{if(r.value&&!e.finished)return Object(a.createVNode)("div",{class:b("loading")},[n.loading?n.loading():Object(a.createVNode)(s.a,{class:b("loading-icon")},{default:()=>[e.loadingText||f("loading")]})])})(),(()=>{if(e.finished){var t=n.finished?n.finished():e.finishedText;if(t)return Object(a.createVNode)("div",{class:b("finished-text")},[t])}})(),(()=>{if(e.error){var t=n.error?n.error():e.errorText;if(t)return Object(a.createVNode)("div",{role:"button",class:b("error-text"),tabindex:0,onClick:m},[t])}})(),"up"===e.direction?t:o])}}});var j=Object(t.a)(r)},"2de2":function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return i}));var a="/duoduo-service/setup-service/",r="/duoduo-service/object-service/",c="/duoduo-service/duoduoenv-service/",o="/duoduo-service/",i="/duoduo-service/custom-service/"},"7d42":function(e,t,n){"use strict";n("e875")},9151:function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"i",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return j})),n.d(t,"e",(function(){return p})),n("99af");var a=n("59b9"),r=n("ba72"),c=n("2de2"),o=function(e){return Object(a.b)().request("".concat(c.b,"userIntegral/queryUserMessage?").concat(e),r.b.GET,void 0,r.a.json)},i=function(){return Object(a.b)().request("".concat(c.b,"userPortrait/portraitTemp/queryPortraitTempUserTotal"),r.b.GET,void 0,r.a.json)},d=function(){return Object(a.b)().request("".concat(c.b,"userPortrait/portraitLight/queryTotalPortraitLight"),r.b.GET,void 0,r.a.json)},u=function(e){return Object(a.b)().request("".concat(c.b,"userPortrait/portraitTemp/queryPortraitTempUserDetail"),r.b.POST,e,r.a.json)},s=function(e){return Object(a.b)().request("".concat(c.b,"custom/getSeasonBySeasonDate?").concat(e),r.b.GET,void 0,r.a.json)},l=function(e){return Object(a.b)().request("".concat(c.b,"userPortrait/portraitLight/queryPortraitLightUser"),r.b.POST,e,r.a.json)},b=function(e){return Object(a.b)().request("".concat(c.b,"userIntegral/query"),r.b.POST,e,r.a.json)},f=function(e){return Object(a.b)().request("".concat(c.b,"custom/feedback/light/query"),r.b.POST,e,r.a.json)},j=function(e){return Object(a.b)().request("".concat(c.b,"custom/feedbackQuery"),r.b.POST,e,r.a.json)},p=function(){return Object(a.b)().request("".concat(c.b,"userPortrait/queryPortraitModuleList"),r.b.GET,void 0,r.a.json)}},c0c2:function(e,t,n){},e875:function(e,t,n){}}]);