management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/36326ddd5390dfdc764c0601b11...

1 line
6.5 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=style&index=0&id=26afb5e3&lang=scss&scoped=true&","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\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"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\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\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.staff-report {\n\n\t/deep/.el-switch__label {\n\t\tcolor: #FFF;\n\t}\n\n\t/deep/.el-switch__label.is-active {\n\t\tcolor: #17B3A3;\n\t}\n}\n",{"version":3,"sources":["staff-report.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyIA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA","file":"staff-report.vue","sourceRoot":"src/views/modules/statisticalReport","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill staff-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=\"name\" align=\"center\" label=\"教职工姓名\">\n\t\t\t\t</el-table-column>\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/visitorWorkersWeekMonth\", {\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')\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/visitorWorkersWeekMonthExport?${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} \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.staff-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"]}]}