|
@@ -11,36 +11,36 @@
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
<div class="table-area">
|
|
<div class="table-area">
|
|
<el-table :data="tableData" style="width: 100%" height="calc(100% - 40px)" v-loading="loading" :header-cell-style="headerStyle">
|
|
<el-table :data="tableData" style="width: 100%" height="calc(100% - 40px)" v-loading="loading" :header-cell-style="headerStyle">
|
|
- <el-table-column prop='' label='' show-overflow-tooltip width="30">
|
|
|
|
|
|
+ <el-table-column prop='' label='' show-overflow-tooltip width="30" header-align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tooltip v-if="scope.row.DataQuality!=0" content="已断数,请检查" placement="bottom" effect="light">
|
|
<el-tooltip v-if="scope.row.DataQuality!=0" content="已断数,请检查" placement="bottom" effect="light">
|
|
<i class="el-icon-warning-outline" style="float:left;margin: 0 5px;color: red;"></i>
|
|
<i class="el-icon-warning-outline" style="float:left;margin: 0 5px;color: red;"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='MeterFunc' label='表号-功能号' show-overflow-tooltip min-width="100"></el-table-column>
|
|
|
|
- <el-table-column prop='Data.Data' label='对应值(单位)' show-overflow-tooltip min-width="90">
|
|
|
|
|
|
+ <el-table-column prop='MeterFunc' label='表号-功能号' show-overflow-tooltip min-width="100" header-align='center'></el-table-column>
|
|
|
|
+ <el-table-column prop='Data.Data' label='对应值(单位)' show-overflow-tooltip min-width="90" header-align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.Data? scope.row.Data.Data : '' }}</span>
|
|
<span>{{ scope.row.Data? scope.row.Data.Data : '' }}</span>
|
|
<i @click="handleDrawer(scope.row, 0)" class="el-icon-s-data"></i>
|
|
<i @click="handleDrawer(scope.row, 0)" class="el-icon-s-data"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='Data.Time' label='获取时间' show-overflow-tooltip min-width="130">
|
|
|
|
|
|
+ <el-table-column prop='Data.Time' label='获取时间' show-overflow-tooltip min-width="130" header-align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.Data? scope.row.Data.Time: '' }}</span>
|
|
<span>{{ scope.row.Data? scope.row.Data.Time: '' }}</span>
|
|
<i class="el-icon-refresh" @click="refreshThisRow(scope.row)"></i>
|
|
<i class="el-icon-refresh" @click="refreshThisRow(scope.row)"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='RelatedPoint' label='涉及子系统点位(数据来源)' show-overflow-tooltip min-width="150">
|
|
|
|
|
|
+ <el-table-column prop='RelatedPoint' label='涉及子系统点位(数据来源)' show-overflow-tooltip min-width="150" align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ scope.row.RelatedPoint }}</span>
|
|
|
|
- <i @click="handleDrawer(scope.row, 1)" class="el-icon-coin"></i>
|
|
|
|
|
|
+ <span style="display:inline-block;width:16px;">{{ scope.row.RelatedPoint }}</span>
|
|
|
|
+ <i @click="handleDrawer(scope.row, 1)" class="el-icon-coin" style="float:none;margin-left:10px;"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop='RelatedInstance' label='涉及的对象实例(应用到)' show-overflow-tooltip min-width="150">
|
|
|
|
|
|
+ <el-table-column prop='RelatedInstance' label='涉及的对象实例(应用到)' show-overflow-tooltip min-width="150" align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{ scope.row.RelatedInstance }}</span>
|
|
|
|
- <i @click="handleDrawer(scope.row, 2)" class="el-icon-coin"></i>
|
|
|
|
|
|
+ <span style="display:inline-block;width:16px;">{{ scope.row.RelatedInstance }}</span>
|
|
|
|
+ <i @click="handleDrawer(scope.row, 2)" class="el-icon-coin" style="float:none;margin-left:10px;"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -102,9 +102,9 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
//抽屉处理
|
|
//抽屉处理
|
|
handleDrawer(row, index) {
|
|
handleDrawer(row, index) {
|
|
- if (index == 2) {
|
|
|
|
|
|
+ if (index == 2 || index == 1) {
|
|
//实例数量大于0才能打开
|
|
//实例数量大于0才能打开
|
|
- if (row.RelatedInstance > 0) {
|
|
|
|
|
|
+ if ((row.RelatedInstance > 0 && index == 2) || (row.RelatedPoint > 0 && index == 1)) {
|
|
this.drawers[index].value = row.Data ? row.Data.Data : '';
|
|
this.drawers[index].value = row.Data ? row.Data.Data : '';
|
|
this.drawers[index].objId = row.MeterFunc;
|
|
this.drawers[index].objId = row.MeterFunc;
|
|
this.drawers[index].drawer = true;
|
|
this.drawers[index].drawer = true;
|