|
@@ -11,43 +11,41 @@
|
|
|
</div>
|
|
|
<!-- 数据表格 -->
|
|
|
<div class="table-area">
|
|
|
- <el-table :data="tableData" style="width: 100%" height="calc(100% - 32px)" v-loading="loading" :header-cell-style="headerStyle">
|
|
|
- <el-table-column prop='' label='' show-overflow-tooltip width="30" header-align='center'>
|
|
|
+ <el-table :data="tableData" style="width: 100%" height="calc(100% - 32px)" v-loading="loading" :header-cell-style="headerStyle" >
|
|
|
+ <el-table-column prop='' label='' show-overflow-tooltip width="35" header-align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
<el-tooltip v-if="scope.row.DataQuality!=0" content="已断数,请检查" effect="dark" placement="top">
|
|
|
- <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;font-size:18px;"></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<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'>
|
|
|
+ <el-table-column prop='Data.Data' label='查看分精度' show-overflow-tooltip min-width="90" header-align='center' align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="line-height:29px;">{{ scope.row.Data? scope.row.Data.Data : '' }}</span>
|
|
|
- <el-button style="padding:7px 15px;float:right;" @click="handleDrawer(scope.row, 0)"><i class="el-icon-s-data"></i></el-button>
|
|
|
+ <el-button style="padding:7px 15px;" @click="handleDrawer(scope.row, 0)"><i class="el-icon-s-data" style="font-size:15px;"></i></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop='Data.Time' label='获取时间' show-overflow-tooltip min-width="130" header-align='center'>
|
|
|
+ <el-table-column prop='Data.Time' label='对应值 - 获取时间' show-overflow-tooltip min-width="230" header-align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
+ <span style="line-height:29px;">{{ scope.row.Data? scope.row.Data.Data : '' }} </span>
|
|
|
<span style="line-height:29px;">{{ scope.row.Data? scope.row.Data.Time: '' }}</span>
|
|
|
- <el-button style="padding:7px 15px;float:right;" @click="refreshThisRow(scope.row)"><i class="el-icon-refresh"></i></el-button>
|
|
|
+ <el-button class="dialog-btn" style="float:right;" @click="refreshThisRow(scope.row)"><i class="el-icon-refresh"></i></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='RelatedPoint' label='涉及子系统点位(数据来源)' show-overflow-tooltip min-width="150" align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
<span style="display:inline-block;width:16px;line-height:29px;">{{ scope.row.RelatedPoint }}</span>
|
|
|
- <p style="width:55.33px;display:inline-block;">
|
|
|
- <el-button v-if="scope.row.RelatedPoint" style="padding:7px 15px;margin-left:10px;" @click="handleDrawer(scope.row, 1)"><i
|
|
|
- class="el-icon-coin"></i></el-button>
|
|
|
- </p>
|
|
|
+ <span style="width:55.33px;display:inline-block;padding-left:10px;">
|
|
|
+ <el-button class="dialog-btn" v-if="scope.row.RelatedPoint" @click="handleDrawer(scope.row, 1)"><i class="el-icon-coin"></i></el-button>
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='RelatedInstance' label='涉及的对象实例(应用到)' show-overflow-tooltip min-width="150" align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
<span style="display:inline-block;width:16px;line-height:29px;">{{ scope.row.RelatedInstance }}</span>
|
|
|
- <p style="width:55.33px;display:inline-block;">
|
|
|
- <el-button v-if="scope.row.RelatedInstance" style="padding:7px 15px;margin-left:10px;" @click="handleDrawer(scope.row, 2)"><i
|
|
|
- class="el-icon-coin"></i></el-button>
|
|
|
- </p>
|
|
|
+ <span style="width:55.33px;display:inline-block;padding-left:10px;">
|
|
|
+ <el-button class="dialog-btn" v-if="scope.row.RelatedInstance" @click="handleDrawer(scope.row, 2)"><i class="el-icon-coin"></i></el-button>
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -208,9 +206,18 @@ export default {
|
|
|
cursor: pointer;
|
|
|
float: right;
|
|
|
}
|
|
|
+.dialog-btn{
|
|
|
+ display:none;
|
|
|
+ height:29px;
|
|
|
+}
|
|
|
/deep/ .el-drawer__body {
|
|
|
height: 90%;
|
|
|
}
|
|
|
+/deep/ .el-table__body-wrapper tr:hover{
|
|
|
+ .dialog-btn{
|
|
|
+ display:inline;
|
|
|
+ }
|
|
|
+}
|
|
|
/deep/ .el-dialog__body {
|
|
|
padding-bottom:20px;
|
|
|
}
|