forked from zhurui/management
1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\visitor-report.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\visitor-report.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport qs from 'qs';\nimport Cookies from 'js-cookie';\nimport { buildMerge } from \"../../../utils/mergeCell.js\";\nexport default {\n data: function data() {\n return _defineProperty({\n dataList: [],\n daterange: null,\n dataForm: {\n startDate: '',\n endDate: '',\n dateType: 1\n }\n }, \"dataList\", []);\n },\n watch: {\n daterange: function daterange(val) {\n if (val) {\n this.dataForm.startDate = val[0];\n this.dataForm.endDate = val[1];\n } else {\n this.dataForm.startDate = \"\";\n this.dataForm.endDate = \"\";\n }\n }\n },\n mounted: function mounted() {\n this.getDataList();\n },\n methods: {\n // 列表查询\n getDataList: function getDataList() {\n var _this = this;\n\n this.$http.get(\"/system/reportForm/visitorFloorWeekMonth\", {\n params: this.dataForm\n }).then(function (_ref2) {\n var res = _ref2.data;\n _this.dataList = res.data;\n buildMerge(_this.dataList, 'dateStr', 'floorname');\n }); // this.buildMerge(this.dataList)\n },\n // 导出\n exportHandle: function exportHandle() {\n if (this.dataList.length === 0) {\n return this.$message.info(\"报表暂无数据\");\n }\n\n var params = qs.stringify(_objectSpread({\n 'access_token': Cookies.get('access_token')\n }, this.dataForm));\n window.location.href = \"\".concat(window.SITE_CONFIG['apiURL'], \"/system/reportForm/visitorFloorWeekMonthExport?\").concat(params);\n },\n // 周月切换\n dateTypeHandle: function dateTypeHandle() {\n this.getDataList();\n },\n // 重置\n reset: function reset(formName) {\n this.$refs[formName].resetFields();\n\n if (this.daterange) {\n this.daterange = null;\n }\n\n this.dataForm.dateType = 1;\n this.getDataList();\n },\n objectSpanMethod: function objectSpanMethod(_ref3) {\n var row = _ref3.row,\n column = _ref3.column,\n rowIndex = _ref3.rowIndex,\n columnIndex = _ref3.columnIndex;\n\n if (columnIndex === 0) {\n return this.ret(row, 'firstSpan');\n } else if (columnIndex === 1) {\n return this.ret(row, 'secondSpan');\n } // } else if (columnIndex === 2) {\n // return this.ret(row, 'thirdSpan')\n // } \n // else if (columnIndex === 3) {\n // return this.ret(row, 'fourthSpan')\n // }\n\n },\n ret: function ret(row, obj) {\n if (row && row[obj] != 0) {\n return {\n rowspan: row[obj],\n colspan: 1\n };\n } else {\n return {\n rowspan: 0,\n colspan: 0\n };\n }\n }\n }\n};",{"version":3,"sources":["visitor-report.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAA,EAAA,MAAA,IAAA;AACA,OAAA,OAAA,MAAA,WAAA;AACA,SACA,UADA;AAGA,eAAA;AACA,EAAA,IADA,kBACA;AACA;AACA,MAAA,QAAA,EAAA,EADA;AAEA,MAAA,SAAA,EAAA,IAFA;AAGA,MAAA,QAAA,EAAA;AACA,QAAA,SAAA,EAAA,EADA;AAEA,QAAA,OAAA,EAAA,EAFA;AAGA,QAAA,QAAA,EAAA;AAHA;AAHA,mBAQA,EARA;AAUA,GAZA;AAaA,EAAA,KAAA,EAAA;AACA,IAAA,SADA,qBACA,GADA,EACA;AACA,UAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,GAAA,CAAA,CAAA,CAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,GAAA,CAAA,CAAA,CAAA;AACA,OAHA,MAGA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,EAAA;AACA;AACA;AATA,GAbA;AAwBA,EAAA,OAxBA,qBAwB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GAAA,CAAA,GAAA,EAAA,WAAA,CAAA;AACA,OAFA,MAEA,IAAA,WAAA,KAAA,CAAA,EAAA;AACA,eAAA,KAAA,GAAA,CAAA,GAAA,EAAA,YAAA,CAAA;AACA,OALA,CAMA;AACA;AACA;AACA;AACA;AACA;;AACA,KAtDA;AAuDA,IAAA,GAvDA,eAuDA,GAvDA,EAuDA,GAvDA,EAuDA;AACA,UAAA,GAAA,IAAA,GAAA,CAAA,GAAA,CAAA,IAAA,CAAA,EAAA;AACA,eAAA;AACA,UAAA,OAAA,EAAA,GAAA,CAAA,GAAA,CADA;AAEA,UAAA,OAAA,EAAA;AAFA,SAAA;AAIA,OALA,MAKA;AACA,eAAA;AACA,UAAA,OAAA,EAAA,CADA;AAEA,UAAA,OAAA,EAAA;AAFA,SAAA;AAIA;AACA;AAnEA;AA3BA,CAAA","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill academic-report\">\n\t\t<el-form :model=\"dataForm\" :inline=\"true\" @keyup.enter.native=\"getDataList()\" ref=\"ruleForm\">\n\t\t\t<el-form-item label=\"时间选择\">\n\t\t\t\t<el-date-picker v-model=\"daterange\" type=\"daterange\" value-format=\"yyyy-MM-dd\" range-separator=\"至\"\n\t\t\t\t start-placeholder=\"开始日期\" end-placeholder=\"结束日期\">\n\t\t\t\t</el-date-picker>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"\">\n\t\t\t\t<el-switch v-model=\"dataForm.dateType\" active-text=\"月\" inactive-text=\"周\" active-color=\"#13ce66\" inactive-color=\"#ff4949\"\n\t\t\t\t active-value=2 inactive-value=1 @change=\"dateTypeHandle\">\n\t\t\t\t</el-switch>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button @click=\"getDataList\">查询</el-button>\n\t\t\t\t<el-button type=\"warning\" @click=\"reset('ruleForm')\">重置</el-button>\n\t\t\t\t<el-button type=\"success\" @click=\"exportHandle()\">导出</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table border ref=\"table\" :data=\"dataList\" style=\"width: 100%\" :span-method=\"objectSpanMethod\" :header-cell-style=\"{fontSize:'18px'}\">\n\t\t\t<el-table-column :label=\"dataForm.dateType==1 ? '访客人次周报表' : '访客人次月报表'\" align=\"center\">\n\t\t\t\t<el-table-column prop=\"dateStr\" align=\"center\" label=\"时间段\">\n\t\t\t\t</el-table-column>\n\t\t\t\t<el-table-column prop=\"floorname\" align=\"center\" label=\"楼层\">\n\t\t\t\t</el-table-column>\n\t\t\t\t\n\t\t\t\t<el-table-column prop=\"count\" align=\"center\" label=\"人次\">\n\t\t\t\t</el-table-column>\n\t\t\t</el-table-column>\n\t\t</el-table>\n\t</el-card>\n</template>\n<script>\n\timport qs from 'qs'\n\timport Cookies from 'js-cookie'\n\timport {\n\t\tbuildMerge\n\t} from \"../../../utils/mergeCell.js\"\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdataList: [],\n\t\t\t\tdaterange: null,\n\t\t\t\tdataForm: {\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t\tdateType: 1,\n\t\t\t\t},\n\t\t\t\tdataList: [],\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tdaterange(val) {\n\t\t\t\tif (val) {\n\t\t\t\t\tthis.dataForm.startDate = val[0];\n\t\t\t\t\tthis.dataForm.endDate = val[1];\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataForm.startDate = \"\";\n\t\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tmounted() {\n\t\t\tthis.getDataList()\n\t\t},\n\t\tmethods: {\n\t\t\t// 列表查询\n\t\t\tgetDataList() {\n\t\t\t\tthis.$http.get(\"/system/reportForm/visitorFloorWeekMonth\", {\n\t\t\t\t\tparams: this.dataForm\n\t\t\t\t}).then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\tthis.dataList = res.data\n\t\t\t\t\tbuildMerge(this.dataList, 'dateStr', 'floorname')\n\t\t\t\t})\n\t\t\t\t// this.buildMerge(this.dataList)\n\t\t\t},\n\t\t\t// 导出\n\t\t\texportHandle() {\n\t\t\t\tif(this.dataList.length===0){\n\t\t\t\t\treturn this.$message.info(\"报表暂无数据\")\n\t\t\t\t}\n\t\t\t\tvar params = qs.stringify({\n\t\t\t\t\t'access_token': Cookies.get('access_token'),\n\t\t\t\t\t...this.dataForm\n\t\t\t\t})\n\t\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/reportForm/visitorFloorWeekMonthExport?${params}`\n\t\t\t},\n\t\t\t// 周月切换\n\t\t\tdateTypeHandle() {\n\t\t\t\tthis.getDataList()\n\t\t\t},\n\t\t\t// 重置\n\t\t\treset(formName) {\n\t\t\t\tthis.$refs[formName].resetFields();\n\t\t\t\tif (this.daterange) {\n\t\t\t\t\tthis.daterange = null\n\t\t\t\t}\n\t\t\t\tthis.dataForm.dateType = 1\n\t\t\t\tthis.getDataList()\n\t\t\t},\n\t\t\tobjectSpanMethod({\n\t\t\t\trow,\n\t\t\t\tcolumn,\n\t\t\t\trowIndex,\n\t\t\t\tcolumnIndex\n\t\t\t}) {\n\t\t\t\tif (columnIndex === 0) {\n\t\t\t\t\treturn this.ret(row, 'firstSpan')\n\t\t\t\t} else if (columnIndex === 1) {\n\t\t\t\t\treturn this.ret(row, 'secondSpan')\n\t\t\t\t}\n\t\t\t\t// } else if (columnIndex === 2) {\n\t\t\t\t// return this.ret(row, 'thirdSpan')\n\t\t\t\t// } \n\t\t\t\t// else if (columnIndex === 3) {\n\t\t\t\t// return this.ret(row, 'fourthSpan')\n\t\t\t\t// }\n\t\t\t},\n\t\t\tret(row, obj) {\n\t\t\t\tif (row && row[obj] != 0) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\trowspan: row[obj],\n\t\t\t\t\t\tcolspan: 1\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn {\n\t\t\t\t\t\trowspan: 0,\n\t\t\t\t\t\tcolspan: 0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t}\n\t}\n</script>\n<style lang=\"scss\" scoped>\n\t.academic-report {\n\n\t\t/deep/.el-switch__label {\n\t\t\tcolor: #FFF;\n\t\t}\n\n\t\t/deep/.el-switch__label.is-active {\n\t\t\tcolor: #17B3A3;\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/statisticalReport"}]} |