|
@@ -254,7 +254,7 @@ export default {
|
|
await this.tabChange(this.componentType)
|
|
await this.tabChange(this.componentType)
|
|
}
|
|
}
|
|
// 获取搜索/分组
|
|
// 获取搜索/分组
|
|
- await this.getColumn()
|
|
|
|
|
|
+ // await this.getColumn()
|
|
//获取报告清单
|
|
//获取报告清单
|
|
this.getList()
|
|
this.getList()
|
|
this.showViews()
|
|
this.showViews()
|
|
@@ -291,13 +291,13 @@ export default {
|
|
var type = Number(name)
|
|
var type = Number(name)
|
|
switch(type){
|
|
switch(type){
|
|
case 1:
|
|
case 1:
|
|
- this.fixedSearch={}
|
|
|
|
- this.type = 'reportProject'
|
|
|
|
- if(!this.columnType.columnList1){
|
|
|
|
- // 获取table栏位
|
|
|
|
- this.columnList = await this.$commonJS.getCustomField('reportProject')
|
|
|
|
- this.columnType.columnList1 = this.columnList
|
|
|
|
- }
|
|
|
|
|
|
+ this.fixedSearch={}
|
|
|
|
+ this.type = 'reportProject'
|
|
|
|
+ if(!this.columnType.columnList1){
|
|
|
|
+ // 获取table栏位
|
|
|
|
+ this.columnList = await this.$commonJS.getCustomField('reportProject')
|
|
|
|
+ this.columnType.columnList1 = this.columnList
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
this.type = 'invalidReportProject'
|
|
this.type = 'invalidReportProject'
|
|
@@ -311,6 +311,8 @@ export default {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
this.columnList = this.columnType['columnList' + type]
|
|
this.columnList = this.columnType['columnList' + type]
|
|
|
|
+ // 获取搜索/分组
|
|
|
|
+ await this.getColumn()
|
|
this.queryParams.current = 1
|
|
this.queryParams.current = 1
|
|
this.isGrouping()
|
|
this.isGrouping()
|
|
},
|
|
},
|
|
@@ -335,7 +337,8 @@ export default {
|
|
},
|
|
},
|
|
//获取table栏位及分组字段、检索字段
|
|
//获取table栏位及分组字段、检索字段
|
|
async getColumn() {
|
|
async getColumn() {
|
|
- let params = ['reportProject']
|
|
|
|
|
|
+ // let params = ['reportProject']
|
|
|
|
+ let params = [this.type]
|
|
await this.$api.getParamsCommon(params).then(res => {
|
|
await this.$api.getParamsCommon(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
let conditionDTOList = JSON.parse(JSON.stringify(res.data[0].conditionDTOList))
|
|
let conditionDTOList = JSON.parse(JSON.stringify(res.data[0].conditionDTOList))
|