forked from zhurui/management
1 line
8.7 KiB
JSON
1 line
8.7 KiB
JSON
|
{"remainingRequest":"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\\staff-report.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\statisticalReport\\staff-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":["//\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 {\n\tbuildMerge\n} from \"../../../utils/mergeCell.js\"\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tdataList: [],\n\t\t\tdaterange: null,\n\t\t\tdataForm: {\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t\tdateType: 1,\n\t\t\t},\n\t\t\tdataList: [],\n\t\t}\n\t},\n\twatch: {\n\t\tdaterange(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.dataForm.startDate = val[0];\n\t\t\t\tthis.dataForm.endDate = val[1];\n\t\t\t} else {\n\t\t\t\tthis.dataForm.startDate = \"\";\n\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t}\n\t\t},\n\t},\n\tmounted() {\n\t\tthis.getDataList()\n\t},\n\tmethods: {\n\t\t// 列表查询\n\t\tgetDataList() {\n\t\t\tthis.$http.get(\"/system/reportForm/visitorWorkersWeekMonth\", {\n\t\t\t\tparams: this.dataForm\n\t\t\t}).then(({\n\t\t\t\tdata: res\n\t\t\t}) => {\n\t\t\t\tthis.dataList = res.data\n\t\t\t\tbuildMerge(this.dataList, 'dateStr')\n\t\t\t})\n\t\t\t// this.buildMerge(this.dataList)\n\t\t},\n\t\t// 导出\n\t\texportHandle() {\n\t\t\tif(this.dataList.length===0){\n\t\t\t\treturn this.$message.info(\"报表暂无数据\")\n\t\t\t}\n\t\t\tvar params = qs.stringify({\n\t\t\t\t'access_token': Cookies.get('access_token'),\n\t\t\t\t...this.dataForm\n\t\t\t})\n\t\t\twindow.location.href = `${window.SITE_CONFIG['apiURL']}/system/reportForm/visitorWorkersWeekMonthExport?${params}`\n\t\t},\n\t\t// 周月切换\n\t\tdateTypeHandle() {\n\t\t\tthis.getDataList()\n\t\t},\n\t\t// 重置\n\t\treset(formName) {\n\t\t\tthis.$refs[formName].resetFields();\n\t\t\tif (this.daterange) {\n\t\t\t\tthis.daterange = null\n\t\t\t}\n\t\t\tthis.dataForm.dateType = 1\n\t\t\tthis.getDataList()\n\t\t},\n\t\tobjectSpanMethod({\n\t\t\trow,\n\t\t\tcolumn,\n\t\t\trowIndex,\n\t\t\tcolumnIndex\n\t\t}) {\n\t\t\tif (columnIndex === 0) {\n\t\t\t\treturn this.ret(row, 'firstSpan')\n\t\t\t} \n\t\t\t// else if (columnIndex === 1) {\n\t\t\t// \treturn this.ret(row, 'secondSpan')\n\t\t\t// }\n\t\t\t// } else if (columnIndex === 2) {\n\t\t\t// return this.ret(row, 'thirdSpan')\n\t\t\t// } \n\t\t\t// else if (columnIndex === 3) {\n\t\t\t// return this.ret(row, 'fourthSpan')\n\t\t\t// }\n\t\t},\n\t\tret(row, obj) {\n\t\t\tif (row && row[obj] != 0) {\n\t\t\t\treturn {\n\t\t\t\t\trowspan: row[obj],\n\t\t\t\t\tcolspan: 1\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn {\n\t\t\t\t\trowspan: 0,\n\t\t\t\t\tcolspan: 0\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t}\n}\n",{"version":3,"sources":["staff-report.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA
|