|
@@ -78,56 +78,60 @@
|
|
|
<div class="link-box-content">
|
|
|
<!-- 指标 -->
|
|
|
<div class="link-content-dataIndex" v-if="addLinkSearchParams.linkType==1 && databaseTableData && databaseTableData.length>0">
|
|
|
- <el-table :data="databaseTableData" border style="box-shadow: rgba(155, 170, 219, 0.2) 0px 3px 6px;">
|
|
|
- <el-table-column :label="$t('Table.edb_id')" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.EdbCode }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.edb_name')" align="center" width="200">
|
|
|
- <template slot-scope="scope">{{ scope.row.EdbName }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.frequency')" align="center" width="50">
|
|
|
- <template slot-scope="scope">{{ scope.row.Frequency }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.unit')" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.Unit }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.start_time')" align="center" width="100">
|
|
|
- <template slot-scope="scope">{{ scope.row.StartDate }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.update_time')" align="center" width="160">
|
|
|
- <template slot-scope="scope">{{ scope.row.ModifyTime }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.source')" align="center">
|
|
|
- <template slot-scope="scope">{{ scope.row.SourceName }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('Table.column_operations')" align="center" width="50">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span class="delete-button">{{$t('Table.delete_btn')}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <ul
|
|
|
- class="value-ul"
|
|
|
- ref="valueUl"
|
|
|
- @scroll="databaseScrollHandle"
|
|
|
- v-show="databaseList.length">
|
|
|
- <li
|
|
|
- class="value-item"
|
|
|
- v-for="item in databaseList"
|
|
|
- :key="item.EdbDataId"
|
|
|
- >
|
|
|
- <span class="value-label">
|
|
|
- <span style="position: relative;">
|
|
|
- <i class="new-tag" v-if="databaseTableData[0].LatestDate===item.DataTime"></i>
|
|
|
- {{item.DataTime}}
|
|
|
+ <template v-if="databaseTableData[0].HaveOperaAuth">
|
|
|
+ <el-table :data="databaseTableData" border style="box-shadow: rgba(155, 170, 219, 0.2) 0px 3px 6px;">
|
|
|
+ <el-table-column :label="$t('Table.edb_id')" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.EdbCode }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.edb_name')" align="center" width="200">
|
|
|
+ <template slot-scope="scope">{{ scope.row.EdbName }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.frequency')" align="center" width="50">
|
|
|
+ <template slot-scope="scope">{{ scope.row.Frequency }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.unit')" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.Unit }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.start_time')" align="center" width="100">
|
|
|
+ <template slot-scope="scope">{{ scope.row.StartDate }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.update_time')" align="center" width="160">
|
|
|
+ <template slot-scope="scope">{{ scope.row.ModifyTime }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.source')" align="center">
|
|
|
+ <template slot-scope="scope">{{ scope.row.SourceName }}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('Table.column_operations')" align="center" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span class="delete-button">{{$t('Table.delete_btn')}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <ul
|
|
|
+ class="value-ul"
|
|
|
+ ref="valueUl"
|
|
|
+ @scroll="databaseScrollHandle"
|
|
|
+ v-show="databaseList.length">
|
|
|
+ <li
|
|
|
+ class="value-item"
|
|
|
+ v-for="item in databaseList"
|
|
|
+ :key="item.EdbDataId"
|
|
|
+ >
|
|
|
+ <span class="value-label">
|
|
|
+ <span style="position: relative;">
|
|
|
+ <i class="new-tag" v-if="databaseTableData[0].LatestDate===item.DataTime"></i>
|
|
|
+ {{item.DataTime}}
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- </span>
|
|
|
- <span :class="['value-label',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]" style="min-width:200px;text-align:center;">
|
|
|
- <span :class="['value-style',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]">{{item.Value}}</span>
|
|
|
- </span>
|
|
|
- </li>
|
|
|
- <li class="nodata value-item" v-if="!databaseList.length">{{$t('Table.prompt_slogan')}}</li>
|
|
|
- </ul>
|
|
|
+ <span :class="['value-label',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]" style="min-width:200px;text-align:center;">
|
|
|
+ <span :class="['value-style',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]">{{item.Value}}</span>
|
|
|
+ </span>
|
|
|
+ </li>
|
|
|
+ <li class="nodata value-item" v-if="!databaseList.length">{{$t('Table.prompt_slogan')}}</li>
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <noDataAuth v-if="databaseTableData[0].HaveOperaAuth===false" :text="$t('MsgPrompt.no_edb_auth')"/>
|
|
|
</div>
|
|
|
<div class="link-content-chartIndex" v-else-if="addLinkSearchParams.linkType==2 && this.chartInfo && this.chartInfo.ChartInfoId">
|
|
|
<template v-if="chartInfo.HaveOperaAuth">
|