forked from zhurui/management
1 line
6.8 KiB
JSON
1 line
6.8 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\\dormitoryManage\\temperature.vue?vue&type=style&index=0&id=750b161d&lang=scss&scoped=true&","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\\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.el-table {\n\t.student-img {\n\t\tvertical-align: top;\n\t\twidth: 53px;\n\t\theight: 70px;\n\t}\n}\n",{"version":3,"sources":["temperature.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuIA;AACA;AACA;AACA;AACA;AACA;AACA","file":"temperature.vue","sourceRoot":"src/views/modules/dormitoryManage","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"]}]} |