|
@@ -94,10 +94,7 @@ export default {
|
|
|
//检索字段
|
|
|
searchFiled: [],
|
|
|
//检索条件
|
|
|
- searchOption: {
|
|
|
- // name: this.eventName,
|
|
|
- // applicationScenario: this.applicationScenario
|
|
|
- },
|
|
|
+ searchOption: { },
|
|
|
//分组的值
|
|
|
groupingValue: '',
|
|
|
//分组
|
|
@@ -167,8 +164,6 @@ export default {
|
|
|
handleSuccess(val) {
|
|
|
this.handleMessage = val
|
|
|
this.queryParams.current = 1
|
|
|
- this.searchOption.searchQuery=''
|
|
|
- // this.getList()
|
|
|
this.isGrouping()
|
|
|
this.clearMessage()
|
|
|
},
|
|
@@ -190,15 +185,8 @@ export default {
|
|
|
let params = ['event']
|
|
|
await this.$api.getParamsCommon(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- // 显示栏位
|
|
|
- // this.columnList = res.data[0].conditionDTOList.filter(item => {
|
|
|
- // return item.name != 'Id' && item.ifShow == true
|
|
|
- // })
|
|
|
- // 分组字段
|
|
|
let conditionDTOList= JSON.parse(JSON.stringify(res.data[0].conditionDTOList))
|
|
|
- // this.groupingOption = conditionDTOList.filter(item => {
|
|
|
- // return item.ifGroup == true
|
|
|
- // })
|
|
|
+ // 分组字段
|
|
|
this.groupingOption = this.$commonJS.getField(conditionDTOList,(u)=> u.ifGroup == true,{
|
|
|
name: 'name',
|
|
|
value: 'value',
|
|
@@ -236,8 +224,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
// 返回条件对象
|
|
|
- this.searchOption.searchQuery=params
|
|
|
- // this.searchOption.searchQuery=this.$commonJS.objectToString(params)
|
|
|
+ this.searchOption=params
|
|
|
// 调用查询接口
|
|
|
this.queryParams.current=1
|
|
|
this.isGrouping()
|
|
@@ -253,7 +240,7 @@ export default {
|
|
|
getList() {
|
|
|
let params = {
|
|
|
...this.queryParams,//分页信息
|
|
|
- searchQuery:this.$commonJS.objectToString(this.searchOption.searchQuery || {}),//检索条件
|
|
|
+ searchQuery:this.$commonJS.objectToString(this.searchOption || {}),//检索条件
|
|
|
orderDTOList: this.sort,//排序
|
|
|
}
|
|
|
this.$api.queryEvent(params).then(res => {
|
|
@@ -284,7 +271,7 @@ export default {
|
|
|
getGrouping() {
|
|
|
let params = {
|
|
|
...this.queryParams,//分页信息
|
|
|
- // ...this.searchOption,//检索信息
|
|
|
+ searchQuery:this.$commonJS.objectToString(this.searchOption || {}),//检索条件
|
|
|
orderDTOList:this.sort,//排序
|
|
|
groupBy:this.groupingValue,//分组信息
|
|
|
}
|