forked from zhurui/management
1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\dormitoryManage\\temperature.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dormitoryManage\\temperature.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":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.number.constructor\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { getDictDataList } from '@/utils';\nexport default {\n data: function data() {\n return {\n dataListLoading: false,\n daterange: null,\n dataForm: {\n ysfr: \"\",\n startTime: \"\",\n endTime: \"\"\n },\n pageObj: {\n pageNo: 1,\n pageSize: 6,\n note: {}\n },\n total: 0,\n dataList: []\n };\n },\n watch: {\n daterange: function daterange(val) {\n if (val) {\n this.dataForm.startTime = val[0];\n this.dataForm.endTime = val[1];\n } else {\n this.dataForm.startTime = \"\";\n this.dataForm.endTime = \"\";\n }\n }\n },\n computed: {\n previewList: function previewList() {\n return this.dataList.map(function (item) {\n return item.face;\n });\n },\n ysfrOptions: function ysfrOptions() {\n return getDictDataList(\"temp_type\");\n }\n },\n created: function created() {\n this.initData();\n },\n methods: {\n pageSizeChangeHandle: function pageSizeChangeHandle(pageSize) {\n this.pageObj.pageSize = pageSize;\n this.pageCurrentChangeHandle(this.pageObj.pageNo);\n },\n pageCurrentChangeHandle: function pageCurrentChangeHandle(pageNo) {\n this.pageObj.pageNo = pageNo;\n this.initData();\n },\n initData: function initData() {\n var _this = this;\n\n this.pageObj.note = _objectSpread({}, this.pageObj.note, {}, this.dataForm);\n this.dataListLoading = true;\n this.$http.post(window.SITE_CONFIG['temperatureUrl'], this.pageObj).then(function (res) {\n //console.log(res)\n if (res.data.code !== 0) {\n return _this.$message.error(res.msg);\n }\n\n _this.dataList = res.data.data.records;\n _this.total = Number(res.data.data.total);\n }).catch(function () {}).finally(function () {\n _this.dataListLoading = false;\n });\n },\n getDataList: function getDataList() {\n this.pageObj.pageNo = 1;\n this.initData();\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n\n if (this.daterange) {\n this.daterange = null;\n this.dataForm.startDate = \"\";\n this.dataForm.endDate = \"\";\n }\n\n this.dataForm.ysfr = \"\";\n this.getDataList();\n }\n }\n};",{"version":3,"sources":["temperature.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,SACA,eADA,QAEA,SAFA;AAGA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,eAAA,EAAA,KADA;AAEA,MAAA,SAAA,EAAA,IAFA;AAGA,MAAA,QAAA,EAAA;AACA,QAAA,IAAA,EAAA,EADA;AAEA,QAAA,SAAA,EAAA,EAFA;AAGA,QAAA,OAAA,EAAA;AAHA,OAHA;AAQA,MAAA,OAAA,EAAA;AACA,QAAA,MAAA,EAAA,CADA;AAEA,QAAA,QAAA,EAAA,CAFA;AAGA,QAAA,IAAA,EAAA;AAHA,OARA;AAaA,MAAA,KAAA,EAAA,CAbA;AAcA,MAAA,QAAA,EAAA;AAdA,KAAA;AAgBA,GAlBA;AAmBA,EAAA,KAAA,EAAA;AACA,IAAA,SADA,qBACA,GADA,EACA;AACA,UAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,GAAA,CAAA,CAAA,CAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,GAAA,CAAA,CAAA,CAAA;AACA,OAHA,MAGA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,EAAA;AACA;AACA;AATA,GAnBA;AA8BA,EAAA,QAAA,EAAA;AACA,I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;AA2BA,IAAA,WA3BA,yBA2BA;AACA,WAAA,OAAA,CAAA,MAAA,GAAA,CAAA;AACA,WAAA,QAAA;AACA,KA9BA;AA+BA,IAAA,SA/BA,qBA+BA,QA/BA,EA+BA;AACA,WAAA,KAAA,CAAA,QAAA,EAAA,WAAA;;AACA,UAAA,KAAA,SAAA,EAAA;AACA,aAAA,SAAA,GAAA,IAAA;AACA,aAAA,QAAA,CAAA,SAAA,GAAA,EAAA;AACA,aAAA,QAAA,CAAA,OAAA,GAAA,EAAA;AACA;;AACA,WAAA,QAAA,CAAA,IAAA,GAAA,EAAA;AACA,WAAA,WAAA;AACA;AAxCA;AA3CA,CAAA","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-form :inline=\"true\" :model=\"dataForm\" @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\" format=\"yyyy-MM-dd HH:mm:ss\" value-format=\"yyyy-MM-dd HH:mm:ss\"\n\t\t\t\t range-separator=\"至\" start-placeholder=\"开始日期\" end-placeholder=\"结束日期\" style=\"width: 500px;\">\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-select v-model=\"dataForm.ysfr\" placeholder=\"是否高温\" filterable clearable>\n\t\t\t\t\t<el-option v-for=\"item in ysfrOptions\" :key=\"item.dictValue\" :label=\"item.dictLabel\" :value=\"item.dictValue\"></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=\"resetForm('ruleForm')\">重置</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table v-loading=\"dataListLoading\" :data=\"dataList\" style=\"width: 100%\">\n\t\t\t<el-table-column type=\"index\" label=\"序号\"></el-table-column>\n\t\t\t<el-table-column prop=\"face\" label=\"照片\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-image class=\"student-img\" :src=\"scope.row.face\" :preview-src-list=\"previewList\">\n\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\t\t\t<img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</el-image>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"temperature\" label=\"体温(℃)\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.temperature<37.3\" style=\"color:#67C23A;\"> {{ scope.row.temperature}}</span>\n\t\t\t\t\t<span v-else style=\"color:#f56c6c;\"> {{ scope.row.temperature }}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"createTime\" label=\"采集时间\"></el-table-column>\n\t\t\t<el-table-column prop=\"equipmentAddress\" label=\"采集地址\"></el-table-column>\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"pageObj.pageNo\" :page-sizes=\"[6,10, 20, 50, 100]\" :page-size=\"pageObj.pageSize\" :total=\"total\"\n\t\t layout=\"total, sizes, prev, pager, next, jumper\" @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\"></el-pagination>\n\t</el-card>\n</template>\n<script>\n\timport {\n\t\tgetDictDataList,\n\t} from '@/utils'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdataListLoading: false,\n\t\t\t\tdaterange: null,\n\t\t\t\tdataForm: {\n\t\t\t\t\tysfr: \"\",\n\t\t\t\t\tstartTime: \"\",\n\t\t\t\t\tendTime: \"\",\n\t\t\t\t},\n\t\t\t\tpageObj: {\n\t\t\t\t\tpageNo: 1,\n\t\t\t\t\tpageSize: 6,\n\t\t\t\t\tnote: {}\n\t\t\t\t},\n\t\t\t\ttotal: 0,\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.startTime = val[0];\n\t\t\t\t\tthis.dataForm.endTime = val[1];\n\t\t\t\t} else {\n\t\t\t\t\tthis.dataForm.startTime = \"\";\n\t\t\t\t\tthis.dataForm.endTime = \"\";\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tcomputed: {\n\t\t\tpreviewList() {\n\t\t\t\treturn this.dataList.map(item => {\n\t\t\t\t\treturn item.face\n\t\t\t\t})\n\t\t\t},\n\t\t\tysfrOptions() {\n\t\t\t\treturn getDictDataList(\"temp_type\")\n\t\t\t},\n\t\t},\n\t\tcreated() {\n\t\t\tthis.initData()\n\t\t},\n\t\tmethods: {\n\t\t\tpageSizeChangeHandle(pageSize) {\n\t\t\t\tthis.pageObj.pageSize = pageSize;\n\t\t\t\tthis.pageCurrentChangeHandle(this.pageObj.pageNo);\n\t\t\t},\n\t\t\tpageCurrentChangeHandle(pageNo) {\n\t\t\t\tthis.pageObj.pageNo = pageNo;\n\t\t\t\tthis.initData();\n\t\t\t},\n\t\t\tinitData() {\n\t\t\t\tthis.pageObj.note = {\n\t\t\t\t\t...this.pageObj.note,\n\t\t\t\t\t...this.dataForm\n\t\t\t\t}\n\t\t\t\tthis.dataListLoading = true\n\t\t\t\tthis.$http.post(window.SITE_CONFIG['temperatureUrl'], this.pageObj).then(res => {\n\t\t\t\t\t//console.log(res)\n\t\t\t\t\tif (res.data.code !== 0) {\n\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.dataList = res.data.data.records\n\t\t\t\t\tthis.total = Number(res.data.data.total)\n\n\t\t\t\t}).catch(() => {}).finally(() => {\n\t\t\t\t\tthis.dataListLoading = false\n\t\t\t\t})\n\t\t\t},\n\t\t\tgetDataList() {\n\t\t\t\tthis.pageObj.pageNo = 1\n\t\t\t\tthis.initData()\n\t\t\t},\n\t\t\tresetForm(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\tthis.dataForm.startDate = \"\";\n\t\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t\t}\n\t\t\t\tthis.dataForm.ysfr = \"\"\n\t\t\t\tthis.getDataList()\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t.el-table {\n\t\t.student-img {\n\t\t\tvertical-align: top;\n\t\t\twidth: 53px;\n\t\t\theight: 70px;\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/dormitoryManage"}]} |