完成 谐波监测 稳态统计报表 联调 全局对话框添加可移动属性

This commit is contained in:
GGJ
2024-04-01 11:16:28 +08:00
parent fd71466b22
commit fe60893e89
58 changed files with 984 additions and 1209 deletions

View File

@@ -19,6 +19,7 @@
</TableHeader>
<Table ref="tableRef"></Table>
<el-dialog
draggable
:title="dialogTitle"
v-model="dialogFormVisible"
:close-on-click-modal="false"
@@ -200,7 +201,7 @@ const tableStore = new TableStore({
],
beforeSearchFun: () => {
for (let key in tableStore.table.params) {
if (tableStore.table.params[key] === '' && key !== 'nodeGrade'&& key !== 'searchState') {
if (tableStore.table.params[key] === '' && key !== 'nodeGrade' && key !== 'searchState') {
delete tableStore.table.params[key]
}
}

View File

@@ -43,7 +43,11 @@
</el-select>
</el-form-item>
<el-form-item label="筛选">
<el-input v-model="tableStore.table.params.filterName" @keyup="searchEvent" placeholder="输入关键字筛选" />
<el-input
v-model="tableStore.table.params.filterName"
@keyup="searchEvent"
placeholder="输入关键字筛选"
/>
</el-form-item>
</template>
<template #operation>
@@ -70,48 +74,23 @@
<vxe-column field="versionDate" title="版本日期"></vxe-column>
<vxe-column field="runFlag" title="终端状态">
<template #default="{ row }">
<el-tag
v-if="row.runFlag === 0"
style="color: #fff; background: #0099cc"
size="small"
>
<el-tag v-if="row.runFlag === 0" style="color: #fff; background: #0099cc" size="small">
投运
</el-tag>
<el-tag
v-if="row.runFlag === 1"
style="color: #fff; background: #996600"
size="small"
>
<el-tag v-if="row.runFlag === 1" style="color: #fff; background: #996600" size="small">
热备用
</el-tag>
<el-tag
v-if="row.runFlag === 2"
style="color: #fff; background: #cc0000"
size="small"
>
<el-tag v-if="row.runFlag === 2" style="color: #fff; background: #cc0000" size="small">
停运
</el-tag>
</template>
</vxe-column>
<vxe-column field="comFlag" title="通讯状态">
<template #default="{ row }">
<el-tag
v-if="row.comFlag === 0"
style="color: #fff; background: #cc0000"
size="small"
>
<el-tag v-if="row.comFlag === 0" style="color: #fff; background: #cc0000" size="small">
中断
</el-tag>
<el-tag
v-if="row.comFlag === 1"
style="color: #fff; background: #2e8b57"
size="small"
>
<el-tag v-if="row.comFlag === 1" style="color: #fff; background: #2e8b57" size="small">
正常
</el-tag>
</template>
@@ -125,13 +104,10 @@
<vxe-column field="updateTime" title="最新升级时间"></vxe-column>
<vxe-column title="操作" min-width="100">
<template #default="{ row }">
<el-button v-if="row.level == 4" size="small" link @click="updateprogram(row)">
升级
</el-button>
<el-button v-if="row.level == 4" size="small" link @click="updateprogram(row)">升级</el-button>
<el-button
v-if="row.level == 4"
:disabled="row.state == 1 ? true : false"
size="small"
link
@click="queryview(row)"
@@ -143,6 +119,7 @@
</vxe-table>
</div>
<el-dialog
draggable
v-model="dialogVisible"
:close-on-click-modal="false"
:title="protitle + '#终端升级日志查看'"
@@ -154,32 +131,20 @@
<vxe-column field="versionId" align="center" title="版本序号"></vxe-column>
<vxe-column field="flag" align="center" title="版本状态" width="100">
<template #default="{ row }">
<el-tag v-if="row.flag == true" style="color: #fff; background: #fc0">
前期版本
</el-tag>
<el-tag v-if="row.flag == false" style="color: #fff; background: #0c0">
当前版本
</el-tag>
<el-tag v-if="row.flag == true" style="color: #fff; background: #fc0">前期版本</el-tag>
<el-tag v-if="row.flag == false" style="color: #fff; background: #0c0">当前版本</el-tag>
</template>
</vxe-column>
<vxe-column field="result" align="center" title="升级结果" width="100">
<template #default="{ row }">
<el-tag v-if="row.result == false" style="color: #fff; background: #f30">
升级失败
</el-tag>
<el-tag v-if="row.result == true" style="color: #fff; background: #093">
升级成功
</el-tag>
<el-tag v-if="row.result == false" style="color: #fff; background: #f30">升级失败</el-tag>
<el-tag v-if="row.result == true" style="color: #fff; background: #093">升级成功</el-tag>
</template>
</vxe-column>
<vxe-column field="state" align="center" title="状态" width="100">
<template #default="{ row }">
<el-tag v-if="row.state == false" style="color: #fff; background: #f30">
删除
</el-tag>
<el-tag v-if="row.state == true" style="color: #fff; background: #093">
正常
</el-tag>
<el-tag v-if="row.state == false" style="color: #fff; background: #f30">删除</el-tag>
<el-tag v-if="row.state == true" style="color: #fff; background: #093">正常</el-tag>
</template>
</vxe-column>
<vxe-column field="createBy" align="center" title="创建用户"></vxe-column>
@@ -191,6 +156,7 @@
</el-dialog>
<!-- 升级 -->
<el-dialog
draggable
v-model="prodialogVisible"
:close-on-click-modal="false"
:title="protitle + '#终端程序升级'"
@@ -283,11 +249,11 @@ const tableStore = new TableStore({
}, 0)
}
})
tableStore.table.params.teriminal=''
tableStore.table.params.state=''
tableStore.table.params.program=''
tableStore.table.params.searchEvent=''
tableStore.table.params.filterName=''
tableStore.table.params.teriminal = ''
tableStore.table.params.state = ''
tableStore.table.params.program = ''
tableStore.table.params.searchEvent = ''
tableStore.table.params.filterName = ''
provide('tableStore', tableStore)
const tree2List = (list: any) => {
//存储结果的数组

View File

@@ -34,7 +34,11 @@
</el-form-item>
<el-form-item label="筛选">
<el-input v-model="tableStore.table.params.filterName" @keyup="searchEvent" placeholder="输入关键字筛选" />
<el-input
v-model="tableStore.table.params.filterName"
@keyup="searchEvent"
placeholder="输入关键字筛选"
/>
</el-form-item>
</template>
<template #operation>
@@ -94,48 +98,23 @@
</vxe-column>
<vxe-column field="runFlag" title="终端状态">
<template #default="{ row }">
<el-tag
v-if="row.runFlag === 0"
style="color: #fff; background: #0099cc"
size="small"
>
<el-tag v-if="row.runFlag === 0" style="color: #fff; background: #0099cc" size="small">
投运
</el-tag>
<el-tag
v-if="row.runFlag === 1"
style="color: #fff; background: #996600"
size="small"
>
<el-tag v-if="row.runFlag === 1" style="color: #fff; background: #996600" size="small">
热备用
</el-tag>
<el-tag
v-if="row.runFlag === 2"
style="color: #fff; background: #cc0000"
size="small"
>
<el-tag v-if="row.runFlag === 2" style="color: #fff; background: #cc0000" size="small">
停运
</el-tag>
</template>
</vxe-column>
<vxe-column field="comFlag" title="通讯状态">
<template #default="{ row }">
<el-tag
v-if="row.comFlag === 0"
style="color: #fff; background: #cc0000"
size="small"
>
<el-tag v-if="row.comFlag === 0" style="color: #fff; background: #cc0000" size="small">
中断
</el-tag>
<el-tag
v-if="row.comFlag === 1"
style="color: #fff; background: #2e8b57"
size="small"
>
<el-tag v-if="row.comFlag === 1" style="color: #fff; background: #2e8b57" size="small">
正常
</el-tag>
</template>
@@ -170,6 +149,7 @@
</div>
<!-- 终端使用详情 -->
<el-dialog
draggable
v-model="dialogVisiblexq"
v-if="dialogVisiblexq"
title="终端使用详情"
@@ -263,10 +243,10 @@ const tableStore = new TableStore({
}, 0)
}
})
tableStore.table.params.devType=''
tableStore.table.params.runFlag=''
tableStore.table.params.comFlag=''
tableStore.table.params.filterName=''
tableStore.table.params.devType = ''
tableStore.table.params.runFlag = ''
tableStore.table.params.comFlag = ''
tableStore.table.params.filterName = ''
// 处理大数据卡顿
const tree2List = (list: any) => {
//存储结果的数组