{"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=script&lang=js&","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\\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 {\n\tgetAllDate,\n\tgetNowFormatDate\n} from \"../../../utils/dateTime.js\"\nimport {\n\tbuildMerge\n} from \"../../../utils/mergeCell.js\"\nimport vView from './v-view'\nexport default {\n\tcomponents: {\n\t\tvView\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tviewVisible: false,\n\t\t\tloading: false,\n\t\t\toptions: [{\n\t\t\t\tvalue: '1',\n\t\t\t\tlabel: '宿舍闸机'\n\t\t\t}, {\n\t\t\t\tvalue: '2',\n\t\t\t\tlabel: '教学楼闸机'\n\t\t\t}, {\n\t\t\t\tvalue: '4',\n\t\t\t\tlabel: 'UWB'\n\t\t\t}],\n\t\t\tpickerOptions: {\n\t\t\t\tdisabledDate(time) {\n\t\t\t\t\treturn time.getTime() > Date.now() - 86400000;\n\t\t\t\t},\n\t\t\t},\n\t\t\tdaterange: [new Date(new Date().getTime() - 1296000000), new Date(new Date() - 86400000)],\n\t\t\ttypeArr: [\"1\", \"2\"], // 默认选择'宿舍闸机'和'教学楼闸机'\n\t\t\tdataForm: {\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t\tnum: 3,\n\t\t\t\ttype: \"\",\n\t\t\t},\n\t\t\tdataList: [],\n\t\t\tdateRange: [],\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\tcomputed: {\n\t\ttoolComputed() {\n\t\t\treturn function(dateStr, row) {\n\t\t\t\tlet str = \"\"\n\t\t\t\trow.forEach(item => {\n\t\t\t\t\tif (dateStr === item.createDate) {\n\t\t\t\t\t\tstr = `${item.createDate} ${item.num}次`\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\treturn str\n\t\t\t}\n\t\t},\n\t},\n\tmounted() {\n\t\tthis.getDataList()\n\t},\n\tmethods: {\n\t\tviewHandle(row) {\n\t\t\tthis.viewVisible = true\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tthis.$refs.viewRef.init(row,this.dataForm,\"/system/dataAnalysis/onlyInNotOut\")\n\t\t\t})\n\t\t},\n\t\t// 列表查询\n\t\tgetDataList() {\n\t\t\tif (this.typeArr.length === 0) {\n\t\t\t\treturn this.$message.warning(\"类型不能为空\")\n\t\t\t} else {\n\t\t\t\tthis.dataForm.type = this.typeArr.join()\n\t\t\t}\n\t\t\tif (this.daterange) {\n\t\t\t\tthis.dataForm.startDate = this.daterange[0];\n\t\t\t\tthis.dataForm.endDate = this.daterange[1];\n\t\t\t\tif (typeof this.dataForm.startDate === 'object') {\n\t\t\t\t\tthis.dateRange = getAllDate(getNowFormatDate(this.dataForm.startDate), getNowFormatDate(this.dataForm.endDate))\n\t\t\t\t} else {\n\t\t\t\t\tthis.dateRange = getAllDate(this.dataForm.startDate, this.dataForm.endDate)\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.$http.get(\"/system/dataAnalysis/onlyInNotOut\", {\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\tif (res.data.length > 0) {\n\t\t\t\t\tbuildMerge(res.data, 'scStuname', 'scSex', 'scPhonenum')\n\t\t\t\t\tthis.dataList = res.data.map(item => {\n\t\t\t\t\t\titem.times = 0\n\t\t\t\t\t\titem.dataAnalysisInfoDTOList.forEach(item1 => {\n\t\t\t\t\t\t\titem.times = item.times + item1.num\n\t\t\t\t\t\t})\n\t\t\t\t\t\treturn item\n\t\t\t\t\t})\n\t\t\t\t\tthis.loading = false\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataList = []\n\t\t\t\t}\n\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\n\t\t// 重置\n\t\treset(formName) {\n\t\t\tthis.$refs[formName].resetFields();\n\t\t\tthis.daterange = [new Date(new Date().getTime() - 1296000000), new Date(new Date() - 86400000)]\n\t\t\tthis.typeArr = [\"1\", \"2\"]\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} else if (columnIndex === 1) {\n\t\t\t\treturn this.ret(row, 'secondSpan')\n\t\t\t} else if (columnIndex === 2) {\n\t\t\t\treturn this.ret(row, 'thirdSpan')\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":["only-in-not-out.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA;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;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;;AAEA;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","file":"only-in-not-out.vue","sourceRoot":"src/views/modules/dataAnalysis","sourcesContent":["\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t查询\n\t\t\t\t重置\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ $getDictLabel(\"gender\", scope.row.scSex) }}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t宿舍闸机\n\t\t\t\t\t教学楼闸机\n\t\t\t\t\tUWB\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
结果描述
\n\t\t\t\t\t\t
(
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
异常
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
正常
\n\t\t\t\t\t\t
)
\n\t\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t详情\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\n\t\t\n\t\n\n\n\n"]}]}