列表请求方式
This commit is contained in:
@@ -225,7 +225,7 @@
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
this.serialNumber = ''
|
this.$route.query.serialNumber = ''
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@@ -245,13 +245,10 @@
|
|||||||
queryParam[val] = queryParam[val].join(',')
|
queryParam[val] = queryParam[val].join(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(this.$route.query.serialNumber){
|
|
||||||
this.serialNumber = this.$route.query.serialNumber
|
|
||||||
}
|
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
serialNumber: this.serialNumber,
|
serialNumber: this.$route.query.serialNumber?this.$route.query.serialNumber:'',
|
||||||
...queryParam
|
...queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -298,6 +298,7 @@
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
|
this.$route.query.serialNumber = ''
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@@ -317,13 +318,10 @@
|
|||||||
queryParam[val] = queryParam[val].join(',')
|
queryParam[val] = queryParam[val].join(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(this.$route.query.serialNumber){
|
|
||||||
this.serialNumber = this.$route.query.serialNumber
|
|
||||||
}
|
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
serialNumber: this.serialNumber,
|
serialNumber: this.$route.query.serialNumber?this.$route.query.serialNumber:'',
|
||||||
...queryParam
|
...queryParam
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ export default {
|
|||||||
queryParam: {},
|
queryParam: {},
|
||||||
areaVisible: false,
|
areaVisible: false,
|
||||||
paramsTemplateName: '',
|
paramsTemplateName: '',
|
||||||
|
queryConditionVOList: [],
|
||||||
drawerVisible: false,
|
drawerVisible: false,
|
||||||
titleTag: ''
|
titleTag: ''
|
||||||
}
|
}
|
||||||
@@ -290,6 +291,8 @@ export default {
|
|||||||
},
|
},
|
||||||
searchReset() {
|
searchReset() {
|
||||||
this.queryParam = {}
|
this.queryParam = {}
|
||||||
|
this.territory = ''
|
||||||
|
this.queryConditionVOList = []
|
||||||
this.$refs.globalAdvancedQueryRef.resetLine()
|
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||||
this.$refs.globalAdvancedQueryRef.emitCallback()
|
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
},
|
},
|
||||||
@@ -313,14 +316,15 @@ export default {
|
|||||||
handleSuperQuery(params, matchType) {
|
handleSuperQuery(params, matchType) {
|
||||||
let sqp = {}
|
let sqp = {}
|
||||||
if (!params || (params && params.length == 0)) {
|
if (!params || (params && params.length == 0)) {
|
||||||
sqp['superQueryParams'] = ''
|
this.queryConditionVOList = []
|
||||||
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||||
} else {
|
} else {
|
||||||
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||||
sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
this.queryConditionVOList = params
|
||||||
sqp['superQueryMatchType'] = matchType
|
this.queryConditionVOList.forEach(res => {
|
||||||
|
res.type = matchType
|
||||||
|
})
|
||||||
}
|
}
|
||||||
this.queryParamQuery = sqp
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
@@ -329,10 +333,11 @@ export default {
|
|||||||
this.territory = this.queryParam.technologyTerritory.join(',')
|
this.territory = this.queryParam.technologyTerritory.join(',')
|
||||||
}
|
}
|
||||||
// let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
// let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
|
let queryConditionVOList = JSON.parse(JSON.stringify(this.queryConditionVOList))
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
...this.queryParamQuery,
|
queryConditionVOList: JSON.stringify(queryConditionVOList),
|
||||||
technology_territory: this.territory,
|
technology_territory: this.territory,
|
||||||
serial_number:this.queryParam.serialNumber,
|
serial_number:this.queryParam.serialNumber,
|
||||||
title:this.queryParam.title,
|
title:this.queryParam.title,
|
||||||
@@ -340,7 +345,7 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
postAction(this.url.list, query).then((res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
this.pageNo = res.result.current - 1
|
this.pageNo = res.result.current - 1
|
||||||
|
|||||||
Reference in New Issue
Block a user