Commit 9dd157c6 authored by hubaoshan's avatar hubaoshan

所有页面(除了换热站温度报警信息和管道温度报警信息)的灰边问题,以及换热站温度的报警信息的处理状态加了一个(只看未处理报警信息)的按钮

parent 0a975ffd
<script setup> <script setup>
import {ref, defineProps, reactive, watch} from "vue"; import {ref, defineProps, reactive, watch} from "vue";
import {getAlarmListData} from "../../../api/AIStation/Extinguisher.js"; import {getAlarmListData} from "../../../api/AIStation/Extinguisher.js";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
let AlarmData = ref([]) let AlarmData = ref([])
...@@ -165,7 +165,7 @@ const handleSortChange = (data) => { ...@@ -165,7 +165,7 @@ const handleSortChange = (data) => {
:data="AlarmData" :data="AlarmData"
border border
style="width: 100%" style="width: 100%"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -201,11 +201,15 @@ const handleSortChange = (data) => { ...@@ -201,11 +201,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
</div> </div>
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js"; import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js";
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
let HistoryData = ref([]) let HistoryData = ref([])
const historyPage = reactive({total: 0, rows: 20, page: 1}); const historyPage = reactive({total: 0, rows: 20, page: 1});
...@@ -177,7 +177,7 @@ const handleSortChange = (data) => { ...@@ -177,7 +177,7 @@ const handleSortChange = (data) => {
:data="HistoryData" :data="HistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -223,11 +223,16 @@ const handleSortChange = (data) => { ...@@ -223,11 +223,16 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled" <el-footer style="height: 50px;">
:background="background" layout="total, sizes, prev, pager, next, jumper" <el-config-provider :locale="zhCn">
:total="historyPage.total" <el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/> :page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper"
:total="historyPage.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
<script setup> <script setup>
import {onMounted, reactive, ref, toRefs, watch} from "vue"; import { reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getListNewData} from "../../../api/AIStation/Extinguisher.js"; import {getListNewData} from "../../../api/AIStation/Extinguisher.js";
import {useRoute} from "vue-router"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import {handleGetAIToken} from "../AItoken.js";
const ExtinguisherNewData = ref([]) const ExtinguisherNewData = ref([])
...@@ -172,6 +171,7 @@ const handleSortChange = (data) => { ...@@ -172,6 +171,7 @@ const handleSortChange = (data) => {
Page.total = res.total Page.total = res.total
}) })
}; };
defineExpose({ defineExpose({
getData getData
}); });
...@@ -185,7 +185,7 @@ defineExpose({ ...@@ -185,7 +185,7 @@ defineExpose({
:data="ExtinguisherNewData" :data="ExtinguisherNewData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -230,11 +230,16 @@ defineExpose({ ...@@ -230,11 +230,16 @@ defineExpose({
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows" <el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled" :page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total" :background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/> @size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
...@@ -323,7 +328,9 @@ defineExpose({ ...@@ -323,7 +328,9 @@ defineExpose({
.table-operate-column { .table-operate-column {
font-size: 12px; font-size: 12px;
} }
.table-operate-column .el-button {
font-size: 12px;
}
.pagination { .pagination {
padding: 0; padding: 0;
margin-left: 20px; margin-left: 20px;
......
...@@ -318,7 +318,7 @@ watch( ...@@ -318,7 +318,7 @@ watch(
<el-form-item label="换热站:"> <el-form-item label="换热站:">
<!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"--> <!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"-->
<!-- placeholder="请选择" style="min-width: 210px;" />--> <!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 210px" filterable clearable> <el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 200px" filterable clearable>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -328,7 +328,7 @@ watch( ...@@ -328,7 +328,7 @@ watch(
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1"> <el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1">
<el-select placeholder="请选择" clearable style="width: 180px" v-model="queryParams.alarmStatus"> <el-select placeholder="请选择" clearable style="width: 200px" v-model="queryParams.alarmStatus">
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/> <el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -338,7 +338,7 @@ watch( ...@@ -338,7 +338,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -349,7 +349,7 @@ watch( ...@@ -349,7 +349,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
......
<script setup> <script setup>
import {ref, defineProps, defineEmits, computed, isRef, onMounted, watchEffect, reactive, watch} from "vue"; import {ref, defineProps,reactive, watch} from "vue";
import {getAlarmListData} from "../../../api/AIStation/Extinguisher.js";
import {getMoveListAlarmNewData} from "../../../api/AIStation/MoveMonitor.js"; import {getMoveListAlarmNewData} from "../../../api/AIStation/MoveMonitor.js";
import {getTransListAlarmData} from "../../../api/AIStation/TransTemp.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import store from "../../../store/index.js";
import {handleGetAIToken} from "../AItoken.js";
import {useRoute} from "vue-router";
let AlarmData = ref([]) let AlarmData = ref([])
...@@ -172,7 +168,7 @@ const handleSortChange = (data) => { ...@@ -172,7 +168,7 @@ const handleSortChange = (data) => {
:data="AlarmData" :data="AlarmData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -212,11 +208,15 @@ const handleSortChange = (data) => { ...@@ -212,11 +208,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
</div> </div>
</template> </template>
......
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js"; import { getMoveListHistoryData} from "../../../api/AIStation/MoveMonitor.js";
import {getMoveListAlarmNewData, getMoveListHistoryData} from "../../../api/AIStation/MoveMonitor.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import store from "../../../store/index.js";
const HistoryData = ref([]) const HistoryData = ref([])
const enterpriseId = ref(); const enterpriseId = ref();
...@@ -179,7 +178,7 @@ const handleSortChange = (data) => { ...@@ -179,7 +178,7 @@ const handleSortChange = (data) => {
:data="HistoryData" :data="HistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -237,11 +236,15 @@ const handleSortChange = (data) => { ...@@ -237,11 +236,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows" <el-footer style="height: 50px;">
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled" <el-config-provider :locale="zhCn">
:background="background" layout="total, sizes, prev, pager, next, jumper" <el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows"
:total="historyPage.total" :page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/> :background="background" layout="total, sizes, prev, pager, next, jumper"
:total="historyPage.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
<script setup> <script setup>
import {onMounted, reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getListNewData} from "../../../api/AIStation/Extinguisher.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import {getMoveListHistoryData, getMoveListNewData} from "../../../api/AIStation/MoveMonitor.js"; import {getMoveListNewData} from "../../../api/AIStation/MoveMonitor.js";
import store from "../../../store/index.js";
const MoveMonitorNewData = ref([]) const MoveMonitorNewData = ref([])
const enterpriseId = ref(); const enterpriseId = ref();
...@@ -182,7 +182,7 @@ const handleSortChange = (data) => { ...@@ -182,7 +182,7 @@ const handleSortChange = (data) => {
:data="MoveMonitorNewData" :data="MoveMonitorNewData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -239,11 +239,15 @@ const handleSortChange = (data) => { ...@@ -239,11 +239,15 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
...@@ -319,7 +319,7 @@ watch( ...@@ -319,7 +319,7 @@ watch(
<el-form-item label="换热站:"> <el-form-item label="换热站:">
<!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"--> <!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"-->
<!-- placeholder="请选择" style="min-width: 210px;" />--> <!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 210px" filterable clearable> <el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 200px" filterable clearable>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -329,7 +329,7 @@ watch( ...@@ -329,7 +329,7 @@ watch(
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1"> <el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1">
<el-select placeholder="" clearable style="width: 180px" v-model="queryParams.alarmStatus"> <el-select placeholder="" clearable style="width: 200px" v-model="queryParams.alarmStatus">
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/> <el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -339,7 +339,7 @@ watch( ...@@ -339,7 +339,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -350,7 +350,7 @@ watch( ...@@ -350,7 +350,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
......
<script setup> <script setup>
import {ref, defineProps, reactive, watch} from "vue"; import {ref, defineProps, reactive, watch} from "vue";
import {getPipListAlarmData} from "../../../api/AIStation/PipelineTemp.js"; import {getPipListAlarmData} from "../../../api/AIStation/PipelineTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
let AlarmData = ref([]) let AlarmData = ref([])
...@@ -162,7 +162,7 @@ const handleSortChange = (data) => { ...@@ -162,7 +162,7 @@ const handleSortChange = (data) => {
:data="AlarmData" :data="AlarmData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -203,11 +203,15 @@ const handleSortChange = (data) => { ...@@ -203,11 +203,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
</div> </div>
</template> </template>
......
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import {getPipListHistoryData} from "../../../api/AIStation/PipelineTemp.js"; import {getPipListHistoryData} from "../../../api/AIStation/PipelineTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
let HistoryData = ref([]) let HistoryData = ref([])
const params = ref({}) const params = ref({})
...@@ -172,7 +172,7 @@ const handleSortChange = (data) => { ...@@ -172,7 +172,7 @@ const handleSortChange = (data) => {
:data="HistoryData" :data="HistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -205,11 +205,15 @@ const handleSortChange = (data) => { ...@@ -205,11 +205,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows" <el-footer style="height: 50px;">
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled" <el-config-provider :locale="zhCn">
:background="background" layout="total, sizes, prev, pager, next, jumper" <el-pagination v-model:current-page="historyPage.page" v-model:page-size="historyPage.rows"
:total="historyPage.total" :page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/> :background="background" layout="total, sizes, prev, pager, next, jumper"
:total="historyPage.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
<script setup> <script setup>
import { reactive, ref, watch} from "vue"; import { reactive, ref, watch} from "vue";
import {getPipListNewData} from "../../../api/AIStation/PipelineTemp.js"; import {getPipListNewData} from "../../../api/AIStation/PipelineTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const PipelineTempNewData = ref([]) const PipelineTempNewData = ref([])
const params = ref({}) const params = ref({})
...@@ -181,7 +181,7 @@ const handleSortChange = (data) => { ...@@ -181,7 +181,7 @@ const handleSortChange = (data) => {
:data="PipelineTempNewData" :data="PipelineTempNewData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -213,11 +213,15 @@ const handleSortChange = (data) => { ...@@ -213,11 +213,15 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
...@@ -344,7 +344,7 @@ watch( ...@@ -344,7 +344,7 @@ watch(
<el-form-item label="换热站:"> <el-form-item label="换热站:">
<!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"--> <!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"-->
<!-- placeholder="请选择" style="min-width: 210px;" />--> <!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 210px" filterable clearable> <el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 200px" filterable clearable>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -354,7 +354,7 @@ watch( ...@@ -354,7 +354,7 @@ watch(
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1"> <el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1">
<el-select placeholder="" clearable style="width: 180px" v-model="queryParams.alarmStatus"> <el-select placeholder="" clearable style="width: 200px" v-model="queryParams.alarmStatus">
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/> <el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -369,7 +369,7 @@ watch( ...@@ -369,7 +369,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -380,7 +380,7 @@ watch( ...@@ -380,7 +380,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
......
<script setup> <script setup>
import {ref, reactive, defineProps, watch} from "vue"; import {ref, reactive, defineProps, watch} from "vue";
import {getPipListAlarmData} from "../../../api/AIStation/PipelineTemp.js";
import {getRecycleListAlarmData} from "../../../api/AIStation/RecyclePump.js"; import {getRecycleListAlarmData} from "../../../api/AIStation/RecyclePump.js";
import {getMoveListAlarmNewData} from "../../../api/AIStation/MoveMonitor.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import store from "../../../store/index.js";
const TransTempAlarmData = ref([]) const TransTempAlarmData = ref([])
const params = ref({}) const params = ref({})
...@@ -166,7 +164,7 @@ const handleSortChange = (data) => { ...@@ -166,7 +164,7 @@ const handleSortChange = (data) => {
:data="TransTempAlarmData" :data="TransTempAlarmData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -206,11 +204,15 @@ const handleSortChange = (data) => { ...@@ -206,11 +204,15 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
</div> </div>
</template> </template>
......
<script setup> <script setup>
import {reactive, ref, onMounted, watch} from "vue"; import {reactive, ref, watch} from "vue";
import {getAudio, getRecycleListHistoryData} from "../../../api/AIStation/RecyclePump.js"; import {getAudio, getRecycleListHistoryData} from "../../../api/AIStation/RecyclePump.js";
import WaveSurfer from 'wavesurfer.js'; import WaveSurfer from 'wavesurfer.js';
import TimelinePlugin from 'wavesurfer.js/dist/plugin/wavesurfer.timeline'; import TimelinePlugin from 'wavesurfer.js/dist/plugin/wavesurfer.timeline';
import RegionsPlugin from 'wavesurfer.js/dist/plugin/wavesurfer.regions'; import RegionsPlugin from 'wavesurfer.js/dist/plugin/wavesurfer.regions';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const RecyclePumpData = ref([]); const RecyclePumpData = ref([]);
const params = ref({}) const params = ref({})
const options = ref([]) const options = ref([])
...@@ -405,7 +408,7 @@ defineExpose({ ...@@ -405,7 +408,7 @@ defineExpose({
:data="RecyclePumpData" :data="RecyclePumpData"
border border
style="width: 45%;margin-left: 15px" style="width: 45%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@row-click="selectRow" @row-click="selectRow"
...@@ -427,11 +430,16 @@ defineExpose({ ...@@ -427,11 +430,16 @@ defineExpose({
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="placeholder"/> <div class="placeholder"/>
<div class="details-container"> <div class="details-container">
<el-row :gutter="24"> <el-row :gutter="24">
......
<script setup> <script setup>
import {reactive, ref, onMounted, watch} from "vue"; import {reactive, ref,watch} from "vue";
import {getPipListNewData} from "../../../api/AIStation/PipelineTemp.js"; import {getAudio, getRecycleListNewData} from "../../../api/AIStation/RecyclePump.js";
import {getAudio, getRecycleListHistoryData, getRecycleListNewData} from "../../../api/AIStation/RecyclePump.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import store from "../../../store/index.js";
import WaveSurfer from "wavesurfer.js"; import WaveSurfer from "wavesurfer.js";
import RegionsPlugin from "wavesurfer.js/dist/plugin/wavesurfer.regions.js"; import RegionsPlugin from "wavesurfer.js/dist/plugin/wavesurfer.regions.js";
import TimelinePlugin from "wavesurfer.js/dist/plugin/wavesurfer.timeline.js"; import TimelinePlugin from "wavesurfer.js/dist/plugin/wavesurfer.timeline.js";
...@@ -412,7 +411,7 @@ defineExpose({ ...@@ -412,7 +411,7 @@ defineExpose({
:data="RecyclePumpData" :data="RecyclePumpData"
border border
style="width: 45%;margin-left: 15px" style="width: 45%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@row-click="selectRow" @row-click="selectRow"
...@@ -434,11 +433,15 @@ defineExpose({ ...@@ -434,11 +433,15 @@ defineExpose({
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="placeholder"/> <div class="placeholder"/>
<div class="details-container"> <div class="details-container">
<el-row :gutter="24"> <el-row :gutter="24">
......
...@@ -187,15 +187,15 @@ const resetSearch = () => { ...@@ -187,15 +187,15 @@ const resetSearch = () => {
queryParams.endTime = '' queryParams.endTime = ''
queryParams.stationId = '' queryParams.stationId = ''
searchData.value = [] searchData.value = []
childParams.value = { // childParams.value = {
// page: Page.page, // // page: Page.page,
// size: Page.rows, // // size: Page.rows,
// stationId: '', // // stationId: '',
// alarmStatus: '', // // alarmStatus: '',
// alarmType: '', // // alarmType: '',
// beginTime: '', // // beginTime: '',
// endTime: '', // // endTime: '',
} // }
getData() getData()
}; };
const childComponentRef = ref(null); const childComponentRef = ref(null);
...@@ -261,47 +261,29 @@ function getEnterprise() { ...@@ -261,47 +261,29 @@ function getEnterprise() {
} }
} }
function getSupplys() { function getSupplys(){
loading.value = true; loading.value = true;
// tableData.length = 0; // tableData.length = 0;
options.length = 0; options.length = 0;
const result = store.getters.getEnterprise(); const result = store.getters.getEnterprise();
if (result) { if (result) {
console.log('result:', result) console.log('result:',result)
result.forEach(element => { result.forEach(element=>{
let allItems = [] let allItems = []
if (element.enterpriseId === enterpriseId.value) { if(element.enterpriseId === enterpriseId.value){
if (element.enterpriseId === "9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()) { if(element.enterpriseId === "9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()){
element.serviceCenterList.forEach(center => {//遍历一级目录下的 element.serviceCenterList.forEach(center=>{//遍历一级目录下的
center.supplyList.forEach(supply => {//拿到一级目录下的然后遍历它二级目录下的 center.supplyList.forEach(supply => {//拿到一级目录下的然后遍历它二级目录下的
console.log('supply:', supply) supply.transferList.forEach(unit => {
supply.stationList.forEach(station => {//拿到 allItems.push({ stationId: unit.stationId, stationName: unit.unitName,supplyId: unit.supplyId,unitId:unit.unitId})
let unitIdList = []
supply.transferList.forEach(unit => {
//unit的stationId等于station的stationId的话,就把这个unit的unitId添加到unitIdList中
if (unit.stationId === station.stationId) {
unitIdList.push(unit.unitId)
}
})
//将unitIdList集合按逗号分隔成字符串
let unitId = unitIdList.join(',')
allItems.push({
stationId: station.stationId,
stationName: station.stationName,
supplyId: station.supplyId,
unitId: unitId
})
});
});
})
} else {
element.supplyList.forEach(element => {
element.stationList.forEach(station => {
allItems.push({
stationId: station.stationId,
stationName: station.stationName,
supplyId: station.supplyId
}) })
});
});
console.log('allItems:',allItems)
}else{
element.supplyList.forEach(supply => {
supply.transferList.forEach(unit => {
allItems.push({ stationId: unit.stationId, stationName: unit.unitName,supplyId: unit.supplyId,unitId:unit.unitId})
}) })
}) })
} }
...@@ -320,7 +302,7 @@ getSupplys(); ...@@ -320,7 +302,7 @@ getSupplys();
<el-form-item label="换热站:"> <el-form-item label="换热站:">
<!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"--> <!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"-->
<!-- placeholder="请选择" style="min-width: 210px;" />--> <!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 210px" filterable clearable> <el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 200px" filterable clearable>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -330,7 +312,7 @@ getSupplys(); ...@@ -330,7 +312,7 @@ getSupplys();
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1"> <el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1">
<el-select placeholder="" clearable style="width: 180px" v-model="queryParams.alarmStatus"> <el-select placeholder="" clearable style="width: 200px" v-model="queryParams.alarmStatus">
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/> <el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -340,7 +322,7 @@ getSupplys(); ...@@ -340,7 +322,7 @@ getSupplys();
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -351,7 +333,7 @@ getSupplys(); ...@@ -351,7 +333,7 @@ getSupplys();
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
......
<script setup> <script setup>
import {ref, defineProps, defineEmits, computed, isRef, onMounted, watchEffect, reactive, watch} from "vue"; import {defineProps, reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getTransListAlarmData} from "../../../api/AIStation/TransTemp.js"; import {getTransListAlarmData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const TransTempAlarmData = ref([]) const TransTempAlarmData = ref([])
...@@ -84,16 +84,16 @@ function getDataByParams() { ...@@ -84,16 +84,16 @@ function getDataByParams() {
alarmType: props.queryParams.alarmType, alarmType: props.queryParams.alarmType,
sortList: sortList, sortList: sortList,
} }
if (item.stationId === undefined){ if (item.stationId === undefined) {
item.stationId = '' item.stationId = ''
} }
if (item.beginTime == null){ if (item.beginTime == null) {
item.beginTime = '' item.beginTime = ''
} }
if (item.endTime == null){ if (item.endTime == null) {
item.endTime = '' item.endTime = ''
} }
if(item.alarmType === undefined){ if (item.alarmType === undefined) {
item.alarmType = '' item.alarmType = ''
} }
getTransListAlarmData(item).then(res => { getTransListAlarmData(item).then(res => {
...@@ -110,6 +110,7 @@ function getDataNew(item) { ...@@ -110,6 +110,7 @@ function getDataNew(item) {
Page.rows = res.pageSize Page.rows = res.pageSize
}) })
} }
defineExpose({ defineExpose({
getData getData
}); });
...@@ -122,14 +123,14 @@ const handleSortChange = (data) => { ...@@ -122,14 +123,14 @@ const handleSortChange = (data) => {
sortList = [] sortList = []
// 添加新的排序属性 // 添加新的排序属性
const sortMap = sortMapData; const sortMap = sortMapData;
if (sortMap.size > 0){ if (sortMap.size > 0) {
sortMap.clear() sortMap.clear()
} }
//将被点击的排序字段信息data,注册到sortMap中,key为参数名,value为{prop,order} //将被点击的排序字段信息data,注册到sortMap中,key为参数名,value为{prop,order}
if (data.order === null){ if (data.order === null) {
sortMap.delete(data.prop); sortMap.delete(data.prop);
} else { } else {
sortMap.set(data.prop, { prop: data.prop, order: data.order }); sortMap.set(data.prop, {prop: data.prop, order: data.order});
sortNewData.value = sortMap sortNewData.value = sortMap
} }
//将sortMap的value放到sortList中 //将sortMap的value放到sortList中
...@@ -146,16 +147,16 @@ const handleSortChange = (data) => { ...@@ -146,16 +147,16 @@ const handleSortChange = (data) => {
alarmType: props.queryParams.alarmType, alarmType: props.queryParams.alarmType,
sortList: sortList, sortList: sortList,
} }
if (item.stationId === undefined){ if (item.stationId === undefined) {
item.stationId = '' item.stationId = ''
} }
if (item.beginTime == null){ if (item.beginTime == null) {
item.beginTime = '' item.beginTime = ''
} }
if (item.endTime == null){ if (item.endTime == null) {
item.endTime = '' item.endTime = ''
} }
console.log('item--------------',item) console.log('item--------------', item)
//查询数据 //查询数据
getTransListAlarmData(item).then(res => { getTransListAlarmData(item).then(res => {
TransTempAlarmData.value = res.rows TransTempAlarmData.value = res.rows
...@@ -163,6 +164,16 @@ const handleSortChange = (data) => { ...@@ -163,6 +164,16 @@ const handleSortChange = (data) => {
Page.total = res.total Page.total = res.total
}) })
}; };
const detailOpen = ref(false)
const statusData = ref([])
function handleStatus1() {
statusData.value = TransTempAlarmData.value.filter(item => item.handleStatus === 0)
detailOpen.value = true
console.log('?===========')
}
</script> </script>
<template> <template>
...@@ -173,7 +184,7 @@ const handleSortChange = (data) => { ...@@ -173,7 +184,7 @@ const handleSortChange = (data) => {
:data="TransTempAlarmData" :data="TransTempAlarmData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -218,6 +229,10 @@ const handleSortChange = (data) => { ...@@ -218,6 +229,10 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="handleStatus" align="center" label="处理状态"> <el-table-column prop="handleStatus" align="center" label="处理状态">
<template #header>
<span>处理状态</span>
<el-button size="small" @click="handleStatus1">操作</el-button>
</template>
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.handleStatus=== 0" style="color: red">未处理</span> <span v-if="scope.row.handleStatus=== 0" style="color: red">未处理</span>
<span v-else-if="scope.row.handleStatus=== 1">已处理</span> <span v-else-if="scope.row.handleStatus=== 1">已处理</span>
...@@ -233,11 +248,84 @@ const handleSortChange = (data) => { ...@@ -233,11 +248,84 @@ const handleSortChange = (data) => {
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<el-dialog title="查看未处理状态"
v-model="detailOpen"
width="1200px"
:close-on-click-modal="false"
append-to-body>
<el-table
:data="statusData"
border
style="width: 98%;margin-left: 15px"
height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass"
@sort-change="handleSortChange"
>
<el-table-column type="index" label="序号" align="center" width="100"/>
<el-table-column prop="stationName" label="换热站" align="center">
<template #default="scope">
<span>{{ scope.row.stationName || '-' }}</span>
</template>
</el-table-column>
<el-table-column prop="srcName" label="设备名称" align="center"/>
<el-table-column prop="eventTime" label="报警时间" align="center" width="180px"/>
<el-table-column prop="alarmLevel" align="center" label="报警等级">
<template #default="scope">
<span v-if="scope.row.alarmLevel=== 0">预警</span>
<span v-else-if="scope.row.alarmLevel=== 1">报警</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column prop="alarmType" align="center" label="报警类型">
<template #default="scope">
<span v-if="scope.row.alarmType=== 0">最高温度</span>
<span v-else-if="scope.row.alarmType=== 1">最低温度</span>
<span v-else-if="scope.row.alarmType=== 2">平均温度</span>
<span v-else-if="scope.row.alarmType=== 3">温差</span>
<span v-else-if="scope.row.alarmType=== 4">温度突升</span>
<span v-else-if="scope.row.alarmType=== 5">温度突降</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column prop="curTemperatureDiff" align="center" label="当前温差"/>
<el-table-column prop="imageUrl" align="center" label="热成像图片">
<template #default="scope">
<el-image
style="width:100%;height:100%;"
:src="getImageSrc(scope.row)"
>
<div slot="error" class="image-slot">
<i class="el-icon-picture-outline"/>
</div>
</el-image>
</template>
</el-table-column>
<el-table-column prop="handleStatus" align="center" label="处理状态">
<template #default="scope">
<span v-if="scope.row.handleStatus=== 0" style="color: red">未处理</span>
<span v-else-if="scope.row.handleStatus=== 1">已处理</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<template #default="scope">
<div class="table-operate-column">
<el-button link @click="handleCamera" type="primary">打开摄像头</el-button>
</div>
</template>
</el-table-column>
</el-table>
</el-dialog>
</div> </div>
</template> </template>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getTransListHistoryData} from "../../../api/AIStation/TransTemp.js"; import {getTransListHistoryData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const TransTempHistoryData = ref([]) const TransTempHistoryData = ref([])
const params = ref({}) const params = ref({})
...@@ -175,7 +175,7 @@ const handleSortChange = (data) => { ...@@ -175,7 +175,7 @@ const handleSortChange = (data) => {
:data="TransTempHistoryData" :data="TransTempHistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -218,11 +218,16 @@ const handleSortChange = (data) => { ...@@ -218,11 +218,16 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-TransTempPage"> <div class="dialog-TransTempPage">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '/imgs/default.png' import analysisImage from '/imgs/default.png'
import {getTransListNewData} from "../../../api/AIStation/TransTemp.js"; import {getTransListNewData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const TransTempNewData = ref([]) const TransTempNewData = ref([])
const params = ref({}) const params = ref({})
...@@ -182,7 +182,7 @@ const handleSortChange = (data) => { ...@@ -182,7 +182,7 @@ const handleSortChange = (data) => {
:data="TransTempNewData" :data="TransTempNewData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(90vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -225,11 +225,15 @@ const handleSortChange = (data) => { ...@@ -225,11 +225,15 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-TransTempPage"> <div class="dialog-TransTempPage">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
...@@ -353,7 +353,7 @@ watch( ...@@ -353,7 +353,7 @@ watch(
<el-form-item label="换热站:"> <el-form-item label="换热站:">
<!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"--> <!-- <el-cascader :options="options" v-model="stationId" :props="props" collapse-tags clearable :show-all-levels="false"-->
<!-- placeholder="请选择" style="min-width: 210px;" />--> <!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 210px" filterable clearable> <el-select v-model="queryParams.stationId" placeholder="请选择" style="min-width: 200px" filterable clearable>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
...@@ -363,7 +363,7 @@ watch( ...@@ -363,7 +363,7 @@ watch(
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1"> <el-form-item label="告警状态:" prop="alarmStatus" v-show="selectedBtn === 1">
<el-select placeholder="" clearable style="width: 180px" v-model="queryParams.alarmStatus"> <el-select placeholder="" clearable style="width: 200px" v-model="queryParams.alarmStatus">
<el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/> <el-option v-for="item in alarmStatusList" :key="item.value" :value="item.value" :label="item.label"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -378,7 +378,7 @@ watch( ...@@ -378,7 +378,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -389,7 +389,7 @@ watch( ...@@ -389,7 +389,7 @@ watch(
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
......
...@@ -4,15 +4,11 @@ import zhCn from "element-plus/dist/locale/zh-cn.mjs" ...@@ -4,15 +4,11 @@ import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import store from "../../store/index.js"; import store from "../../store/index.js";
import { import {
getVoiceCommandsData, getVoiceCommandsData,
deleteVoiceCommands,
addVoiceCommands,
updateVoiceCommands,
exportVoiceCommands, exportVoiceCommands,
} from "../../api/AIStation/VoiceCommand"; } from "../../api/AIStation/VoiceCommand";
import {useRoute} from "vue-router"; import {useRoute} from "vue-router";
import {handleGetAIToken} from "./AItoken"; import {handleGetAIToken} from "./AItoken";
const options = ref([]); const options = ref([]);
const enterpriseId = ref(); const enterpriseId = ref();
const props = { multiple: true, emitPath: false } const props = { multiple: true, emitPath: false }
...@@ -152,25 +148,16 @@ function getSupplys(){ ...@@ -152,25 +148,16 @@ function getSupplys(){
if(element.enterpriseId === "9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()){ if(element.enterpriseId === "9BCA54BC-8F27-4849-8D7D-50C5099E1949".toLowerCase()){
element.serviceCenterList.forEach(center=>{//遍历一级目录下的 element.serviceCenterList.forEach(center=>{//遍历一级目录下的
center.supplyList.forEach(supply => {//拿到一级目录下的然后遍历它二级目录下的 center.supplyList.forEach(supply => {//拿到一级目录下的然后遍历它二级目录下的
console.log('supply:',supply) supply.transferList.forEach(unit => {
supply.stationList.forEach(station => {//拿到 allItems.push({ stationId: unit.stationId, stationName: unit.unitName,supplyId: unit.supplyId,unitId:unit.unitId})
let unitIdList = [] })
supply.transferList.forEach(unit => {
//unit的stationId等于station的stationId的话,就把这个unit的unitId添加到unitIdList中
if(unit.stationId === station.stationId){
unitIdList.push(unit.unitId)
}
})
//将unitIdList集合按逗号分隔成字符串
let unitId = unitIdList.join(',')
allItems.push({ stationId: station.stationId, stationName: station.stationName,supplyId: station.supplyId,unitId: unitId})
});
}); });
}) });
console.log('allItems:',allItems)
}else{ }else{
element.supplyList.forEach(element => { element.supplyList.forEach(supply => {
element.stationList.forEach(station => { supply.transferList.forEach(unit => {
allItems.push({ stationId: station.stationId, stationName: station.stationName,supplyId: station.supplyId}) allItems.push({ stationId: unit.stationId, stationName: unit.unitName,supplyId: unit.supplyId,unitId:unit.unitId})
}) })
}) })
} }
...@@ -308,10 +295,10 @@ const handleSortChange = (data) => { ...@@ -308,10 +295,10 @@ const handleSortChange = (data) => {
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="IP地址:" prop="ipAddress"> <el-form-item label="IP地址:" prop="ipAddress">
<el-input placeholder="" style="width: 180px" v-model="queryParams.ipAddress"/> <el-input placeholder="" style="width: 200px" v-model="queryParams.ipAddress"/>
</el-form-item> </el-form-item>
<el-form-item label="MAC地址:" prop="macAddress"> <el-form-item label="MAC地址:" prop="macAddress">
<el-input placeholder="" style="width: 180px" v-model="queryParams.macAddress"/> <el-input placeholder="" style="width: 200px" v-model="queryParams.macAddress"/>
</el-form-item> </el-form-item>
<el-form-item label="开始时间:" prop="beginTime"> <el-form-item label="开始时间:" prop="beginTime">
<el-config-provider :locale="zhCn"> <el-config-provider :locale="zhCn">
...@@ -319,7 +306,7 @@ const handleSortChange = (data) => { ...@@ -319,7 +306,7 @@ const handleSortChange = (data) => {
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择开始时间" placeholder="选择开始时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.beginTime" v-model="queryParams.beginTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -330,7 +317,7 @@ const handleSortChange = (data) => { ...@@ -330,7 +317,7 @@ const handleSortChange = (data) => {
type="datetime" type="datetime"
value-format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择结束时间" placeholder="选择结束时间"
style="width: 180px" style="width: 200px"
v-model="queryParams.endTime" v-model="queryParams.endTime"
/> />
</el-config-provider> </el-config-provider>
...@@ -347,7 +334,7 @@ const handleSortChange = (data) => { ...@@ -347,7 +334,7 @@ const handleSortChange = (data) => {
:data="VoiceCommandData" :data="VoiceCommandData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(94.7vh - 170px)" height="calc(100vh - 280px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
...@@ -379,11 +366,16 @@ const handleSortChange = (data) => { ...@@ -379,11 +366,16 @@ const handleSortChange = (data) => {
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</div> </div>
<el-footer style="height: 50px;">
<el-config-provider :locale="zhCn">
<el-pagination v-model:current-page="Page.page" v-model:page-size="Page.rows"
:page-sizes="[20, 30, 50, 100, 200, 300, 400]" :small="small" :disabled="disabled"
:background="background" layout="total, sizes, prev, pager, next, jumper" :total="Page.total"
@size-change="handleSizeChange" @current-change="handleCurrentChange" class="pagination"/>
</el-config-provider>
</el-footer>
<div class="dialog-Extinguisher"> <div class="dialog-Extinguisher">
<el-dialog title="查看详情" <el-dialog title="查看详情"
v-model="detailOpen" v-model="detailOpen"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment