|
@@ -2,12 +2,12 @@
|
|
<div class="height_100">
|
|
<div class="height_100">
|
|
<div class="height_100" v-DivHeight="getDivHeight">
|
|
<div class="height_100" v-DivHeight="getDivHeight">
|
|
<el-container>
|
|
<el-container>
|
|
- <el-aside width="95px">
|
|
|
|
|
|
+ <!-- <el-aside width="95px">
|
|
<el-tabs v-model="tab" tab-position="left" @tab-click="tabClick">
|
|
<el-tabs v-model="tab" tab-position="left" @tab-click="tabClick">
|
|
<el-tab-pane label="总表" name="1"></el-tab-pane>
|
|
<el-tab-pane label="总表" name="1"></el-tab-pane>
|
|
<el-tab-pane label="官方无效" name='2'></el-tab-pane>
|
|
<el-tab-pane label="官方无效" name='2'></el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
- </el-aside>
|
|
|
|
|
|
+ </el-aside> -->
|
|
<el-main style="padding:0 0 0 10px !important">
|
|
<el-main style="padding:0 0 0 10px !important">
|
|
<el-table :data="tableData" border style="width: 100%" header-row-class-name="custom-table-header"
|
|
<el-table :data="tableData" border style="width: 100%" header-row-class-name="custom-table-header"
|
|
@sort-change="sortChange" v-if="showTable" :height="tableHeight" v-el-table-infinite-scroll="getList" :infinite-scroll-distance="10"
|
|
@sort-change="sortChange" v-if="showTable" :height="tableHeight" v-el-table-infinite-scroll="getList" :infinite-scroll-distance="10"
|
|
@@ -91,11 +91,12 @@ export default {
|
|
},
|
|
},
|
|
row: null,
|
|
row: null,
|
|
//操作信息
|
|
//操作信息
|
|
- handleMessage:''
|
|
|
|
|
|
+ handleMessage:'',
|
|
|
|
+ fixedSearch:{}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- tab:'1',
|
|
|
|
|
|
+ // tab:'1',
|
|
// 报告类型
|
|
// 报告类型
|
|
reportTypeName: {
|
|
reportTypeName: {
|
|
'0':'无效分析报告',
|
|
'0':'无效分析报告',
|
|
@@ -155,10 +156,10 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//左侧标签点击
|
|
//左侧标签点击
|
|
- tabClick(tab, event){
|
|
|
|
- var name = tab.name
|
|
|
|
- this.$emit('tabChange',name)
|
|
|
|
- },
|
|
|
|
|
|
+ // tabClick(tab, event){
|
|
|
|
+ // var name = tab.name
|
|
|
|
+ // this.$emit('tabChange',name)
|
|
|
|
+ // },
|
|
|
|
|
|
//更新数据
|
|
//更新数据
|
|
updateData() {
|
|
updateData() {
|
|
@@ -190,6 +191,16 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getList2(params,type){
|
|
getList2(params,type){
|
|
|
|
+ params.ifInvalidReport = 0
|
|
|
|
+ if(this.fixedSearch.reportType){
|
|
|
|
+ params.ifInvalidReport = 1
|
|
|
|
+ if(params.searchQuery){
|
|
|
|
+ params.searchQuery = params.searchQuery + ' and reportType=(' + this.fixedSearch.reportType.join(' OR ') + ')'
|
|
|
|
+ }else{
|
|
|
|
+ params.searchQuery ='reportType=(' + this.fixedSearch.reportType.join(' OR ') + ')'
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
this.$api.queryReportProject(params).then(res => {
|
|
this.$api.queryReportProject(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
if(type == 1){
|
|
if(type == 1){
|
|
@@ -230,6 +241,16 @@ export default {
|
|
groupField: this.row.groupBy,
|
|
groupField: this.row.groupBy,
|
|
groupFieldValue: this.row.row.value,
|
|
groupFieldValue: this.row.row.value,
|
|
}
|
|
}
|
|
|
|
+ params.ifInvalidReport = 0
|
|
|
|
+ if(this.fixedSearch.reportType){
|
|
|
|
+ params.ifInvalidReport = 1
|
|
|
|
+ if(params.searchQuery){
|
|
|
|
+ params.searchQuery = params.searchQuery + ' and reportType=(' + this.fixedSearch.reportType.join(' OR ') + ')'
|
|
|
|
+ }else{
|
|
|
|
+ params.searchQuery ='reportType=(' + this.fixedSearch.reportType.join(' OR ') + ')'
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
this.isMore = false;
|
|
this.isMore = false;
|
|
this.isFlag = true;
|
|
this.isFlag = true;
|
|
this.$api.queryReportProject(params).then(res => {
|
|
this.$api.queryReportProject(params).then(res => {
|