|
@@ -10,7 +10,7 @@
|
|
|
<a-select ref="select" v-model:value="historyParams.interval" placeholder="请选择间隔时间" size="small"
|
|
<a-select ref="select" v-model:value="historyParams.interval" placeholder="请选择间隔时间" size="small"
|
|
|
style="position: absolute; z-index: 99; top: 2px; left: 350px; width: 150px">
|
|
style="position: absolute; z-index: 99; top: 2px; left: 350px; width: 150px">
|
|
|
<a-select-option v-for="(item, index) in skipOption" :key="index" :value="item.value">{{ item.label
|
|
<a-select-option v-for="(item, index) in skipOption" :key="index" :value="item.value">{{ item.label
|
|
|
- }}</a-select-option>
|
|
|
|
|
|
|
+ }}</a-select-option>
|
|
|
</a-select>
|
|
</a-select>
|
|
|
</div>
|
|
</div>
|
|
|
<div ref="echartline" class="echart-line"></div>
|
|
<div ref="echartline" class="echart-line"></div>
|
|
@@ -208,7 +208,8 @@ function getOption() {
|
|
|
|
|
|
|
|
async function getData() {
|
|
async function getData() {
|
|
|
if (props.selectData.stationtype && props.selectData.stationtype != 'redis') {
|
|
if (props.selectData.stationtype && props.selectData.stationtype != 'redis') {
|
|
|
- let res = await listdays({ ttime_begin: historyParams.startTime, ttime_end: historyParams.endTime, strtype: props.deviceType, gdeviceid: props.deviceId, skip: historyParams.skip, pageSize: 100, pageNo: 1 })
|
|
|
|
|
|
|
+ let deviceNum = props.warningMonitorRowIndex == 0 ? 'Fan1' : 'Fan2'
|
|
|
|
|
+ let res = await listdays({ deviceNum: deviceNum, ttime_begin: historyParams.startTime, ttime_end: historyParams.endTime, strtype: props.deviceType, gdeviceid: props.deviceId, skip: historyParams.skip, pageSize: 100, pageNo: 1 })
|
|
|
let data = res.datalist.records
|
|
let data = res.datalist.records
|
|
|
xData.value = res.xlist
|
|
xData.value = res.xlist
|
|
|
if (props.Type == 'windSpeed') {
|
|
if (props.Type == 'windSpeed') {
|