chunk-8c8fb174.1d5d4292.js.map 80 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/portrait/energyRank.vue?9c5f","webpack:///./node_modules/vant/es/list/style/index.js","webpack:///./node_modules/vant/es/list/List.js","webpack:///./node_modules/vant/es/list/index.js","webpack:///./src/config/index.ts","webpack:///./src/apis/portrait.ts","webpack:///./node_modules/vant/es/utils/deep-clone.js","webpack:///./node_modules/vant/es/picker/PickerColumn.js","webpack:///./node_modules/vant/es/picker/Picker.js","webpack:///./src/views/portrait/energyRank.vue?2583","webpack:///./node_modules/vant/es/datetime-picker/utils.js","webpack:///./node_modules/vant/es/datetime-picker/TimePicker.js","webpack:///./node_modules/vant/es/datetime-picker/DatePicker.js","webpack:///./node_modules/vant/es/datetime-picker/DatetimePicker.js","webpack:///./node_modules/vant/es/datetime-picker/index.js","webpack:///./src/views/portrait/energyRank.vue?02ea","webpack:///./src/views/portrait/energyRank.vue","webpack:///./node_modules/vant/es/picker/index.js"],"names":["bem","t","create","listProps","error","Boolean","offset","loading","finished","errorText","String","direction","loadingText","finishedText","immediateCheck","stdin_default","name","props","emits","emit","slots","root","placeholder","tabStatus","scrollParent","check","value","scrollParentRect","height","isReachEdge","placeholderRect","top","bottom","renderFinishedText","text","clickErrorText","renderErrorText","renderLoading","default","tabActive","target","_a","Content","call","Placeholder","List","setupService","objectService","duoduoenvService","weachatService","customService","queryTotalIntegral","params","request","GET","undefined","json","queryPortraitTempUserTotal","queryTotalPortraitLight","queryPortraitTempUserDetail","POST","getSeasonBySeasonDate","queryPortraitLightUser","queryAllIntegral","lightFeedbackQuery","tempFeedbackQuery","queryPortraitModule","deepClone","obj","Array","isArray","map","item","to","Object","keys","forEach","key","DEFAULT_DURATION","MOMENTUM_LIMIT_TIME","MOMENTUM_LIMIT_DISTANCE","getElementTranslateY","element","transform","window","getComputedStyle","translateY","slice","length","split","Number","PICKER_KEY","Symbol","isOptionDisabled","option","disabled","textKey","readonly","allowHtml","className","itemHeight","defaultIndex","swipeDuration","initialOptions","visibleItemCount","moving","startOffset","touchStartTime","momentumOffset","transitionEndTrigger","wrapper","state","index","duration","options","touch","count","baseOffset","adjustIndex","i","setIndex","emitChange","trigger","setOptions","JSON","stringify","onClickItem","getOptionText","getIndexByOffset","Math","round","momentum","distance","speed","abs","stopMomentum","onTouchStart","event","start","min","Date","now","onTouchMove","move","isVertical","deltaY","onTouchEnd","allowMomentum","setTimeout","renderOptions","optionStyle","data","role","style","tabindex","class","selected","onClick","childData","setValue","getValue","transitionDuration","transitionProperty","pickerSharedProps","title","showToolbar","cancelButtonText","confirmButtonText","pickerProps","columns","valueKey","toolbarPosition","columnsFieldNames","hasOptions","formattedColumns","values","valuesKey","children","childrenKey","linkChildren","dataType","firstColumn","formatCascade","formatted","cursor","children2","push","format","some","getIndexes","child","setColumnValues","column","onCascadeChange","columnIndex","indexes","getChild","getColumnValue","setColumnValue","getColumnIndex","setColumnIndex","optionIndex","getColumnValues","getValues","setValues","setIndexes","emitAction","onChange","confirm","cancel","renderTitle","renderCancel","renderConfirm","renderToolbar","slot","toolbar","renderColumnItems","renderMask","wrapHeight","frameStyle","maskStyle","backgroundSize","renderColumns","columnsStyle","immediate","_b","n","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","render","_ctx","_cache","$props","$setup","$data","$options","_component_van_icon","_component_van_list","_component_van_datetime_picker","_component_van_popup","monthPoints","goIntegralDesc","triggerShowPopup","nowDate","$event","onLoad","list","id","userName","totalPoints","_","show","showPopup","position","modelValue","currentDate","type","formatter","minDate","maxDate","comfirm","sharedProps","filter","Function","columnsOrder","pickerInheritKeys","times","iteratee","result","getTrueValue","isNaN","parseInt","getMonthEndDay","year","month","getDate","proxyPickerMethods","picker","callback","methods","Proxy","get","prop","includes","args","minHour","maxHour","minMinute","maxMinute","formatValue","hour","minute","ranges","range","originColumns","rangeArr","updateColumnValue","pair","updateInnerValue","hourIndex","minuteIndex","hourColumn","minuteColumn","onConfirm","onCancel","getPicker","currentYear","getFullYear","validator","timestamp","getTime","getBoundary","boundary","date","getMonth","getHours","getMinutes","maxYear","maxMonth","minYear","minMonth","concat","sort","a","b","indexOf","type2","day","maxDay","oldValue","valueOf","timePickerPropKeys","datePickerPropKeys","datetimePickerProps","attrs","isTimePicker","Component","inheritProps","DatetimePicker","components","VanList","VanDatetimePicker","VanPopup","setup","router","val","allUser","proxyData","user","store","page","pageCount","path","time","queryIntegralRank","param","criteria","projectId","userId","then","res","resData","resContent","content","allRes","setUserImg","catch","ele","headImgUrl","__exports__","Picker"],"mappings":"kHAAA,W,kCCAA,+B,sLCOA,MAAO,EAAMA,EAAKC,GAAK,OAAAC,EAAA,MAAgB,QACjCC,EAAY,CAChBC,MAAOC,QACPC,OAAQ,eAAgB,KACxBC,QAASF,QACTG,SAAUH,QACVI,UAAWC,OACXC,UAAW,eAAe,QAC1BC,YAAaF,OACbG,aAAcH,OACdI,eAAgB,QAElB,IAAIC,EAAgB,6BAAgB,CAClCC,KAAI,EACJC,MAAOd,EACPe,MAAO,CAAC,OAAQ,eAAgB,kBAChC,MAAMD,GAAO,KACXE,EAAI,MACJC,IAEA,MAAMb,EAAU,kBAAI,GACdc,EAAO,mBACPC,EAAc,mBACdC,EAAY,iBACZC,EAAe,eAAgBH,GAC/BI,EAAQ,KACZ,sBAAS,KACP,GAAIlB,EAAQmB,OAAST,EAAMT,UAAYS,EAAMb,QAA4D,KAArC,MAAbmB,OAAoB,EAASA,EAAUG,OAC5F,OAEF,MAAM,OACJpB,EAAM,UACNK,GACEM,EACEU,EAAmB,eAAQH,GACjC,IAAKG,EAAiBC,QAAU,eAASP,GACvC,OAEF,IAAIQ,GAAc,EAClB,MAAMC,EAAkB,eAAQR,GAE9BO,EADgB,OAAdlB,EACYgB,EAAiBI,IAAMD,EAAgBC,KAAOzB,EAE9CwB,EAAgBE,OAASL,EAAiBK,QAAU1B,EAEhEuB,IACFtB,EAAQmB,OAA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AgB,EAAQ,CAAC,CAAC,SAAS5I,GAAQ,CAAC,YAAY,qBAE1E,iB,kCCTf,gGAEA,MAAM6I,EAAS,eAAY,QAC3B,IAAI5W,EAAgB4W","file":"static/js/chunk-8c8fb174.1d5d4292.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./energyRank.vue?vue&type=style&index=0&id=073aa592&lang=scss&scoped=true\"","import \"../../style/base.css\";\nimport \"../../loading/index.css\";\nimport \"../index.css\";\n","import { createVNode as _createVNode } from \"vue\";\nimport { ref, watch, nextTick, onUpdated, onMounted, defineComponent } from \"vue\";\nimport { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from \"../utils\";\nimport { useRect, useScrollParent, useEventListener } from \"@vant/use\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { useTabStatus } from \"../composables/use-tab-status\";\nimport { Loading } from \"../loading\";\nconst [name, bem, t] = createNamespace(\"list\");\nconst listProps = {\n error: Boolean,\n offset: makeNumericProp(300),\n loading: Boolean,\n finished: Boolean,\n errorText: String,\n direction: makeStringProp(\"down\"),\n loadingText: String,\n finishedText: String,\n immediateCheck: truthProp\n};\nvar stdin_default = defineComponent({\n name,\n props: listProps,\n emits: [\"load\", \"update:error\", \"update:loading\"],\n setup(props, {\n emit,\n slots\n }) {\n const loading = ref(false);\n const root = ref();\n const placeholder = ref();\n const tabStatus = useTabStatus();\n const scrollParent = useScrollParent(root);\n const check = () => {\n nextTick(() => {\n if (loading.value || props.finished || props.error || (tabStatus == null ? void 0 : tabStatus.value) === false) {\n return;\n }\n const {\n offset,\n direction\n } = props;\n const scrollParentRect = useRect(scrollParent);\n if (!scrollParentRect.height || isHidden(root)) {\n return;\n }\n let isReachEdge = false;\n const placeholderRect = useRect(placeholder);\n if (direction === \"up\") {\n isReachEdge = scrollParentRect.top - placeholderRect.top <= offset;\n } else {\n isReachEdge = placeholderRect.bottom - scrollParentRect.bottom <= offset;\n }\n if (isReachEdge) {\n loading.value = true;\n emit(\"update:loading\", true);\n emit(\"load\");\n }\n });\n };\n const renderFinishedText = () => {\n if (props.finished) {\n const text = slots.finished ? slots.finished() : props.finishedText;\n if (text) {\n return _createVNode(\"div\", {\n \"class\": bem(\"finished-text\")\n }, [text]);\n }\n }\n };\n const clickErrorText = () => {\n emit(\"update:error\", false);\n check();\n };\n const renderErrorText = () => {\n if (props.error) {\n const text = slots.error ? slots.error() : props.errorText;\n if (text) {\n return _createVNode(\"div\", {\n \"role\": \"button\",\n \"class\": bem(\"error-text\"),\n \"tabindex\": 0,\n \"onClick\": clickErrorText\n }, [text]);\n }\n }\n };\n const renderLoading = () => {\n if (loading.value && !props.finished) {\n return _createVNode(\"div\", {\n \"class\": bem(\"loading\")\n }, [slots.loading ? slots.loading() : _createVNode(Loading, {\n \"class\": bem(\"loading-icon\")\n }, {\n default: () => [props.loadingText || t(\"loading\")]\n })]);\n }\n };\n watch(() => [props.loading, props.finished, props.error], check);\n if (tabStatus) {\n watch(tabStatus, (tabActive) => {\n if (tabActive) {\n check();\n }\n });\n }\n onUpdated(() => {\n loading.value = props.loading;\n });\n onMounted(() => {\n if (props.immediateCheck) {\n check();\n }\n });\n useExpose({\n check\n });\n useEventListener(\"scroll\", check, {\n target: scrollParent\n });\n return () => {\n var _a;\n const Content = (_a = slots.default) == null ? void 0 : _a.call(slots);\n const Placeholder = _createVNode(\"div\", {\n \"ref\": placeholder,\n \"class\": bem(\"placeholder\")\n }, null);\n return _createVNode(\"div\", {\n \"ref\": root,\n \"role\": \"feed\",\n \"class\": bem(),\n \"aria-busy\": loading.value\n }, [props.direction === \"down\" ? Content : Placeholder, renderLoading(), renderFinishedText(), renderErrorText(), props.direction === \"up\" ? Content : Placeholder]);\n };\n }\n});\nexport {\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _List from \"./List\";\nconst List = withInstall(_List);\nvar stdin_default = List;\nexport {\n List,\n stdin_default as default\n};\n","// // 默认配置\n// import { netConfig, settingConfig, themeConfig } from './default'\n// // 自定义配置\n// import customConfig from './customConfig'\n//\n// // 导出配置(自定义配置优先级高)\n// export default Object.assign({}, netConfig, settingConfig, themeConfig, customConfig)\n\nexport const setupService = '/duoduo-service/setup-service/'\nexport const objectService = '/duoduo-service/object-service/'\nexport const duoduoenvService = '/duoduo-service/duoduoenv-service/'\nexport const weachatService = '/duoduo-service/'\nexport const customService = '/duoduo-service/custom-service/'\nexport const ssoService = '/sso/'\nexport const testApi = '/test/'\n","import { RootObject, RootWeatherObject } from '@/model/rootObject'\nimport { Users, CompanyModel, OutherWeather, SpaceModel } from '@/model/userModel'\nimport { https } from '@/utils/https'\nimport { RequestParams, ContentType, Method } from 'axios-mapper'\nimport { setQueryConfig, getUserInfo } from '@/utils'\n\nimport { duoduoenvService } from '@/config'\n\n// const comInfo: any = {}\n// comInfo.userId = getUserInfo().userId\n// comInfo.projectId = getUserInfo().projectId\n// const comParams: string = ''\n\n//查询 今日新增 排名\nexport const queryTotalIntegral = (params: any) => {\n return https().request<any>(`${duoduoenvService}userIntegral/queryUserMessage?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n// 查询空调使用统计\nexport const queryPortraitTempUserTotal = () => {\n return https().request<any>(`${duoduoenvService}userPortrait/portraitTemp/queryPortraitTempUserTotal`, Method.GET, undefined, ContentType.json)\n}\n\n// 灯的使用统计\nexport const queryTotalPortraitLight = () => {\n return https().request<any>(`${duoduoenvService}userPortrait/portraitLight/queryTotalPortraitLight`, Method.GET, undefined, ContentType.json)\n}\n/**\n * 空调统计数据 chart详情\n */\nexport const queryPortraitTempUserDetail = (params: any) => {\n return https().request<any>(`${duoduoenvService}userPortrait/portraitTemp/queryPortraitTempUserDetail`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取季节类型\n * @param params\n */\nexport const getSeasonBySeasonDate = (params: any) => {\n return https().request<any>(`${duoduoenvService}custom/getSeasonBySeasonDate?${params}`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * 开灯使用统计图\n */\nexport const queryPortraitLightUser = (params: any) => {\n return https().request<any>(`${duoduoenvService}userPortrait/portraitLight/queryPortraitLightUser`, Method.POST\n , params, ContentType.json)\n}\n\n/**\n * 获取用户积分&获取用户的节能排名\n */\nexport const queryAllIntegral = (params: any) => {\n return https().request<any>(`${duoduoenvService}userIntegral/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 获取用户的节能排名\n */\nexport const queryIntegralRank = (params: any) => {\n return https().request<any>(`${duoduoenvService}userIntegral/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 开关调节记录\n * @param params\n */\nexport const lightFeedbackQuery = (params: any) => {\n return https().request<any>(`${duoduoenvService}custom/feedback/light/query`, Method.POST, params, ContentType.json)\n}\n\n/**\n *\n *空调调节记录\n * @param params\n */\nexport const tempFeedbackQuery = (params: any) => {\n return https().request<any>(`${duoduoenvService}custom/feedbackQuery`, Method.POST, params, ContentType.json)\n}\n\n/**\n * 判断模块的显示和隐藏\n */\nexport const queryPortraitModule = () => {\n return https().request<any>(`${duoduoenvService}userPortrait/queryPortraitModuleList`, Method.GET, undefined, ContentType.json)\n}\n\n\n\n\n\n","import { isDef, isObject } from \"./validate\";\nfunction deepClone(obj) {\n if (!isDef(obj)) {\n return obj;\n }\n if (Array.isArray(obj)) {\n return obj.map((item) => deepClone(item));\n }\n if (isObject(obj)) {\n const to = {};\n Object.keys(obj).forEach((key) => {\n to[key] = deepClone(obj[key]);\n });\n return to;\n }\n return obj;\n}\nexport {\n deepClone\n};\n","import { createVNode as _createVNode } from \"vue\";\nimport { ref, watch, reactive, defineComponent } from \"vue\";\nimport { deepClone } from \"../utils/deep-clone\";\nimport { clamp, isObject, unknownProp, numericProp, makeArrayProp, makeNumberProp, preventDefault, createNamespace, makeRequiredProp } from \"../utils\";\nimport { useParent } from \"@vant/use\";\nimport { useTouch } from \"../composables/use-touch\";\nimport { useExpose } from \"../composables/use-expose\";\nconst DEFAULT_DURATION = 200;\nconst MOMENTUM_LIMIT_TIME = 300;\nconst MOMENTUM_LIMIT_DISTANCE = 15;\nconst [name, bem] = createNamespace(\"picker-column\");\nfunction getElementTranslateY(element) {\n const {\n transform\n } = window.getComputedStyle(element);\n const translateY = transform.slice(7, transform.length - 1).split(\", \")[5];\n return Number(translateY);\n}\nconst PICKER_KEY = Symbol(name);\nconst isOptionDisabled = (option) => isObject(option) && option.disabled;\nvar stdin_default = defineComponent({\n name,\n props: {\n textKey: makeRequiredProp(String),\n readonly: Boolean,\n allowHtml: Boolean,\n className: unknownProp,\n itemHeight: makeRequiredProp(Number),\n defaultIndex: makeNumberProp(0),\n swipeDuration: makeRequiredProp(numericProp),\n initialOptions: makeArrayProp(),\n visibleItemCount: makeRequiredProp(numericProp)\n },\n emits: [\"change\"],\n setup(props, {\n emit,\n slots\n }) {\n let moving;\n let startOffset;\n let touchStartTime;\n let momentumOffset;\n let transitionEndTrigger;\n const wrapper = ref();\n const state = reactive({\n index: props.defaultIndex,\n offset: 0,\n duration: 0,\n options: deepClone(props.initialOptions)\n });\n const touch = useTouch();\n const count = () => state.options.length;\n const baseOffset = () => props.itemHeight * (+props.visibleItemCount - 1) / 2;\n const adjustIndex = (index) => {\n index = clamp(index, 0, count());\n for (let i = index; i < count(); i++) {\n if (!isOptionDisabled(state.options[i]))\n return i;\n }\n for (let i = index - 1; i >= 0; i--) {\n if (!isOptionDisabled(state.options[i]))\n return i;\n }\n };\n const setIndex = (index, emitChange) => {\n index = adjustIndex(index) || 0;\n const offset = -index * props.itemHeight;\n const trigger = () => {\n if (index !== state.index) {\n state.index = index;\n if (emitChange) {\n emit(\"change\", index);\n }\n }\n };\n if (moving && offset !== state.offset) {\n transitionEndTrigger = trigger;\n } else {\n trigger();\n }\n state.offset = offset;\n };\n const setOptions = (options) => {\n if (JSON.stringify(options) !== JSON.stringify(state.options)) {\n state.options = deepClone(options);\n setIndex(props.defaultIndex);\n }\n };\n const onClickItem = (index) => {\n if (moving || props.readonly) {\n return;\n }\n transitionEndTrigger = null;\n state.duration = DEFAULT_DURATION;\n setIndex(index, true);\n };\n const getOptionText = (option) => {\n if (isObject(option) && props.textKey in option) {\n return option[props.textKey];\n }\n return option;\n };\n const getIndexByOffset = (offset) => clamp(Math.round(-offset / props.itemHeight), 0, count() - 1);\n const momentum = (distance, duration) => {\n const speed = Math.abs(distance / duration);\n distance = state.offset + speed / 3e-3 * (distance < 0 ? -1 : 1);\n const index = getIndexByOffset(distance);\n state.duration = +props.swipeDuration;\n setIndex(index, true);\n };\n const stopMomentum = () => {\n moving = false;\n state.duration = 0;\n if (transitionEndTrigger) {\n transitionEndTrigger();\n transitionEndTrigger = null;\n }\n };\n const onTouchStart = (event) => {\n if (props.readonly) {\n return;\n }\n touch.start(event);\n if (moving) {\n const translateY = getElementTranslateY(wrapper.value);\n state.offset = Math.min(0, translateY - baseOffset());\n startOffset = state.offset;\n } else {\n startOffset = state.offset;\n }\n state.duration = 0;\n touchStartTime = Date.now();\n momentumOffset = startOffset;\n transitionEndTrigger = null;\n };\n const onTouchMove = (event) => {\n if (props.readonly) {\n return;\n }\n touch.move(event);\n if (touch.isVertical()) {\n moving = true;\n preventDefault(event, true);\n }\n state.offset = clamp(startOffset + touch.deltaY.value, -(count() * props.itemHeight), props.itemHeight);\n const now = Date.now();\n if (now - touchStartTime > MOMENTUM_LIMIT_TIME) {\n touchStartTime = now;\n momentumOffset = state.offset;\n }\n };\n const onTouchEnd = () => {\n if (props.readonly) {\n return;\n }\n const distance = state.offset - momentumOffset;\n const duration = Date.now() - touchStartTime;\n const allowMomentum = duration < MOMENTUM_LIMIT_TIME && Math.abs(distance) > MOMENTUM_LIMIT_DISTANCE;\n if (allowMomentum) {\n momentum(distance, duration);\n return;\n }\n const index = getIndexByOffset(state.offset);\n state.duration = DEFAULT_DURATION;\n setIndex(index, true);\n setTimeout(() => {\n moving = false;\n }, 0);\n };\n const renderOptions = () => {\n const optionStyle = {\n height: `${props.itemHeight}px`\n };\n return state.options.map((option, index) => {\n const text = getOptionText(option);\n const disabled = isOptionDisabled(option);\n const data = {\n role: \"button\",\n style: optionStyle,\n tabindex: disabled ? -1 : 0,\n class: bem(\"item\", {\n disabled,\n selected: index === state.index\n }),\n onClick: () => onClickItem(index)\n };\n const childData = {\n class: \"van-ellipsis\",\n [props.allowHtml ? \"innerHTML\" : \"textContent\"]: text\n };\n return _createVNode(\"li\", data, [slots.option ? slots.option(option) : _createVNode(\"div\", childData, null)]);\n });\n };\n const setValue = (value) => {\n const {\n options\n } = state;\n for (let i = 0; i < options.length; i++) {\n if (getOptionText(options[i]) === value) {\n return setIndex(i);\n }\n }\n };\n const getValue = () => state.options[state.index];\n setIndex(state.index);\n useParent(PICKER_KEY);\n useExpose({\n state,\n setIndex,\n getValue,\n setValue,\n setOptions,\n stopMomentum\n });\n watch(() => props.initialOptions, setOptions);\n watch(() => props.defaultIndex, (value) => setIndex(value));\n return () => _createVNode(\"div\", {\n \"class\": [bem(), props.className],\n \"onTouchstart\": onTouchStart,\n \"onTouchmove\": onTouchMove,\n \"onTouchend\": onTouchEnd,\n \"onTouchcancel\": onTouchEnd\n }, [_createVNode(\"ul\", {\n \"ref\": wrapper,\n \"style\": {\n transform: `translate3d(0, ${state.offset + baseOffset()}px, 0)`,\n transitionDuration: `${state.duration}ms`,\n transitionProperty: state.duration ? \"all\" : \"none\"\n },\n \"class\": bem(\"wrapper\"),\n \"onTransitionend\": stopMomentum\n }, [renderOptions()])]);\n }\n});\nexport {\n PICKER_KEY,\n stdin_default as default\n};\n","import { createVNode as _createVNode } from \"vue\";\nimport { ref, watch, computed, defineComponent } from \"vue\";\nimport { extend, unitToPx, truthProp, makeArrayProp, preventDefault, makeStringProp, makeNumericProp, createNamespace, HAPTICS_FEEDBACK, BORDER_UNSET_TOP_BOTTOM } from \"../utils\";\nimport { useChildren } from \"@vant/use\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { Loading } from \"../loading\";\nimport Column, { PICKER_KEY } from \"./PickerColumn\";\nconst [name, bem, t] = createNamespace(\"picker\");\nconst pickerSharedProps = {\n title: String,\n loading: Boolean,\n readonly: Boolean,\n allowHtml: Boolean,\n itemHeight: makeNumericProp(44),\n showToolbar: truthProp,\n swipeDuration: makeNumericProp(1e3),\n visibleItemCount: makeNumericProp(6),\n cancelButtonText: String,\n confirmButtonText: String\n};\nconst pickerProps = extend({}, pickerSharedProps, {\n columns: makeArrayProp(),\n valueKey: String,\n defaultIndex: makeNumericProp(0),\n toolbarPosition: makeStringProp(\"top\"),\n columnsFieldNames: Object\n});\nvar stdin_default = defineComponent({\n name,\n props: pickerProps,\n emits: [\"confirm\", \"cancel\", \"change\"],\n setup(props, {\n emit,\n slots\n }) {\n if (process.env.NODE_ENV !== \"production\") {\n if (slots.default) {\n console.warn('[Vant] Picker: \"default\" slot is deprecated, please use \"toolbar\" slot instead.');\n }\n if (props.valueKey) {\n console.warn('[Vant] Picker: \"valueKey\" prop is deprecated, please use \"columnsFieldNames\" prop instead.');\n }\n }\n const hasOptions = ref(false);\n const formattedColumns = ref([]);\n const {\n text: textKey,\n values: valuesKey,\n children: childrenKey\n } = extend({\n text: props.valueKey || \"text\",\n values: \"values\",\n children: \"children\"\n }, props.columnsFieldNames);\n const {\n children,\n linkChildren\n } = useChildren(PICKER_KEY);\n linkChildren();\n const itemHeight = computed(() => unitToPx(props.itemHeight));\n const dataType = computed(() => {\n const firstColumn = props.columns[0];\n if (typeof firstColumn === \"object\") {\n if (childrenKey in firstColumn) {\n return \"cascade\";\n }\n if (valuesKey in firstColumn) {\n return \"object\";\n }\n }\n return \"plain\";\n });\n const formatCascade = () => {\n var _a;\n const formatted = [];\n let cursor = {\n [childrenKey]: props.columns\n };\n while (cursor && cursor[childrenKey]) {\n const children2 = cursor[childrenKey];\n let defaultIndex = (_a = cursor.defaultIndex) != null ? _a : +props.defaultIndex;\n while (children2[defaultIndex] && children2[defaultIndex].disabled) {\n if (defaultIndex < children2.length - 1) {\n defaultIndex++;\n } else {\n defaultIndex = 0;\n break;\n }\n }\n formatted.push({\n [valuesKey]: cursor[childrenKey],\n className: cursor.className,\n defaultIndex\n });\n cursor = children2[defaultIndex];\n }\n formattedColumns.value = formatted;\n };\n const format = () => {\n const {\n columns\n } = props;\n if (dataType.value === \"plain\") {\n formattedColumns.value = [{\n [valuesKey]: columns\n }];\n } else if (dataType.value === \"cascade\") {\n formatCascade();\n } else {\n formattedColumns.value = columns;\n }\n hasOptions.value = formattedColumns.value.some((item) => item[valuesKey] && item[valuesKey].length !== 0);\n };\n const getIndexes = () => children.map((child) => child.state.index);\n const setColumnValues = (index, options) => {\n const column = children[index];\n if (column) {\n column.setOptions(options);\n hasOptions.value = true;\n }\n };\n const onCascadeChange = (columnIndex) => {\n let cursor = {\n [childrenKey]: props.columns\n };\n const indexes = getIndexes();\n for (let i = 0; i <= columnIndex; i++) {\n cursor = cursor[childrenKey][indexes[i]];\n }\n while (cursor && cursor[childrenKey]) {\n columnIndex++;\n setColumnValues(columnIndex, cursor[childrenKey]);\n cursor = cursor[childrenKey][cursor.defaultIndex || 0];\n }\n };\n const getChild = (index) => children[index];\n const getColumnValue = (index) => {\n const column = getChild(index);\n if (column) {\n return column.getValue();\n }\n };\n const setColumnValue = (index, value) => {\n const column = getChild(index);\n if (column) {\n column.setValue(value);\n if (dataType.value === \"cascade\") {\n onCascadeChange(index);\n }\n }\n };\n const getColumnIndex = (index) => {\n const column = getChild(index);\n if (column) {\n return column.state.index;\n }\n };\n const setColumnIndex = (columnIndex, optionIndex) => {\n const column = getChild(columnIndex);\n if (column) {\n column.setIndex(optionIndex);\n if (dataType.value === \"cascade\") {\n onCascadeChange(columnIndex);\n }\n }\n };\n const getColumnValues = (index) => {\n const column = getChild(index);\n if (column) {\n return column.state.options;\n }\n };\n const getValues = () => children.map((child) => child.getValue());\n const setValues = (values) => {\n values.forEach((value, index) => {\n setColumnValue(index, value);\n });\n };\n const setIndexes = (indexes) => {\n indexes.forEach((optionIndex, columnIndex) => {\n setColumnIndex(columnIndex, optionIndex);\n });\n };\n const emitAction = (event) => {\n if (dataType.value === \"plain\") {\n emit(event, getColumnValue(0), getColumnIndex(0));\n } else {\n emit(event, getValues(), getIndexes());\n }\n };\n const onChange = (columnIndex) => {\n if (dataType.value === \"cascade\") {\n onCascadeChange(columnIndex);\n }\n if (dataType.value === \"plain\") {\n emit(\"change\", getColumnValue(0), getColumnIndex(0));\n } else {\n emit(\"change\", getValues(), columnIndex);\n }\n };\n const confirm = () => {\n children.forEach((child) => child.stopMomentum());\n emitAction(\"confirm\");\n };\n const cancel = () => emitAction(\"cancel\");\n const renderTitle = () => {\n if (slots.title) {\n return slots.title();\n }\n if (props.title) {\n return _createVNode(\"div\", {\n \"class\": [bem(\"title\"), \"van-ellipsis\"]\n }, [props.title]);\n }\n };\n const renderCancel = () => {\n const text = props.cancelButtonText || t(\"cancel\");\n return _createVNode(\"button\", {\n \"type\": \"button\",\n \"class\": [bem(\"cancel\"), HAPTICS_FEEDBACK],\n \"onClick\": cancel\n }, [slots.cancel ? slots.cancel() : text]);\n };\n const renderConfirm = () => {\n const text = props.confirmButtonText || t(\"confirm\");\n return _createVNode(\"button\", {\n \"type\": \"button\",\n \"class\": [bem(\"confirm\"), HAPTICS_FEEDBACK],\n \"onClick\": confirm\n }, [slots.confirm ? slots.confirm() : text]);\n };\n const renderToolbar = () => {\n if (props.showToolbar) {\n const slot = slots.toolbar || slots.default;\n return _createVNode(\"div\", {\n \"class\": bem(\"toolbar\")\n }, [slot ? slot() : [renderCancel(), renderTitle(), renderConfirm()]]);\n }\n };\n const renderColumnItems = () => formattedColumns.value.map((item, columnIndex) => {\n var _a;\n return _createVNode(Column, {\n \"textKey\": textKey,\n \"readonly\": props.readonly,\n \"allowHtml\": props.allowHtml,\n \"className\": item.className,\n \"itemHeight\": itemHeight.value,\n \"defaultIndex\": (_a = item.defaultIndex) != null ? _a : +props.defaultIndex,\n \"swipeDuration\": props.swipeDuration,\n \"initialOptions\": item[valuesKey],\n \"visibleItemCount\": props.visibleItemCount,\n \"onChange\": () => onChange(columnIndex)\n }, {\n option: slots.option\n });\n });\n const renderMask = (wrapHeight) => {\n if (hasOptions.value) {\n const frameStyle = {\n height: `${itemHeight.value}px`\n };\n const maskStyle = {\n backgroundSize: `100% ${(wrapHeight - itemHeight.value) / 2}px`\n };\n return [_createVNode(\"div\", {\n \"class\": bem(\"mask\"),\n \"style\": maskStyle\n }, null), _createVNode(\"div\", {\n \"class\": [BORDER_UNSET_TOP_BOTTOM, bem(\"frame\")],\n \"style\": frameStyle\n }, null)];\n }\n };\n const renderColumns = () => {\n const wrapHeight = itemHeight.value * +props.visibleItemCount;\n const columnsStyle = {\n height: `${wrapHeight}px`\n };\n return _createVNode(\"div\", {\n \"class\": bem(\"columns\"),\n \"style\": columnsStyle,\n \"onTouchmove\": preventDefault\n }, [renderColumnItems(), renderMask(wrapHeight)]);\n };\n watch(() => props.columns, format, {\n immediate: true\n });\n useExpose({\n confirm,\n getValues,\n setValues,\n getIndexes,\n setIndexes,\n getColumnIndex,\n setColumnIndex,\n getColumnValue,\n setColumnValue,\n getColumnValues,\n setColumnValues\n });\n return () => {\n var _a, _b;\n return _createVNode(\"div\", {\n \"class\": bem()\n }, [props.toolbarPosition === \"top\" ? renderToolbar() : null, props.loading ? _createVNode(Loading, {\n \"class\": bem(\"loading\")\n }, null) : null, (_a = slots[\"columns-top\"]) == null ? void 0 : _a.call(slots), renderColumns(), (_b = slots[\"columns-bottom\"]) == null ? void 0 : _b.call(slots), props.toolbarPosition === \"bottom\" ? renderToolbar() : null]);\n };\n }\n});\nexport {\n stdin_default as default,\n pickerSharedProps\n};\n","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-073aa592\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"energy-top clearfix\" }\nconst _hoisted_2 = { class: \"top-item fl\" }\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \"我的节能\", -1))\nconst _hoisted_4 = { class: \"top-item pt fr\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"temp-span\" }, \"积分说明\", -1))\nconst _hoisted_6 = { class: \"page-box detail-content\" }\nconst _hoisted_7 = { class: \"detail-box\" }\nconst _hoisted_8 = { class: \"item-date fl\" }\nconst _hoisted_9 = { class: \"item-text fl\" }\nconst _hoisted_10 = { class: \"num fr\" }\nconst _hoisted_11 = { class: \"btns\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_van_icon = _resolveComponent(\"van-icon\")!\n const _component_van_list = _resolveComponent(\"van-list\")!\n const _component_van_datetime_picker = _resolveComponent(\"van-datetime-picker\")!\n const _component_van_popup = _resolveComponent(\"van-popup\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.monthPoints), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", {\n class: \"jifen-item\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.goIntegralDesc && _ctx.goIntegralDesc(...args)))\n }, [\n _hoisted_5,\n _createVNode(_component_van_icon, {\n class: \"question\",\n name: \"question-o\"\n })\n ]),\n _createElementVNode(\"div\", {\n class: \"check-date\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.triggerShowPopup && _ctx.triggerShowPopup(...args)))\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(_ctx.nowDate), 1),\n _createVNode(_component_van_icon, {\n class: \"arrow\",\n name: \"arrow-down\"\n })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_van_list, {\n loading: _ctx.loading,\n \"onUpdate:loading\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.loading) = $event)),\n finished: _ctx.finished,\n \"finished-text\": \"没有更多了\",\n onLoad: _ctx.onLoad\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_7, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"detail-item clearfix\",\n key: item.id\n }, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"span\", null, _toDisplayString(index + 1), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"span\", null, _toDisplayString(item.userName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_10, _toDisplayString(item.totalPoints), 1)\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"loading\", \"finished\", \"onLoad\"])\n ]),\n _createVNode(_component_van_popup, {\n show: _ctx.showPopup,\n \"onUpdate:show\": _cache[5] || (_cache[5] = ($event: any) => ((_ctx.showPopup) = $event)),\n position: \"bottom\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_van_datetime_picker, {\n class: \"date-box\",\n modelValue: _ctx.currentDate,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.currentDate) = $event)),\n \"show-toolbar\": false,\n type: \"year-month\",\n formatter: _ctx.formatter,\n title: \"选择年月日\",\n \"min-date\": _ctx.minDate,\n \"max-date\": _ctx.maxDate\n }, null, 8, [\"modelValue\", \"formatter\", \"min-date\", \"max-date\"]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"span\", {\n onClick: _cache[4] || (_cache[4] = \n//@ts-ignore\n(...args) => (_ctx.comfirm && _ctx.comfirm(...args))),\n class: \"btn btn_com\"\n }, \"确定\")\n ])\n ]),\n _: 1\n }, 8, [\"show\"])\n ], 64))\n}","import { extend } from \"../utils\";\nimport { pickerSharedProps } from \"../picker/Picker\";\nconst sharedProps = extend({}, pickerSharedProps, {\n filter: Function,\n columnsOrder: Array,\n formatter: {\n type: Function,\n default: (type, value) => value\n }\n});\nconst pickerInheritKeys = Object.keys(pickerSharedProps);\nfunction times(n, iteratee) {\n if (n < 0) {\n return [];\n }\n const result = Array(n);\n let index = -1;\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\nfunction getTrueValue(value) {\n if (!value) {\n return 0;\n }\n while (Number.isNaN(parseInt(value, 10))) {\n if (value.length > 1) {\n value = value.slice(1);\n } else {\n return 0;\n }\n }\n return parseInt(value, 10);\n}\nconst getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();\nconst proxyPickerMethods = (picker, callback) => {\n const methods = [\n \"setValues\",\n \"setIndexes\",\n \"setColumnIndex\",\n \"setColumnValue\"\n ];\n return new Proxy(picker, {\n get: (target, prop) => {\n if (methods.includes(prop)) {\n return (...args) => {\n target[prop](...args);\n callback();\n };\n }\n return target[prop];\n }\n });\n};\nexport {\n getMonthEndDay,\n getTrueValue,\n pickerInheritKeys,\n proxyPickerMethods,\n sharedProps,\n times\n};\n","import { createVNode as _createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { ref, watch, computed, nextTick, onMounted, defineComponent } from \"vue\";\nimport { pick, clamp, extend, padZero, createNamespace, makeNumericProp } from \"../utils\";\nimport { times, sharedProps, pickerInheritKeys, proxyPickerMethods } from \"./utils\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { Picker } from \"../picker\";\nconst [name] = createNamespace(\"time-picker\");\nvar stdin_default = defineComponent({\n name,\n props: extend({}, sharedProps, {\n minHour: makeNumericProp(0),\n maxHour: makeNumericProp(23),\n minMinute: makeNumericProp(0),\n maxMinute: makeNumericProp(59),\n modelValue: String\n }),\n emits: [\"confirm\", \"cancel\", \"change\", \"update:modelValue\"],\n setup(props, {\n emit,\n slots\n }) {\n const formatValue = (value) => {\n const {\n minHour,\n maxHour,\n maxMinute,\n minMinute\n } = props;\n if (!value) {\n value = `${padZero(minHour)}:${padZero(minMinute)}`;\n }\n let [hour, minute] = value.split(\":\");\n hour = padZero(clamp(+hour, +minHour, +maxHour));\n minute = padZero(clamp(+minute, +minMinute, +maxMinute));\n return `${hour}:${minute}`;\n };\n const picker = ref();\n const currentDate = ref(formatValue(props.modelValue));\n const ranges = computed(() => [{\n type: \"hour\",\n range: [+props.minHour, +props.maxHour]\n }, {\n type: \"minute\",\n range: [+props.minMinute, +props.maxMinute]\n }]);\n const originColumns = computed(() => ranges.value.map(({\n type,\n range: rangeArr\n }) => {\n let values = times(rangeArr[1] - rangeArr[0] + 1, (index) => padZero(rangeArr[0] + index));\n if (props.filter) {\n values = props.filter(type, values);\n }\n return {\n type,\n values\n };\n }));\n const columns = computed(() => originColumns.value.map((column) => ({\n values: column.values.map((value) => props.formatter(column.type, value))\n })));\n const updateColumnValue = () => {\n const pair = currentDate.value.split(\":\");\n const values = [props.formatter(\"hour\", pair[0]), props.formatter(\"minute\", pair[1])];\n nextTick(() => {\n var _a;\n (_a = picker.value) == null ? void 0 : _a.setValues(values);\n });\n };\n const updateInnerValue = () => {\n const [hourIndex, minuteIndex] = picker.value.getIndexes();\n const [hourColumn, minuteColumn] = originColumns.value;\n const hour = hourColumn.values[hourIndex] || hourColumn.values[0];\n const minute = minuteColumn.values[minuteIndex] || minuteColumn.values[0];\n currentDate.value = formatValue(`${hour}:${minute}`);\n updateColumnValue();\n };\n const onConfirm = () => emit(\"confirm\", currentDate.value);\n const onCancel = () => emit(\"cancel\");\n const onChange = () => {\n updateInnerValue();\n nextTick(() => {\n nextTick(() => emit(\"change\", currentDate.value));\n });\n };\n onMounted(() => {\n updateColumnValue();\n nextTick(updateInnerValue);\n });\n watch(columns, updateColumnValue);\n watch(() => [props.filter, props.maxHour, props.minMinute, props.maxMinute], updateInnerValue);\n watch(() => props.minHour, () => {\n nextTick(updateInnerValue);\n });\n watch(currentDate, (value) => emit(\"update:modelValue\", value));\n watch(() => props.modelValue, (value) => {\n value = formatValue(value);\n if (value !== currentDate.value) {\n currentDate.value = value;\n updateColumnValue();\n }\n });\n useExpose({\n getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)\n });\n return () => _createVNode(Picker, _mergeProps({\n \"ref\": picker,\n \"columns\": columns.value,\n \"onChange\": onChange,\n \"onCancel\": onCancel,\n \"onConfirm\": onConfirm\n }, pick(props, pickerInheritKeys)), slots);\n }\n});\nexport {\n stdin_default as default\n};\n","import { createVNode as _createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { ref, watch, computed, nextTick, onMounted, defineComponent } from \"vue\";\nimport { pick, clamp, extend, isDate, padZero, makeStringProp, createNamespace } from \"../utils\";\nimport { times, sharedProps, getTrueValue, getMonthEndDay, pickerInheritKeys, proxyPickerMethods } from \"./utils\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { Picker } from \"../picker\";\nconst currentYear = new Date().getFullYear();\nconst [name] = createNamespace(\"date-picker\");\nvar stdin_default = defineComponent({\n name,\n props: extend({}, sharedProps, {\n type: makeStringProp(\"datetime\"),\n modelValue: Date,\n minDate: {\n type: Date,\n default: () => new Date(currentYear - 10, 0, 1),\n validator: isDate\n },\n maxDate: {\n type: Date,\n default: () => new Date(currentYear + 10, 11, 31),\n validator: isDate\n }\n }),\n emits: [\"confirm\", \"cancel\", \"change\", \"update:modelValue\"],\n setup(props, {\n emit,\n slots\n }) {\n const formatValue = (value) => {\n if (isDate(value)) {\n const timestamp = clamp(value.getTime(), props.minDate.getTime(), props.maxDate.getTime());\n return new Date(timestamp);\n }\n return void 0;\n };\n const picker = ref();\n const currentDate = ref(formatValue(props.modelValue));\n const getBoundary = (type, value) => {\n const boundary = props[`${type}Date`];\n const year = boundary.getFullYear();\n let month = 1;\n let date = 1;\n let hour = 0;\n let minute = 0;\n if (type === \"max\") {\n month = 12;\n date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);\n hour = 23;\n minute = 59;\n }\n if (value.getFullYear() === year) {\n month = boundary.getMonth() + 1;\n if (value.getMonth() + 1 === month) {\n date = boundary.getDate();\n if (value.getDate() === date) {\n hour = boundary.getHours();\n if (value.getHours() === hour) {\n minute = boundary.getMinutes();\n }\n }\n }\n }\n return {\n [`${type}Year`]: year,\n [`${type}Month`]: month,\n [`${type}Date`]: date,\n [`${type}Hour`]: hour,\n [`${type}Minute`]: minute\n };\n };\n const ranges = computed(() => {\n const {\n maxYear,\n maxDate,\n maxMonth,\n maxHour,\n maxMinute\n } = getBoundary(\"max\", currentDate.value || props.minDate);\n const {\n minYear,\n minDate,\n minMonth,\n minHour,\n minMinute\n } = getBoundary(\"min\", currentDate.value || props.minDate);\n let result = [{\n type: \"year\",\n range: [minYear, maxYear]\n }, {\n type: \"month\",\n range: [minMonth, maxMonth]\n }, {\n type: \"day\",\n range: [minDate, maxDate]\n }, {\n type: \"hour\",\n range: [minHour, maxHour]\n }, {\n type: \"minute\",\n range: [minMinute, maxMinute]\n }];\n switch (props.type) {\n case \"date\":\n result = result.slice(0, 3);\n break;\n case \"year-month\":\n result = result.slice(0, 2);\n break;\n case \"month-day\":\n result = result.slice(1, 3);\n break;\n case \"datehour\":\n result = result.slice(0, 4);\n break;\n }\n if (props.columnsOrder) {\n const columnsOrder = props.columnsOrder.concat(result.map((column) => column.type));\n result.sort((a, b) => columnsOrder.indexOf(a.type) - columnsOrder.indexOf(b.type));\n }\n return result;\n });\n const originColumns = computed(() => ranges.value.map(({\n type,\n range: rangeArr\n }) => {\n let values = times(rangeArr[1] - rangeArr[0] + 1, (index) => padZero(rangeArr[0] + index));\n if (props.filter) {\n values = props.filter(type, values);\n }\n return {\n type,\n values\n };\n }));\n const columns = computed(() => originColumns.value.map((column) => ({\n values: column.values.map((value) => props.formatter(column.type, value))\n })));\n const updateColumnValue = () => {\n const value = currentDate.value || props.minDate;\n const {\n formatter\n } = props;\n const values = originColumns.value.map((column) => {\n switch (column.type) {\n case \"year\":\n return formatter(\"year\", `${value.getFullYear()}`);\n case \"month\":\n return formatter(\"month\", padZero(value.getMonth() + 1));\n case \"day\":\n return formatter(\"day\", padZero(value.getDate()));\n case \"hour\":\n return formatter(\"hour\", padZero(value.getHours()));\n case \"minute\":\n return formatter(\"minute\", padZero(value.getMinutes()));\n default:\n return \"\";\n }\n });\n nextTick(() => {\n var _a;\n (_a = picker.value) == null ? void 0 : _a.setValues(values);\n });\n };\n const updateInnerValue = () => {\n const {\n type\n } = props;\n const indexes = picker.value.getIndexes();\n const getValue = (type2) => {\n let index = 0;\n originColumns.value.forEach((column, columnIndex) => {\n if (type2 === column.type) {\n index = columnIndex;\n }\n });\n const {\n values\n } = originColumns.value[index];\n return getTrueValue(values[indexes[index]]);\n };\n let year;\n let month;\n let day;\n if (type === \"month-day\") {\n year = (currentDate.value || props.minDate).getFullYear();\n month = getValue(\"month\");\n day = getValue(\"day\");\n } else {\n year = getValue(\"year\");\n month = getValue(\"month\");\n day = type === \"year-month\" ? 1 : getValue(\"day\");\n }\n const maxDay = getMonthEndDay(year, month);\n day = day > maxDay ? maxDay : day;\n let hour = 0;\n let minute = 0;\n if (type === \"datehour\") {\n hour = getValue(\"hour\");\n }\n if (type === \"datetime\") {\n hour = getValue(\"hour\");\n minute = getValue(\"minute\");\n }\n const value = new Date(year, month - 1, day, hour, minute);\n currentDate.value = formatValue(value);\n };\n const onConfirm = () => {\n emit(\"update:modelValue\", currentDate.value);\n emit(\"confirm\", currentDate.value);\n };\n const onCancel = () => emit(\"cancel\");\n const onChange = () => {\n updateInnerValue();\n nextTick(() => {\n nextTick(() => emit(\"change\", currentDate.value));\n });\n };\n onMounted(() => {\n updateColumnValue();\n nextTick(updateInnerValue);\n });\n watch(columns, updateColumnValue);\n watch(currentDate, (value, oldValue) => emit(\"update:modelValue\", oldValue ? value : null));\n watch(() => [props.filter, props.maxDate], updateInnerValue);\n watch(() => props.minDate, () => {\n nextTick(updateInnerValue);\n });\n watch(() => props.modelValue, (value) => {\n var _a;\n value = formatValue(value);\n if (value && value.valueOf() !== ((_a = currentDate.value) == null ? void 0 : _a.valueOf())) {\n currentDate.value = value;\n }\n });\n useExpose({\n getPicker: () => picker.value && proxyPickerMethods(picker.value, updateInnerValue)\n });\n return () => _createVNode(Picker, _mergeProps({\n \"ref\": picker,\n \"columns\": columns.value,\n \"onChange\": onChange,\n \"onCancel\": onCancel,\n \"onConfirm\": onConfirm\n }, pick(props, pickerInheritKeys)), slots);\n }\n});\nexport {\n stdin_default as default\n};\n","import { createVNode as _createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { ref, defineComponent } from \"vue\";\nimport { pick, extend, createNamespace } from \"../utils\";\nimport { useExpose } from \"../composables/use-expose\";\nimport TimePicker from \"./TimePicker\";\nimport DatePicker from \"./DatePicker\";\nconst [name, bem] = createNamespace(\"datetime-picker\");\nconst timePickerPropKeys = Object.keys(TimePicker.props);\nconst datePickerPropKeys = Object.keys(DatePicker.props);\nconst datetimePickerProps = extend({}, TimePicker.props, DatePicker.props, {\n modelValue: [String, Date]\n});\nvar stdin_default = defineComponent({\n name,\n props: datetimePickerProps,\n setup(props, {\n attrs,\n slots\n }) {\n const root = ref();\n useExpose({\n getPicker: () => {\n var _a;\n return (_a = root.value) == null ? void 0 : _a.getPicker();\n }\n });\n return () => {\n const isTimePicker = props.type === \"time\";\n const Component = isTimePicker ? TimePicker : DatePicker;\n const inheritProps = pick(props, isTimePicker ? timePickerPropKeys : datePickerPropKeys);\n return _createVNode(Component, _mergeProps({\n \"ref\": root,\n \"class\": bem()\n }, inheritProps, attrs), slots);\n };\n }\n});\nexport {\n stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _DatetimePicker from \"./DatetimePicker\";\nconst DatetimePicker = withInstall(_DatetimePicker);\nvar stdin_default = DatetimePicker;\nexport {\n DatetimePicker,\n stdin_default as default\n};\n","\nimport { defineComponent, reactive, toRefs, onMounted } from 'vue'\nimport { List, DatetimePicker, Popup } from 'vant'\nimport { formatDate, getAddYear, getPreMonth } from '@/utils'\nimport { queryAllIntegral, queryIntegralRank } from '@/apis/portrait'\nimport { useRouter } from 'vue-router'\nimport { store } from '@/store'\n\nexport default defineComponent({\n components: {\n VanList: List,\n VanDatetimePicker: DatetimePicker,\n VanPopup: Popup\n },\n setup() {\n const router = useRouter()\n let list: any = []\n const formatter: any = (type: any, val: any) => {\n if (type === 'year') {\n return `${val}年`\n }\n if (type === 'month') {\n return `${val}月`\n }\n return val\n }\n\n const allUser: any = []\n const proxyData = reactive({\n loading: false,\n finished: false,\n formatter: formatter,\n monthPoints: 0,\n user: store.state.user,\n currentDate: new Date(getPreMonth('YYYY.MM')),\n nowDate: getPreMonth('YYYY.MM'),\n showPopup: false,\n minDate: getAddYear(-2),\n maxDate: getAddYear(0),\n list: list,\n allUser: allUser,\n page: 1,\n pageCount: 12,\n triggerShowPopup() {\n proxyData.showPopup = true\n },\n goIntegralDesc() {\n router.push({ path: '/integral-desc' })\n },\n comfirm() {\n // console.log(proxyData.currentDate);\n let time = formatDate('YYYY.MM', proxyData.currentDate)\n proxyData.page = 1\n proxyData.list = []\n proxyData.nowDate = time\n proxyData.showPopup = false\n // 查看当前月份的节能\n proxyData.list = []\n // 查看总数据\n proxyData.queryAllIntegral()\n proxyData.onLoad()\n },\n onLoad() {\n proxyData.queryIntegralRank()\n },\n /**\n * 获取上月的总积分\n */\n queryAllIntegral() {\n let time = formatDate('YYYYMM', new Date(proxyData.nowDate))\n var param = {\n criteria: {\n 'date': time,\n projectId: proxyData.user.projectId,\n userId: proxyData.user.userId\n }\n }\n queryAllIntegral(param).then((res) => {\n const resData: any = res\n const resContent: any = resData?.content ?? []\n proxyData.monthPoints = resContent[0]?.totalPoints ?? 0\n })\n },\n /**\n * 获取节能排名\n */\n queryIntegralRank() {\n let time = formatDate('YYYYMM', new Date(proxyData.nowDate))\n var params: any = {\n criteria: {\n date: time\n },\n 'orders': [\n {\n 'column': 'totalPoints',\n 'asc': false\n },\n {\n 'column': 'userId',\n 'asc': false\n }\n ],\n 'page': proxyData.page,\n 'size': proxyData.pageCount\n }\n queryAllIntegral(params).then(res => {\n // 加载状态结束\n proxyData.loading = false\n let resData: any = res\n let allRes = resData?.content ?? []\n if (allRes && allRes.length) {\n proxyData.page++\n } else {\n proxyData.finished = true\n }\n allRes.map((item: any) => {\n proxyData.list.push(item)\n })\n proxyData.setUserImg()\n }).catch(() => {\n proxyData.finished = true\n })\n },\n /**\n * 设置用户图像\n */\n setUserImg() {\n proxyData.list.map((ele: any) => {\n proxyData.allUser.filter((item: any) => {\n if (ele.userId == item.id) {\n ele.headImgUrl = item.headImgUrl\n }\n })\n })\n }\n })\n onMounted(() => {\n // 查看上一个月的节能\n proxyData.queryAllIntegral()\n })\n return {\n ...toRefs(proxyData)\n }\n }\n})\n","import { render } from \"./energyRank.vue?vue&type=template&id=073aa592&scoped=true&ts=true\"\nimport script from \"./energyRank.vue?vue&type=script&lang=ts\"\nexport * from \"./energyRank.vue?vue&type=script&lang=ts\"\n\nimport \"./energyRank.vue?vue&type=style&index=0&id=073aa592&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-073aa592\"]])\n\nexport default __exports__","import { withInstall } from \"../utils\";\nimport _Picker from \"./Picker\";\nconst Picker = withInstall(_Picker);\nvar stdin_default = Picker;\nexport {\n Picker,\n stdin_default as default\n};\n"],"sourceRoot":""}