|
@@ -1,4 +1,4 @@
|
|
|
-<template>
|
|
|
+ <template>
|
|
|
<el-dialog
|
|
|
title="更新失败指标详情"
|
|
|
:visible.sync="show"
|
|
@@ -40,6 +40,9 @@
|
|
|
prop="Num"
|
|
|
align="center"
|
|
|
>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color:#409EFF;cursor: pointer;" @click="handleShowFailDetail(scope.row)">{{scope.row.Num}}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="原因"
|
|
@@ -71,6 +74,51 @@
|
|
|
<div>5、打开文件目录下的一个Excel,选中“钢联数据2.0”插件,点击“更新所有页”按钮后,等待十几秒,查看Excel左下角是否提示额度超限。</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 失败详情 -->
|
|
|
+ <el-dialog
|
|
|
+ title="指标详情"
|
|
|
+ :visible.sync="showEDBList"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :center="true"
|
|
|
+ v-dialogDrag
|
|
|
+ :append-to-body="true"
|
|
|
+ width="80vw"
|
|
|
+ >
|
|
|
+ <div class="gl-refresh-fail-edb-list-wrap">
|
|
|
+ <p class="info">
|
|
|
+ <span>终端名称:{{info.Name}} </span>
|
|
|
+ <span>文件夹路径:{{info.DirPath}} </span>
|
|
|
+ <span>频度:{{activeFrequency}} </span>
|
|
|
+ <span>原因:{{activeReason}} </span>
|
|
|
+ </p>
|
|
|
+ <el-table
|
|
|
+ :data="edbList"
|
|
|
+ border
|
|
|
+ height="700"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ v-for="col in edbListTableCol"
|
|
|
+ :key="col.key"
|
|
|
+ :label="col.label"
|
|
|
+ :prop="col.key"
|
|
|
+ align="center"
|
|
|
+ />
|
|
|
+ <div slot="empty">
|
|
|
+ <tableNoData text="暂无数据"/>
|
|
|
+ </div>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination
|
|
|
+ layout="total,prev,pager,next,jumper"
|
|
|
+ background
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total="total"
|
|
|
+ style="float: right;margin-top:20px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</el-dialog>
|
|
|
|
|
|
</template>
|
|
@@ -106,7 +154,53 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
info:{},
|
|
|
- showBZ:false
|
|
|
+ showBZ:false,
|
|
|
+
|
|
|
+ showEDBList:false,
|
|
|
+ edbList:[],
|
|
|
+ edbListTableCol:[
|
|
|
+ {
|
|
|
+ label:'指标全称',
|
|
|
+ key:'EdbName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'指标编码',
|
|
|
+ key:'EdbCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'起始时间',
|
|
|
+ key:'StartDate'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'最新日期',
|
|
|
+ key:'LatestDate'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'最新值',
|
|
|
+ key:'LatestValue'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'终端编码',
|
|
|
+ key:'TerminalCode'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'创建人',
|
|
|
+ key:'SysUserRealName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'频度',
|
|
|
+ key:'Frequency'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label:'单位',
|
|
|
+ key:'Unit'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ activeFrequency:'',
|
|
|
+ activeReason:'',
|
|
|
+ page:1,
|
|
|
+ pageSize:10,
|
|
|
+ total:0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -123,7 +217,37 @@ export default {
|
|
|
this.info=res.Data
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ handleShowFailDetail(e){
|
|
|
+ this.page=1
|
|
|
+ this.edbList=[]
|
|
|
+ this.activeFrequency=e.Frequency
|
|
|
+ this.activeReason=e.SourceUpdateFailedReason
|
|
|
+ this.getFailDetailList()
|
|
|
+ this.showEDBList=true
|
|
|
+ },
|
|
|
+
|
|
|
+ async getFailDetailList(){
|
|
|
+ const res=await apiDataSource.updateFailDetailList({
|
|
|
+ CreateTime:this.date,
|
|
|
+ TerminalCode:this.TerminalCode,
|
|
|
+ Frequency:this.activeFrequency,
|
|
|
+ SourceUpdateFailedReason:this.activeReason,
|
|
|
+ CurrentIndex:this.page,
|
|
|
+ PageSize:this.pageSize,
|
|
|
+ })
|
|
|
+ if(res.Ret===200){
|
|
|
+ const arr=res.Data.List||[]
|
|
|
+ this.edbList=arr
|
|
|
+ this.total=res.Data.Paging.Totals
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ handleCurrentChange(e){
|
|
|
+ this.page=e
|
|
|
+ this.getFailDetailList()
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -133,5 +257,15 @@ export default {
|
|
|
color: #333;
|
|
|
padding-bottom: 30px;
|
|
|
}
|
|
|
-
|
|
|
+.gl-refresh-fail-edb-list-wrap{
|
|
|
+ padding-bottom: 80px;
|
|
|
+ .info{
|
|
|
+ color: #000;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ span{
|
|
|
+ display: inline-block;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|