forked from zhurui/management
1 line
6.0 KiB
JSON
1 line
6.0 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\\warningData\\pm25.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\warningData\\pm25.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\nimport mixinViewModule from '@/mixins/view-module'\nexport default {\n\tmixins: [mixinViewModule],\n\tdata() {\n\t\treturn {\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: 'system/scpmalarm/page',\n\t\t\t\tgetDataListIsPage: true,\n\t\t\t},\n\t\t\tdateTime: null,\n\t\t\tdataForm: {\n\t\t\t\tstartDate: '',\n\t\t\t\tendDate: '',\n\t\t\t\tdevicename: \"\",\n\t\t\t},\n\t\t}\n\t},\n\twatch: {\n\t\tdateTime(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\tmethods: {\n\t\tclickReset() {\n\t\t\tthis.dateTime = null\n\t\t\tthis.dataForm.startDate = \"\";\n\t\t\tthis.dataForm.endDate = \"\";\n\t\t\tthis.dataForm.devicename = \"\"\n\t\t\tthis.getDataList()\n\t\t}\n\t}\n\n}\n",{"version":3,"sources":["pm25.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA;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","file":"pm25.vue","sourceRoot":"src/views/modules/warningData","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-form :model=\"dataForm\" :inline=\"true\" @keyup.enter.native=\"getDataList()\">\n\t\t\t<el-form-item label=\"设备名称\" prop=\"devicename\">\n\t\t\t\t<el-input v-model=\"dataForm.devicename\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"报警时间\">\n\t\t\t\t<el-date-picker v-model=\"dateTime\" type=\"daterange\" value-format=\"yyyy-MM-dd\" range-separator=\"至\" start-placeholder=\"开始日期\"\n\t\t\t\t end-placeholder=\"结束日期\">\n\t\t\t\t</el-date-picker>\n\t\t\t</el-form-item>\n\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=\"clickReset\">重置</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=\"序号\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"devicename\" label=\"设备名称\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column label=\"PM2.5(ug/m³)\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.pmaValue*1< $getDictLabel('envirthreshold','pm' )\">{{scope.row.pmaValue}}</span>\n\t\t\t\t\t<span v-else style=\"color: red\">{{scope.row.pmaValue}}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column label=\"温度(℃)\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.pmaTemperature< $getDictLabel('envirthreshold','temperatureH' )\">{{(scope.row.pmaTemperature*1).toFixed(2)}}</span>\n\t\t\t\t\t<span v-else style=\"color: red\">{{(scope.row.pmaTemperature*1).toFixed(2)}}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"pmaHumidity\" label=\"湿度(%RH)\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<span v-if=\"scope.row.pmaHumidity%100< $getDictLabel('envirthreshold','humidityH' )\">{{(scope.row.pmaHumidity * 1).toFixed(2)}}</span>\n\t\t\t\t\t<span v-else style=\"color: red\">{{(scope.row.pmaHumidity * 1).toFixed(2)}}</span>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"pmaAlarmtime\" label=\"报警时间\" align=\"center\"></el-table-column>\n\t\t</el-table>\n\t\t<el-pagination @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\" :current-page=\"page\"\n\t\t :page-sizes=\"[10, 20, 30, 40]\" :page-size=\"limit\" layout=\"total, sizes, prev, pager, next, jumper\" :total=\"total\">\n\t\t</el-pagination>\n\n\t</el-card>\n</template>\n\n<script>\n\timport mixinViewModule from '@/mixins/view-module'\n\texport default {\n\t\tmixins: [mixinViewModule],\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: 'system/scpmalarm/page',\n\t\t\t\t\tgetDataListIsPage: true,\n\t\t\t\t},\n\t\t\t\tdateTime: null,\n\t\t\t\tdataForm: {\n\t\t\t\t\tstartDate: '',\n\t\t\t\t\tendDate: '',\n\t\t\t\t\tdevicename: \"\",\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\tdateTime(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\tmethods: {\n\t\t\tclickReset() {\n\t\t\t\tthis.dateTime = null\n\t\t\t\tthis.dataForm.startDate = \"\";\n\t\t\t\tthis.dataForm.endDate = \"\";\n\t\t\t\tthis.dataForm.devicename = \"\"\n\t\t\t\tthis.getDataList()\n\t\t\t}\n\t\t}\n\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\n</style>\n"]}]} |