forked from zhurui/management
1 line
11 KiB
JSON
1 line
11 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\\dataAnalysis\\only-in-not-out.vue?vue&type=style&index=0&id=992226b4&lang=scss&scoped=true&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dataAnalysis\\only-in-not-out.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\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.not-in-or-out {\n\t.squareContent {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\n\t\t.divSquare {\n\t\t\tmargin: 8px;\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n}\n",{"version":3,"sources":["only-in-not-out.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyOA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"only-in-not-out.vue","sourceRoot":"src/views/modules/dataAnalysis","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill staff-report not-in-or-out\">\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=\"结束日期\" :picker-options=\"pickerOptions\">\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-input v-model=\"dataForm.num\"></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"类型\" prop=\"typeArr\">\n\t\t\t\t<el-select filterable v-model=\"typeArr\" placeholder=\"请选择\" multiple clearable style=\"width: 500px;\">\n\t\t\t\t\t<el-option v-for=\"item in options\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\n\t\t\t\t\t</el-option>\n\t\t\t\t</el-select>\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</el-form-item>\n\t\t</el-form>\n\t\t<el-table v-loading=\"loading\" element-loading-text=\"拼命加载中\" element-loading-spinner=\"el-icon-loading\"\n\t\t element-loading-background=\"rgba(0, 0, 0, 0.8)\" border ref=\"table\" :span-method=\"objectSpanMethod\" :data=\"dataList\"\n\t\t style=\"width: 100%\" :header-cell-style=\"{fontSize:'16px'}\">\n\t\t\t<el-table-column prop=\"scStuname\" align=\"center\" label=\"姓名\" width=\"100\">\n\t\t\t</el-table-column>\n\t\t\t<el-table-column align=\"center\" label=\"性别\" width=\"100\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t{{ $getDictLabel(\"gender\", scope.row.scSex) }}\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"scPhonenum\" align=\"center\" label=\"联系电话\" width=\"200\">\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"type\" align=\"center\" label=\"位置\" width=\"200\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.type == 1\">宿舍闸机</span>\n\t\t\t\t\t<span v-else-if=\"scope.row.type == 2\">教学楼闸机</span>\n\t\t\t\t\t<span v-else-if=\"scope.row.type == 4\">UWB</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"times\" align=\"center\" label=\"异常次数\" width=\"180\">\n\t\t\t</el-table-column>\n\t\t\t<el-table-column align=\"center\">\n\t\t\t\t<template slot=\"header\">\n\t\t\t\t\t<div style=\"display: flex;justify-content: center;align-items: center;\">\n\t\t\t\t\t\t<div>结果描述</div>\n\t\t\t\t\t\t<div>(</div>\n\t\t\t\t\t\t<div style=\"width: 12px;height: 12px;background-color: red;margin: 0 10px;\"></div>\n\t\t\t\t\t\t<div>异常</div>\n\t\t\t\t\t\t<div style=\"width: 12px;height: 12px;background-color: green;margin: 0 10px\"></div>\n\t\t\t\t\t\t<div style=\"margin-right: 10px;\">正常</div>\n\t\t\t\t\t\t<div>)</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t</template>\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<div class=\"squareContent\" style=\"display: flex;flex-wrap:wrap\">\n\t\t\t\t\t\t<el-tooltip v-for=\"(item,index) in dateRange\" effect=\"light\" :content=\"toolComputed(item,scope.row.dataAnalysisInfoDTOList) ? toolComputed(item,scope.row.dataAnalysisInfoDTOList) : item\"\n\t\t\t\t\t\t placement=\"top-start\" :key=\"index\">\n\t\t\t\t\t\t\t<div class=\"divSquare\" :style=\"{backgroundColor:toolComputed(item,scope.row.dataAnalysisInfoDTOList) ? 'red' : 'green'}\">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</el-tooltip>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column align=\"center\" label=\"操作\" width=\"180\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-button type=\"text\" @click=\"viewHandle(scope.row)\">详情</el-button>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t</el-table>\n\t\t<v-view ref=\"viewRef\" v-if=\"viewVisible\">\n\n\t\t</v-view>\n\t</el-card>\n</template>\n<script>\n\timport {\n\t\tgetAllDate,\n\t\tgetNowFormatDate\n\t} from \"../../../utils/dateTime.js\"\n\timport {\n\t\tbuildMerge\n\t} from \"../../../utils/mergeCell.js\"\n\timport vView from './v-view'\n\texport default {\n\t\tcomponents: {\n\t\t\tvView\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tviewVisible: false,\n\t\t\t\tloading: false,\n\t\t\t\toptions: [{\n\t\t\t\t\tvalue: '1',\n\t\t\t\t\tlabel: '宿舍闸机'\n\t\t\t\t}, {\n\t\t\t\t\tvalue: '2',\n\t\t\t\t\tlabel: '教学楼闸机'\n\t\t\t\t}, {\n\t\t\t\t\tvalue: '4',\n\t\t\t\t\tlabel: 'UWB'\n\t\t\t\t}],\n\t\t\t\tpickerOptions: {\n\t\t\t\t\tdisabledDate(time) {\n\t\t\t\t\t\treturn time.getTime() > Date.now() - 86400000;\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdaterange: [new Date(new Date().getTime() - 1296000000), new Date(new Date() - 86400000)],\n\t\t\t\ttypeArr: [\"1\", \"2\"], // 默认选择'宿舍闸机'和'教学楼闸机'\n\t\t\t\tdataForm: {\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t\tnum: 3,\n\t\t\t\t\ttype: \"\",\n\t\t\t\t},\n\t\t\t\tdataList: [],\n\t\t\t\tdateRange: [],\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\tcomputed: {\n\t\t\ttoolComputed() {\n\t\t\t\treturn function(dateStr, row) {\n\t\t\t\t\tlet str = \"\"\n\t\t\t\t\trow.forEach(item => {\n\t\t\t\t\t\tif (dateStr === item.createDate) {\n\t\t\t\t\t\t\tstr = `${item.createDate} ${item.num}次`\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\treturn str\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\tviewHandle(row) {\n\t\t\t\tthis.viewVisible = true\n\t\t\t\tthis.$nextTick(() => {\n\t\t\t\t\tthis.$refs.viewRef.init(row,this.dataForm,\"/system/dataAnalysis/onlyInNotOut\")\n\t\t\t\t})\n\t\t\t},\n\t\t\t// 列表查询\n\t\t\tgetDataList() {\n\t\t\t\tif (this.typeArr.length === 0) {\n\t\t\t\t\treturn this.$message.warning(\"类型不能为空\")\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataForm.type = this.typeArr.join()\n\t\t\t\t}\n\t\t\t\tif (this.daterange) {\n\t\t\t\t\tthis.dataForm.startDate = this.daterange[0];\n\t\t\t\t\tthis.dataForm.endDate = this.daterange[1];\n\t\t\t\t\tif (typeof this.dataForm.startDate === 'object') {\n\t\t\t\t\t\tthis.dateRange = getAllDate(getNowFormatDate(this.dataForm.startDate), getNowFormatDate(this.dataForm.endDate))\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.dateRange = getAllDate(this.dataForm.startDate, this.dataForm.endDate)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.$http.get(\"/system/dataAnalysis/onlyInNotOut\", {\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\tif (res.data.length > 0) {\n\t\t\t\t\t\tbuildMerge(res.data, 'scStuname', 'scSex', 'scPhonenum')\n\t\t\t\t\t\tthis.dataList = res.data.map(item => {\n\t\t\t\t\t\t\titem.times = 0\n\t\t\t\t\t\t\titem.dataAnalysisInfoDTOList.forEach(item1 => {\n\t\t\t\t\t\t\t\titem.times = item.times + item1.num\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\treturn item\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.dataList = []\n\t\t\t\t\t}\n\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\tthis.loading = false\n\t\t\t\t})\n\t\t\t},\n\n\t\t\t// 重置\n\t\t\treset(formName) {\n\t\t\t\tthis.$refs[formName].resetFields();\n\t\t\t\tthis.daterange = [new Date(new Date().getTime() - 1296000000), new Date(new Date() - 86400000)]\n\t\t\t\tthis.typeArr = [\"1\", \"2\"]\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} else if (columnIndex === 2) {\n\t\t\t\t\treturn this.ret(row, 'thirdSpan')\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.not-in-or-out {\n\t\t.squareContent {\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\n\t\t\t.divSquare {\n\t\t\t\tmargin: 8px;\n\t\t\t\twidth: 10px;\n\t\t\t\theight: 10px;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t}\n\t}\n</style>\n"]}]} |