{"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\\dataAnalysis\\attendance.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dataAnalysis\\attendance.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/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Cookies from 'js-cookie';\nimport qs from 'qs';\nimport { getDictDataList } from '@/utils';\nimport vView from \"./v-view\";\nimport { buildMerge } from \"../../../utils/mergeCell.js\";\nexport default {\n data: function data() {\n return {\n viewVisible: false,\n dataForm: {\n scWaid: '',\n startDate: \"\",\n endDate: \"\"\n },\n dataList: [],\n //教职工\n staffList: [],\n centerDialogVisible: false,\n form: {\n date: ''\n },\n ruleform: {\n date: {\n required: true,\n message: '请选择日期',\n trigger: 'change'\n }\n },\n loading: false,\n dateRange: []\n };\n },\n components: {\n vView: vView\n },\n computed: {\n schoolList: function schoolList() {\n return getDictDataList(\"school\");\n },\n toolComputed: function toolComputed() {\n return function (dateStr, row) {\n var str = \"\";\n row.forEach(function (item) {\n if (dateStr === item.stDate) {\n str = \"\".concat(item.stDate, \" \").concat(item.stNum, \"\\u6B21\");\n }\n });\n return str;\n };\n }\n },\n mounted: function mounted() {\n this.getStaffList();\n this.getDataList();\n var current = new Date();\n var dd = new Date(new Date().getTime() - 24 * 60 * 60 * 1000);\n var today = current.toLocaleString('chinese', {\n hour12: false\n }).split('/').join('-').substr(0, 10);\n var old7 = current.setDate(current.getDate() - 6);\n var time = new Date(parseInt(old7)).toLocaleDateString().replaceAll('/', '-');\n this.dataForm.startDate = time;\n this.dataForm.endDate = today;\n this.getBetweenDateStr(time, today);\n },\n methods: {\n getBetweenDateStr: function getBetweenDateStr(start, end) {\n var result = [];\n var beginDay = start.split(\"-\");\n var endDay = end.split(\"-\");\n var diffDay = new Date();\n var dateList = new Array();\n var i = 0;\n diffDay.setDate(beginDay[2]);\n diffDay.setMonth(beginDay[1] - 1);\n diffDay.setFullYear(beginDay[0]);\n result.push(start);\n\n while (i == 0) {\n var countDay = diffDay.getTime() + 24 * 60 * 60 * 1000;\n diffDay.setTime(countDay);\n dateList[2] = diffDay.getDate();\n dateList[1] = diffDay.getMonth() + 1;\n dateList[0] = diffDay.getFullYear();\n\n if (String(dateList[1]).length == 1) {\n dateList[1] = \"0\" + dateList[1];\n }\n\n ;\n\n if (String(dateList[2]).length == 1) {\n dateList[2] = \"0\" + dateList[2];\n }\n\n ;\n result.push(dateList[0] + \"-\" + dateList[1] + \"-\" + dateList[2]);\n\n if (dateList[0] == endDay[0] && dateList[1] == endDay[1] && dateList[2] == endDay[2]) {\n i = 1;\n }\n }\n\n ;\n this.dateRange = result;\n },\n getDataList: function getDataList() {\n var _this = this;\n\n this.loading = true;\n this.$http.get('/system/scattendancestatistics/dataInfo', {\n params: this.dataForm\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.data.length > 0) {\n buildMerge(res.data, 'scWaname', 'aeDevicename');\n _this.dataList = res.data;\n _this.loading = false;\n } else {\n _this.dataList = [];\n }\n }).catch(function () {}).finally(function () {\n _this.loading = false;\n });\n },\n exportDia: function exportDia() {\n this.centerDialogVisible = true;\n },\n // 导出\n exportHandle: function exportHandle() {\n var _this2 = this;\n\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var params = {\n endDate: _this2.form.date[1],\n startDate: _this2.form.date[0],\n scWaid: _this2.dataForm.scWaid\n };\n\n _this2.$http.get(\"/system/scattendancestatistics/export\", {\n responseType: \"blob\",\n params: params\n }).then(function (res) {\n if (res.data.type == 'application/json') {\n return _this2.$message.info(\"暂无数据导出\");\n }\n\n var content = res.data;\n var blob = new Blob([content], {\n type: \"application/vnd.ms-excel;charset=utf-8\"\n });\n var fileName = \"考勤统计表(\" + res.config.params.startDate + \"-\" + res.config.params.endDate + \")\";\n\n if (\"download\" in document.createElement(\"a\")) {\n // 非IE下载\n var elink = document.createElement(\"a\");\n elink.download = fileName;\n elink.style.display = \"none\";\n elink.href = URL.createObjectURL(blob);\n document.body.appendChild(elink);\n elink.click();\n URL.revokeObjectURL(elink.href); // 释放URL 对象\n\n document.body.removeChild(elink);\n } else {\n // IE10+下载\n navigator.msSaveBlob(blob, fileName);\n }\n }).catch(function (err) {});\n } else {\n return false;\n }\n });\n },\n reset: function reset(formName) {\n this.dataForm.scWaid = '';\n this.getDataList();\n },\n // 获取职工信息\n getStaffList: function getStaffList() {\n var _this3 = this;\n\n this.$http.get(\"/system/scworkersarchives/getAll\").then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n return _this3.$message.error(res.msg);\n }\n\n _this3.staffList = res.data;\n }).catch(function () {});\n },\n handleDialogClose: function handleDialogClose() {\n this.centerDialogVisible = false;\n this.form.date = '';\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 },\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 //xiangqing\n viewHandle: function viewHandle(row) {\n var _this4 = this;\n\n this.viewVisible = true;\n this.$nextTick(function () {\n _this4.$refs.viewRef.init(row, _this4.dataForm, \"/system/scattendancestatistics/dataInfo\");\n });\n }\n }\n};",{"version":3,"sources":["attendance.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,OAAA,OAAA,MAAA,WAAA;AACA,OAAA,EAAA,MAAA,IAAA;AACA,SAAA,eAAA,QAAA,SAAA;AACA,OAAA,KAAA;AACA,SACA,UADA;AAGA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,WAAA,EAAA,KADA;AAEA,MAAA,QAAA,EAAA;AACA,QAAA,MAAA,EAAA,EADA;AAEA,QAAA,SAAA,EAAA,EAFA;AAGA,QAAA,OAAA,EAAA;AAHA,OAFA;AAOA,MAAA,QAAA,EAAA,EAPA;AAQA;AACA,MAAA,SAAA,EAAA,EATA;AAUA,MAAA,mBAAA,EAAA,KAVA;AAWA,MAAA,IAAA,EAAA;AACA,QAAA,IAAA,EAAA;AAD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