去掉搜索中心不必要的传参
This commit is contained in:
@@ -21,7 +21,6 @@ const service = axios.create({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const err = (error) => {
|
const err = (error) => {
|
||||||
console.log(error)
|
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
let data = error.response.data
|
let data = error.response.data
|
||||||
const token = Vue.ls.get(ACCESS_TOKEN)
|
const token = Vue.ls.get(ACCESS_TOKEN)
|
||||||
@@ -199,9 +198,7 @@ function blobToJson(data) {
|
|||||||
fileReader.onload = function() {
|
fileReader.onload = function() {
|
||||||
try {
|
try {
|
||||||
let jsonData = JSON.parse(this.result) // 说明是普通对象数据,后台转换失败
|
let jsonData = JSON.parse(this.result) // 说明是普通对象数据,后台转换失败
|
||||||
console.log('jsonData', jsonData)
|
|
||||||
if (jsonData.status === 500) {
|
if (jsonData.status === 500) {
|
||||||
console.log('token----------》', token)
|
|
||||||
if (token && jsonData.message.includes('Token失效')) {
|
if (token && jsonData.message.includes('Token失效')) {
|
||||||
Modal.error({
|
Modal.error({
|
||||||
title: '登录已过期',
|
title: '登录已过期',
|
||||||
|
|||||||
@@ -97,9 +97,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSearch(event) {
|
onSearch(event) {
|
||||||
this.queryParam[this.selectModel] = event
|
if (event == '' || !event) {
|
||||||
if (this.$refs.DocumentLibraryRef) {
|
this.queryParam = {}
|
||||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
if (this.$refs.DocumentLibraryRef) {
|
||||||
|
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.queryParam[this.selectModel] = event
|
||||||
|
if (this.$refs.DocumentLibraryRef) {
|
||||||
|
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel, this.selectModelName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
wholeOnSearch(event) {
|
wholeOnSearch(event) {
|
||||||
@@ -111,8 +118,13 @@
|
|||||||
if (this.$refs.wholeRef) {
|
if (this.$refs.wholeRef) {
|
||||||
this.$refs.wholeRef.searchDataTwo(event)
|
this.$refs.wholeRef.searchDataTwo(event)
|
||||||
} else if (this.$refs.DocumentLibraryRef) {
|
} else if (this.$refs.DocumentLibraryRef) {
|
||||||
this.queryParam[this.selectModel] = event
|
if (event == '' || !event) {
|
||||||
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
this.queryParam = {}
|
||||||
|
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
||||||
|
} else {
|
||||||
|
this.queryParam[this.selectModel] = event
|
||||||
|
this.$refs.DocumentLibraryRef.searchDataTwo(this.queryParam, this.selectModel, this.selectModelName)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getCondition() {
|
getCondition() {
|
||||||
|
|||||||
Reference in New Issue
Block a user