|
@@ -14,11 +14,19 @@
|
|
|
</div>
|
|
|
<div class="calibrationCertificate2">
|
|
|
<el-table :data="tableData" border size="small">
|
|
|
- <el-table-column label="布局编号" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.T_layout_no }}</span>
|
|
|
+
|
|
|
+ <el-table-column prop="T_layout_no" width="180">
|
|
|
+ <template #header>
|
|
|
+ <div style="display: flex;align-items: center;cursor: pointer;" @click="filtFun('layout')">
|
|
|
+ 布局编号
|
|
|
+ <div style="font-size: 14px;display: flex;flex-direction: column;">
|
|
|
+ <i class="el-icon-caret-top" style="width: 1em; height: 1em;margin-bottom: -4px;" :style="{color:pages.T_layout_no_sort==1?'#409eff':'#a8abb2'}"></i>
|
|
|
+ <i class="el-icon-caret-bottom" style="width: 1em; height: 1em;margin-top: -4px;" :style="{color:pages.T_layout_no_sort==2?'#409eff':'#a8abb2'}"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
<el-table-column label="证书编号" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.T_sn }}</span>
|
|
@@ -206,6 +214,7 @@
|
|
|
page_z: 10,
|
|
|
T_sn: '',
|
|
|
T_layout_no:'',
|
|
|
+ T_layout_no_sort:0,
|
|
|
T_release_time_sort:0,
|
|
|
T_failure_time_sort:0
|
|
|
},
|
|
@@ -238,8 +247,17 @@
|
|
|
//筛选
|
|
|
filtFun(e){
|
|
|
let _this = this
|
|
|
- if(e=='release'){//发布时间
|
|
|
+ if(e=='layout'){//布局编号
|
|
|
+ _this.pages.T_failure_time_sort = 0
|
|
|
+ _this.pages.T_release_time_sort = 0
|
|
|
+ if(_this.pages.T_layout_no_sort<2){
|
|
|
+ _this.pages.T_layout_no_sort+=1
|
|
|
+ }else{
|
|
|
+ _this.pages.T_layout_no_sort=0
|
|
|
+ }
|
|
|
+ }else if(e=='release'){//发布时间
|
|
|
_this.pages.T_failure_time_sort = 0
|
|
|
+ _this.pages.T_layout_no_sort = 0
|
|
|
if(_this.pages.T_release_time_sort<2){
|
|
|
_this.pages.T_release_time_sort+=1
|
|
|
}else{
|
|
@@ -247,6 +265,8 @@
|
|
|
}
|
|
|
}else{
|
|
|
_this.pages.T_release_time_sort = 0
|
|
|
+ _this.pages.T_layout_no_sort = 0
|
|
|
+
|
|
|
if(_this.pages.T_failure_time_sort<2){
|
|
|
_this.pages.T_failure_time_sort+=1
|
|
|
}else{
|