|
@@ -17,10 +17,9 @@
|
|
:label="device.deviceName"
|
|
:label="device.deviceName"
|
|
:value="device.deviceCode"
|
|
:value="device.deviceCode"
|
|
></el-option>
|
|
></el-option>
|
|
- <!-- <el-option label="设备1" value="DA00021026"></el-option> -->
|
|
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
- 数据刷新时间:{{nowTime}}
|
|
|
|
|
|
+ 数据刷新时间:{{ nowTime }}
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -48,8 +47,16 @@
|
|
</div>
|
|
</div>
|
|
<radar-chart :getTableData="getData[0]"></radar-chart>
|
|
<radar-chart :getTableData="getData[0]"></radar-chart>
|
|
<div class="totalScore">
|
|
<div class="totalScore">
|
|
- 总评分:{{getData[0].score}}
|
|
|
|
- <el-button type="danger">{{getData[0].score>80?'优秀':getData[0].score>=60?'合格':'不合格'}}</el-button>
|
|
|
|
|
|
+ 总评分:{{ getData[0].score }}
|
|
|
|
+ <el-button type="danger">
|
|
|
|
+ {{
|
|
|
|
+ getData[0].score > 80
|
|
|
|
+ ? '优秀'
|
|
|
|
+ : getData[0].score >= 60
|
|
|
|
+ ? '合格'
|
|
|
|
+ : '不合格'
|
|
|
|
+ }}
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 评分 end -->
|
|
<!-- 评分 end -->
|
|
@@ -62,7 +69,7 @@
|
|
<span>回路统计</span>
|
|
<span>回路统计</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- <pie-chart></pie-chart>
|
|
|
|
|
|
+ <pie-chart :getTableData="getData[0]"></pie-chart>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 回路统计 end -->
|
|
<!-- 回路统计 end -->
|
|
@@ -81,30 +88,38 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
-
|
|
|
|
- <el-table-column label="功率因数" width="" align="center">
|
|
|
|
- <template #default="scope">
|
|
|
|
- <div @click="oneClick(scope)">
|
|
|
|
- <i class="smallSquare" :style="{'background': (scope.row.cosQ ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <el-table-column label="功率因数" width="" align="center">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <div @click="oneClick('cos')">
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.cosQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.cos }}
|
|
{{ scope.row.cos }}
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
-
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- <el-table-column label="不平衡度" >
|
|
|
|
|
|
+ <el-table-column label="不平衡度">
|
|
<el-table-column label="电流" width="" align="center">
|
|
<el-table-column label="电流" width="" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <div @click="oneClick(scope)">
|
|
|
|
- <i class="smallSquare" :style="{'background': (scope.row.elBalunQ ? 'green':'red')}"></i>
|
|
|
|
- {{ scope.row.elBalun }}
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div @click="oneClick(scope)">
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{
|
|
|
|
+ background: scope.row.elBalunQ ? 'green' : 'red',
|
|
|
|
+ }"
|
|
|
|
+ ></i>
|
|
|
|
+ {{ scope.row.elBalun }}
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="电压" align="center">
|
|
<el-table-column label="电压" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.vtBalunQ ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.vtBalunQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.vtBalun }}
|
|
{{ scope.row.vtBalun }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -113,39 +128,57 @@
|
|
<el-table-column label="电压">
|
|
<el-table-column label="电压">
|
|
<el-table-column prop="name" label="A相" width="" align="center">
|
|
<el-table-column prop="name" label="A相" width="" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.uaQ ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.uaQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.ua }}
|
|
{{ scope.row.ua }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="city" label="B相" align="center">
|
|
<el-table-column prop="city" label="B相" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.ubQ ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.ubQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.ub }}
|
|
{{ scope.row.ub }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="city" label="C相" align="center">
|
|
<el-table-column prop="city" label="C相" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.ucQ ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.ucQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.uc }}
|
|
{{ scope.row.uc }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="电流负载率" >
|
|
|
|
|
|
+ <el-table-column label="电流负载率">
|
|
<el-table-column prop="name" label="A相" width="" align="center">
|
|
<el-table-column prop="name" label="A相" width="" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.iaLoadQ? 'green':'red')}"></i>
|
|
|
|
- {{ scope.row.iaLoad }}
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.iaLoadQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
|
|
+ {{ scope.row.iaLoad }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="city" label="B相" align="center">
|
|
|
|
|
|
+ <el-table-column prop="city" label="B相" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.ibLoadQ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.ibLoadQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.ibLoad }}
|
|
{{ scope.row.ibLoad }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="city" label="C相" align="center">
|
|
<el-table-column prop="city" label="C相" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <i class="smallSquare" :style="{'background': (scope.row.icLoadQ? 'green':'red')}"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="smallSquare"
|
|
|
|
+ :style="{ background: scope.row.icLoadQ ? 'green' : 'red' }"
|
|
|
|
+ ></i>
|
|
{{ scope.row.icLoad }}
|
|
{{ scope.row.icLoad }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -182,7 +215,7 @@ export default defineComponent({
|
|
setup() {
|
|
setup() {
|
|
const store = useStore()
|
|
const store = useStore()
|
|
const num = ref(1)
|
|
const num = ref(1)
|
|
- const nowTime=ref(parseTime(new Date()))
|
|
|
|
|
|
+ const nowTime = ref(parseTime(new Date()))
|
|
const value4 = ref('')
|
|
const value4 = ref('')
|
|
const getData = ref([
|
|
const getData = ref([
|
|
{
|
|
{
|
|
@@ -210,7 +243,7 @@ export default defineComponent({
|
|
function deviceSelect() {
|
|
function deviceSelect() {
|
|
api.deviceListOne({ siteId: store.state.siteId }).then((requset) => {
|
|
api.deviceListOne({ siteId: store.state.siteId }).then((requset) => {
|
|
if (requset.status === 'SUCCESS') {
|
|
if (requset.status === 'SUCCESS') {
|
|
- deviceList.value = requset.data;
|
|
|
|
|
|
+ deviceList.value = requset.data
|
|
} else {
|
|
} else {
|
|
ElMessage.error(requset.msg)
|
|
ElMessage.error(requset.msg)
|
|
}
|
|
}
|
|
@@ -228,12 +261,11 @@ export default defineComponent({
|
|
ElMessage.error(requset.msg)
|
|
ElMessage.error(requset.msg)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- nowTime.value=parseTime(new Date())
|
|
|
|
-
|
|
|
|
|
|
+ nowTime.value = parseTime(new Date())
|
|
}
|
|
}
|
|
- function oneClick(params){
|
|
|
|
- console.log(params)
|
|
|
|
- console.log(params.column.label)
|
|
|
|
|
|
+ function oneClick(params) {
|
|
|
|
+ console.log(params)
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|