修改已知bug

This commit is contained in:
qq787203167
2022-03-24 17:38:12 +08:00
parent 5a5e462a29
commit bf33cfedf5
9 changed files with 43 additions and 30 deletions
@@ -36,6 +36,7 @@
<div class="text-left-select" v-if="item.field_show_type == '4'">
<span class="text-sel">{{item.db_field_txt}}</span>
<j-multi-select-tag class="text-select" v-model="queryParam[item.db_field_name]"
:db_field_name="item.db_field_name"
:placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"
:triggerChange="false" :dictCode="item.dict_field"/>
</div>
@@ -62,8 +63,8 @@
<div class="text-right">
<div class="search-text-list">
<div class="search-text-title">
<span>检索范围</span>
<span>纯电动</span>
<span>{{$t('searchScope')}}</span>
<span>{{queryParamSeach}}</span>
<div class="search-header-right">
<a-icon type="appstore" class="header-list" :title="$t('list')"
:class="{'header-list-active':isTrue }"
@@ -289,7 +290,8 @@
loading: false,
selectModel: '',
fileList: [],
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download'
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
queryParamSeach: ''
}
},
watch: {
@@ -320,8 +322,8 @@
selectListModel(val) {
this.isTrue = val == 'list' ? true : false
},
onSelectChange() {
onSelectChange(selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys
},
checkedClick(item) {
if (item.checked) {
@@ -414,6 +416,11 @@
}
})
},
searchReset() {
this.pageNo = 1
this.queryParam = {}
this.getInfoList()
},
searchQuery() {
this.pageNo = 1
this.getInfoList()
@@ -423,13 +430,20 @@
this.selectModel = selectModel
this.getInfoList()
},
searchDataTwo(value) {
this.queryParam.selectValueTwo = value
this.getInfoList()
},
getInfoList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
this.queryParamSeach = ''
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
this.queryParamSeach = this.queryParamSeach + queryParam[val] + ','
})
this.queryParamSeach = this.queryParamSeach.substr(0, this.queryParamSeach.length - 1)
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
@@ -451,11 +465,7 @@
}
})
},
searchReset() {
this.pageNo = 1
this.queryParam = {}
this.getInfoList()
},
fileNameClick(row) {
this.fileList = row.file_name || []
if (this.fileList.length > 0) {
@@ -476,7 +486,7 @@
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
window.open(url, '_blank')
} else {
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
},
titleClick(item) {
@@ -1,7 +1,7 @@
<template>
<div class="box">
<div class="search-text-title">
<span>检索范围</span>
<span>{{$t('searchScope')}}</span>
<span>{{ queryParam.selectValue }}</span>
</div>
<a-checkbox-group v-model="checkboxText" v-if="conList.length > 0">
@@ -13,7 +13,8 @@
</a-select>
<a-input-search
allowClear
style="width: 70%"
v-model="selectValueTwo"
style="width: calc(100% - 88px)"
placeholder="请输入搜索内容"
@search="onSearch"
></a-input-search>
@@ -26,7 +27,8 @@
placeholder="请输入搜索内容"
@search="wholeOnSearch"
></a-input-search>
<span v-if="active === $t('whole')" class="textSearch" @click="wholeTextSearch(selectValueTwo)">结果中检索</span>
<span v-if="active === $t('whole') || active === $t('DocumentLibrary')" class="textSearch"
@click="wholeTextSearch(selectValueTwo)">结果中检索</span>
</div>
</div>
<div class="search-center-content">
@@ -70,7 +72,7 @@
},
selectModel: '',
queryParam: {},
selectValueTwo:'',
selectValueTwo: ''
}
},
mounted() {
@@ -82,19 +84,20 @@
},
onSearch(event) {
this.queryParam[this.selectModel] = event
if (this.$refs.DocumentLibraryRef){
this.$refs.DocumentLibraryRef.searchData(this.queryParam,this.selectModel)
if (this.$refs.DocumentLibraryRef) {
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel)
}
},
wholeOnSearch(event){
if (this.$refs.wholeRef){
wholeOnSearch(event) {
if (this.$refs.wholeRef) {
this.$refs.wholeRef.searchData(event)
}
},
wholeTextSearch(event){
console.log(event)
if (this.$refs.wholeRef){
wholeTextSearch(event) {
if (this.$refs.wholeRef) {
this.$refs.wholeRef.searchDataTwo(event)
} else if (this.$refs.DocumentLibraryRef) {
this.$refs.DocumentLibraryRef.searchDataTwo(event)
}
},
getCondition() {
@@ -203,7 +206,8 @@
.input-group .ant-select {
background: #F6F7FA;
}
.textSearch{
.textSearch {
line-height: 40px;
display: inline-block;
margin-left: 8px;