| | |
| | | import {getStatisticsData, getStatisticsAlarm} from '@/api/screen/statics/index.js' |
| | | import {getTemperaturePointList} from '@/api/screen/index.js' |
| | | import moment from "moment"; |
| | | import {deepCOnfig} from '@/config/index.js' |
| | | |
| | | const cascaderOption = { label: 'pointName', value: 'id', children: 'childrenList', expandTrigger: 'hover', emitPath: false }; //级联选择器配置 |
| | | |
| | | |
| | | const menuList = ref([]) |
| | | const pointId = ref('') |
| | |
| | | value: moment().format('YYYY-MM-DD'), |
| | | data: [] |
| | | }) |
| | | |
| | | const tempDeep = ref(50) |
| | | const wenduChartRef = ref() |
| | | const shuiweiChartRef = ref() |
| | | let wenduCharts = null; |
| | |
| | | const data = { |
| | | type: wendu.type, |
| | | dataTime: wendu.value, |
| | | pointId: pointId.value |
| | | pointId: pointId.value, |
| | | waterLevel: tempDeep.value |
| | | } |
| | | getStatisticsData(data).then(res => { |
| | | wendu.data = res.data |
| | |
| | | <div class="item-t"> |
| | | <div class="name">水温汇总统计</div> |
| | | <div class="select"> |
| | | <el-cascader size="large" v-model="pointId" :options="menuList" :show-all-levels="false" :props="cascaderOption" clearable @change="getTempData" /> |
| | | <el-select v-model="tempDeep" style="width: 10rem"> |
| | | <el-option |
| | | v-for="item in deepCOnfig" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | <el-cascader v-model="pointId" :options="menuList" :show-all-levels="false" :props="cascaderOption" clearable @change="getTempData" /> |
| | | <el-radio-group v-model="wendu.type" @change="handleSelectType('wendu')"> |
| | | <el-radio :value="1">日</el-radio> |
| | | <el-radio :value="3">月</el-radio> |
| | |
| | | color: #fff; |
| | | } |
| | | .select{ |
| | | :deep(.el-select) { |
| | | width: 8rem; |
| | | margin-right: 2rem; |
| | | .el-select__wrapper{ |
| | | background-color: transparent; |
| | | box-shadow: none; |
| | | border: 1px solid #fff; |
| | | } |
| | | .el-select__placeholder{ |
| | | color: #fff; |
| | | } |
| | | } |
| | | :deep(.el-cascader){ |
| | | width: 12rem; |
| | | margin-right: 2rem; |
| | | .el-input__wrapper{ |
| | | background-color: transparent; |