forked from zhurui/management
1 line
15 KiB
JSON
1 line
15 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-out-not-in.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dataAnalysis\\only-out-not-in.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/onlyOutNotIn\")\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/onlyOutNotIn\", {\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
|