修改已知bug
This commit is contained in:
@@ -549,5 +549,5 @@ module.exports = {
|
|||||||
enterQuantity:'Please enter quantity',
|
enterQuantity:'Please enter quantity',
|
||||||
text:'text',
|
text:'text',
|
||||||
picture:'picture',
|
picture:'picture',
|
||||||
|
searchScope:'Search Scope'
|
||||||
}
|
}
|
||||||
@@ -553,5 +553,5 @@ module.exports = {
|
|||||||
enterQuantity:'请输入数量',
|
enterQuantity:'请输入数量',
|
||||||
text:'文本',
|
text:'文本',
|
||||||
picture:'图片',
|
picture:'图片',
|
||||||
|
searchScope:'检索范围',
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
min-width: 90px;
|
min-width: 110px;
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -194,7 +194,7 @@
|
|||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else {
|
} else {
|
||||||
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,11 +250,11 @@
|
|||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else {
|
} else {
|
||||||
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
download(item) {
|
download(item) {
|
||||||
downloadFile('/sys/common/download', item.fileName, { id: item.id })
|
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
|
||||||
},
|
},
|
||||||
UpdateLog() {
|
UpdateLog() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
<div class="text-left-select" v-if="item.field_show_type == '4'">
|
<div class="text-left-select" v-if="item.field_show_type == '4'">
|
||||||
<span class="text-sel">{{item.db_field_txt}}</span>
|
<span class="text-sel">{{item.db_field_txt}}</span>
|
||||||
<j-multi-select-tag class="text-select" v-model="queryParam[item.db_field_name]"
|
<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'"
|
:placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"
|
||||||
:triggerChange="false" :dictCode="item.dict_field"/>
|
:triggerChange="false" :dictCode="item.dict_field"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,8 +63,8 @@
|
|||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
<div class="search-text-list">
|
<div class="search-text-list">
|
||||||
<div class="search-text-title">
|
<div class="search-text-title">
|
||||||
<span>检索范围:</span>
|
<span>{{$t('searchScope')}}:</span>
|
||||||
<span>纯电动</span>
|
<span>{{queryParamSeach}}</span>
|
||||||
<div class="search-header-right">
|
<div class="search-header-right">
|
||||||
<a-icon type="appstore" class="header-list" :title="$t('list')"
|
<a-icon type="appstore" class="header-list" :title="$t('list')"
|
||||||
:class="{'header-list-active':isTrue }"
|
:class="{'header-list-active':isTrue }"
|
||||||
@@ -289,7 +290,8 @@
|
|||||||
loading: false,
|
loading: false,
|
||||||
selectModel: '',
|
selectModel: '',
|
||||||
fileList: [],
|
fileList: [],
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download'
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
|
queryParamSeach: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -320,8 +322,8 @@
|
|||||||
selectListModel(val) {
|
selectListModel(val) {
|
||||||
this.isTrue = val == 'list' ? true : false
|
this.isTrue = val == 'list' ? true : false
|
||||||
},
|
},
|
||||||
onSelectChange() {
|
onSelectChange(selectedRowKeys) {
|
||||||
|
this.selectedRowKeys = selectedRowKeys
|
||||||
},
|
},
|
||||||
checkedClick(item) {
|
checkedClick(item) {
|
||||||
if (item.checked) {
|
if (item.checked) {
|
||||||
@@ -414,6 +416,11 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.queryParam = {}
|
||||||
|
this.getInfoList()
|
||||||
|
},
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.getInfoList()
|
this.getInfoList()
|
||||||
@@ -423,13 +430,20 @@
|
|||||||
this.selectModel = selectModel
|
this.selectModel = selectModel
|
||||||
this.getInfoList()
|
this.getInfoList()
|
||||||
},
|
},
|
||||||
|
searchDataTwo(value) {
|
||||||
|
this.queryParam.selectValueTwo = value
|
||||||
|
this.getInfoList()
|
||||||
|
},
|
||||||
getInfoList() {
|
getInfoList() {
|
||||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
|
this.queryParamSeach = ''
|
||||||
Object.keys(queryParam).forEach(val => {
|
Object.keys(queryParam).forEach(val => {
|
||||||
if (queryParam[val] instanceof Array) {
|
if (queryParam[val] instanceof Array) {
|
||||||
queryParam[val] = queryParam[val].join(',')
|
queryParam[val] = queryParam[val].join(',')
|
||||||
}
|
}
|
||||||
|
this.queryParamSeach = this.queryParamSeach + queryParam[val] + ','
|
||||||
})
|
})
|
||||||
|
this.queryParamSeach = this.queryParamSeach.substr(0, this.queryParamSeach.length - 1)
|
||||||
let query = {
|
let query = {
|
||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
@@ -451,11 +465,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchReset() {
|
|
||||||
this.pageNo = 1
|
|
||||||
this.queryParam = {}
|
|
||||||
this.getInfoList()
|
|
||||||
},
|
|
||||||
fileNameClick(row) {
|
fileNameClick(row) {
|
||||||
this.fileList = row.file_name || []
|
this.fileList = row.file_name || []
|
||||||
if (this.fileList.length > 0) {
|
if (this.fileList.length > 0) {
|
||||||
@@ -476,7 +486,7 @@
|
|||||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
} else {
|
} else {
|
||||||
downloadFile('/sys/common/download', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
titleClick(item) {
|
titleClick(item) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="search-text-title">
|
<div class="search-text-title">
|
||||||
<span>检索范围:</span>
|
<span>{{$t('searchScope')}}:</span>
|
||||||
<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">
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
allowClear
|
allowClear
|
||||||
style="width: 70%"
|
v-model="selectValueTwo"
|
||||||
|
style="width: calc(100% - 88px)"
|
||||||
placeholder="请输入搜索内容"
|
placeholder="请输入搜索内容"
|
||||||
@search="onSearch"
|
@search="onSearch"
|
||||||
></a-input-search>
|
></a-input-search>
|
||||||
@@ -26,7 +27,8 @@
|
|||||||
placeholder="请输入搜索内容"
|
placeholder="请输入搜索内容"
|
||||||
@search="wholeOnSearch"
|
@search="wholeOnSearch"
|
||||||
></a-input-search>
|
></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>
|
</div>
|
||||||
<div class="search-center-content">
|
<div class="search-center-content">
|
||||||
@@ -70,7 +72,7 @@
|
|||||||
},
|
},
|
||||||
selectModel: '',
|
selectModel: '',
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
selectValueTwo:'',
|
selectValueTwo: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -82,19 +84,20 @@
|
|||||||
},
|
},
|
||||||
onSearch(event) {
|
onSearch(event) {
|
||||||
this.queryParam[this.selectModel] = event
|
this.queryParam[this.selectModel] = event
|
||||||
if (this.$refs.DocumentLibraryRef){
|
if (this.$refs.DocumentLibraryRef) {
|
||||||
this.$refs.DocumentLibraryRef.searchData(this.queryParam,this.selectModel)
|
this.$refs.DocumentLibraryRef.searchData(this.queryParam, this.selectModel)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
wholeOnSearch(event){
|
wholeOnSearch(event) {
|
||||||
if (this.$refs.wholeRef){
|
if (this.$refs.wholeRef) {
|
||||||
this.$refs.wholeRef.searchData(event)
|
this.$refs.wholeRef.searchData(event)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
wholeTextSearch(event){
|
wholeTextSearch(event) {
|
||||||
console.log(event)
|
if (this.$refs.wholeRef) {
|
||||||
if (this.$refs.wholeRef){
|
|
||||||
this.$refs.wholeRef.searchDataTwo(event)
|
this.$refs.wholeRef.searchDataTwo(event)
|
||||||
|
} else if (this.$refs.DocumentLibraryRef) {
|
||||||
|
this.$refs.DocumentLibraryRef.searchDataTwo(event)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getCondition() {
|
getCondition() {
|
||||||
@@ -203,7 +206,8 @@
|
|||||||
.input-group .ant-select {
|
.input-group .ant-select {
|
||||||
background: #F6F7FA;
|
background: #F6F7FA;
|
||||||
}
|
}
|
||||||
.textSearch{
|
|
||||||
|
.textSearch {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
|||||||
@@ -110,7 +110,6 @@
|
|||||||
title: this.$t('MessageContent'),
|
title: this.$t('MessageContent'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'msgContent',
|
dataIndex: 'msgContent',
|
||||||
width: 600,
|
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
scopedSlots: { customRender: 'msgContent' }
|
scopedSlots: { customRender: 'msgContent' }
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user