修改禅道已知bug
This commit is contained in:
@@ -529,6 +529,22 @@
|
|||||||
this.getParagraphInfoList(2)
|
this.getParagraphInfoList(2)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ResetSearch() {
|
||||||
|
this.queryParam = {}
|
||||||
|
this.queryParamOne = {}
|
||||||
|
this.searchQueryOne = {}
|
||||||
|
this.checkboxText = []
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.selectModel = ''
|
||||||
|
this.selectModelName = ''
|
||||||
|
this.ParamSeach()
|
||||||
|
this.pageNo = 1
|
||||||
|
if (this.isTrue) {
|
||||||
|
this.getInfoList(1)
|
||||||
|
} else {
|
||||||
|
this.getParagraphInfoList(1)
|
||||||
|
}
|
||||||
|
},
|
||||||
changeQuery(val, name) {
|
changeQuery(val, name) {
|
||||||
this.queryParamOne[name + '_name'] = val
|
this.queryParamOne[name + '_name'] = val
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span>{{ queryParam.selectValue }}</span>
|
<span>{{ queryParam.selectValue }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-checkbox-group v-model="checkboxText" v-if="conList.length > 0">
|
<a-checkbox-group v-model="checkboxText" v-if="conList.length > 0">
|
||||||
<li v-for="(item,index) in conList" :key="index">
|
<li v-for="(item,index) in conList" :key="item.id">
|
||||||
<div style="margin-bottom: 10px;position: relative">
|
<div style="margin-bottom: 10px;position: relative">
|
||||||
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
|
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
|
||||||
<div class="text-text-right"
|
<div class="text-text-right"
|
||||||
@@ -103,7 +103,6 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
loading: false,
|
|
||||||
queryParam: {}
|
queryParam: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -137,21 +136,27 @@
|
|||||||
this.checkboxText.push(item.id)
|
this.checkboxText.push(item.id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ResetSearch() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.checkboxText = []
|
||||||
|
this.queryParam = {}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
fileClick(fileQuery) {
|
fileClick(fileQuery) {
|
||||||
let fileName = fileQuery.file_name
|
let fileName = fileQuery.file_name
|
||||||
let index1 = fileName.lastIndexOf('.')
|
let index1 = fileName.lastIndexOf('.')
|
||||||
let index2 = fileName.length
|
let index2 = fileName.length
|
||||||
let fileSuffix = fileName.substring(index1, index2)
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
if (fileSuffix == '.pdf') {
|
if (fileSuffix == '.pdf') {
|
||||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id.slice(0,32)))
|
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id.slice(0, 32)))
|
||||||
} else if (fileSuffix == '.docx') {
|
} else if (fileSuffix == '.docx') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0,32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls') {
|
||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0,32) + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id.slice(0, 32) + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else {
|
} else {
|
||||||
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0,32) })
|
downloadFile('/sys/common/downLoadFile', fileQuery.file_name, { id: fileQuery.id.slice(0, 32) })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pageOnChange(page, pageSize) {
|
pageOnChange(page, pageSize) {
|
||||||
@@ -179,7 +184,6 @@
|
|||||||
queryParam[val] = queryParam[val].join(',')
|
queryParam[val] = queryParam[val].join(',')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.loading = true
|
|
||||||
let checkboxText = JSON.parse(JSON.stringify(this.checkboxText))
|
let checkboxText = JSON.parse(JSON.stringify(this.checkboxText))
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
@@ -191,9 +195,8 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.conList = res.result.records
|
this.conList = res.result.records
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.conList = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -201,7 +204,7 @@
|
|||||||
let newUrl = this.$router.resolve({
|
let newUrl = this.$router.resolve({
|
||||||
path: '/docManage/library/detail',
|
path: '/docManage/library/detail',
|
||||||
query: {
|
query: {
|
||||||
id: item.id.slice(0,32),
|
id: item.id.slice(0, 32),
|
||||||
title: item.title,
|
title: item.title,
|
||||||
serial_number: item.serial_number
|
serial_number: item.serial_number
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
></a-input-search>
|
></a-input-search>
|
||||||
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
|
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
|
||||||
@click="wholeTextSearch(selectValueTwo)">结果中检索</span>
|
@click="wholeTextSearch(selectValueTwo)">结果中检索</span>
|
||||||
|
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
|
||||||
|
@click="ResetSearch()">重置</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-center-content">
|
<div class="search-center-content">
|
||||||
@@ -84,6 +86,14 @@
|
|||||||
this.active = key
|
this.active = key
|
||||||
this.selectValueTwo = ''
|
this.selectValueTwo = ''
|
||||||
},
|
},
|
||||||
|
ResetSearch() {
|
||||||
|
this.selectValueTwo = ''
|
||||||
|
if (this.$refs.wholeRef) {
|
||||||
|
this.$refs.wholeRef.ResetSearch()
|
||||||
|
} else if (this.$refs.DocumentLibraryRef) {
|
||||||
|
this.$refs.DocumentLibraryRef.ResetSearch()
|
||||||
|
}
|
||||||
|
},
|
||||||
onSearch(event) {
|
onSearch(event) {
|
||||||
this.queryParam[this.selectModel] = event
|
this.queryParam[this.selectModel] = event
|
||||||
if (this.$refs.DocumentLibraryRef) {
|
if (this.$refs.DocumentLibraryRef) {
|
||||||
|
|||||||
Reference in New Issue
Block a user