Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage
This commit is contained in:
+11
-5
@@ -350,11 +350,17 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
|||||||
String key = entry.getKey();
|
String key = entry.getKey();
|
||||||
String value = (String) entry.getValue();
|
String value = (String) entry.getValue();
|
||||||
if("technology_territory".equals(key) && ObjectUtils.isNotEmpty(value)){
|
if("technology_territory".equals(key) && ObjectUtils.isNotEmpty(value)){
|
||||||
Map<String, Object> queryMapNew = new HashMap<>();
|
JSONArray should = new JSONArray();
|
||||||
Map<String, Object> queryMapTempNew = new HashMap<>();
|
|
||||||
queryMapTempNew.put(key, "*"+value.replaceAll(",","*")+"*");
|
List<Map<String,Object>> mapList = new ArrayList<>();
|
||||||
queryMapNew.put("wildcard", queryMapTempNew);
|
for (String s : value.split(",")) {
|
||||||
must.add(queryMapNew);
|
Map<String,Object> map = new HashMap();
|
||||||
|
map.put(key,"*"+s+"*");
|
||||||
|
Map<String,Object> map1 = new HashMap<>();
|
||||||
|
map1.put("wildcard",map);
|
||||||
|
should.add(map1);
|
||||||
|
}
|
||||||
|
must.add(should);
|
||||||
}else{
|
}else{
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
Map<String, Object> queryMap = new HashMap<>();
|
Map<String, Object> queryMap = new HashMap<>();
|
||||||
|
|||||||
+35
-8
@@ -53,11 +53,14 @@
|
|||||||
:class="{'content-box-box-text-admin':!item2.lableName || item2.lableName == 'null' || item2.lableName == 'undefined'? true : false}"
|
:class="{'content-box-box-text-admin':!item2.lableName || item2.lableName == 'null' || item2.lableName == 'undefined'? true : false}"
|
||||||
class="content-box-box-text content-box-box-text-index"
|
class="content-box-box-text content-box-box-text-index"
|
||||||
v-else-if="item2.lableType == 7 && item2.lableName && index2 != 0">
|
v-else-if="item2.lableType == 7 && item2.lableName && index2 != 0">
|
||||||
<!-- <span v-if="item2.lableName && item2.lableName.split(',').length == 1">-->
|
<span v-if="item2.lableName && item2.lableName.split(',').length == 1">
|
||||||
<!-- <span class="file-text">{{item2.lableName}}</span>-->
|
<span class="file-text" @click="pdfPreview(item2)" :title="item2.contentFileName">
|
||||||
<!-- <a-icon @click="download(item2)" type="download" class="icon-text"/>-->
|
{{item2.contentFileName}}
|
||||||
<!-- </span>-->
|
</span>
|
||||||
<span @click="viewFileClick(item2.lableName)">
|
<a-icon @click="download(item2)" type="download" class="icon-text"/>
|
||||||
|
</span>
|
||||||
|
<span v-else :title="$t('viewFile')"
|
||||||
|
@click="viewFileClick(item2.lableName)">
|
||||||
{{$t('viewFile')}}
|
{{$t('viewFile')}}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -102,6 +105,7 @@
|
|||||||
import countryCardViewAdd from './countryCardViewAdd'
|
import countryCardViewAdd from './countryCardViewAdd'
|
||||||
import viewFileModel from '@/components/viewFileModel/index'
|
import viewFileModel from '@/components/viewFileModel/index'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { Base64 } from 'js-base64'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'countryCardView',
|
name: 'countryCardView',
|
||||||
@@ -122,6 +126,7 @@
|
|||||||
countryCardViewList: [],
|
countryCardViewList: [],
|
||||||
applyMarkets: '',
|
applyMarkets: '',
|
||||||
header_text: '',
|
header_text: '',
|
||||||
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
url: {
|
url: {
|
||||||
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
||||||
deleteOne: ''
|
deleteOne: ''
|
||||||
@@ -137,6 +142,25 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
pdfPreview(fileQuery) {
|
||||||
|
let fileName = fileQuery.contentFileName
|
||||||
|
fileQuery.id = fileQuery.lableName
|
||||||
|
let index1 = fileName.lastIndexOf('.')
|
||||||
|
let index2 = fileName.length
|
||||||
|
let fileSuffix = fileName.substring(index1, index2)
|
||||||
|
if (fileSuffix == '.pdf') {
|
||||||
|
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + fileQuery.id+'&userName='+this.userInfo().username))
|
||||||
|
} else if (fileSuffix == '.docx' || fileSuffix == '.doc') {
|
||||||
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
|
window.open(url, '_blank')
|
||||||
|
} else if (fileSuffix == '.xlsx' || fileSuffix == '.xls'
|
||||||
|
|| fileSuffix == '.png' || fileSuffix == '.jpeg' || fileSuffix == '.gif' || fileSuffix == '.jpg') {
|
||||||
|
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + fileQuery.id + fileSuffix)
|
||||||
|
window.open(url, '_blank')
|
||||||
|
} else {
|
||||||
|
downloadFile('/sys/common/downLoadFile', fileQuery.contentFileName, { id: fileQuery.id })
|
||||||
|
}
|
||||||
|
},
|
||||||
displayInformationClick() {
|
displayInformationClick() {
|
||||||
this.$refs.displayInformationModelRef.getData(JSON.parse(JSON.stringify(this.displayList)))
|
this.$refs.displayInformationModelRef.getData(JSON.parse(JSON.stringify(this.displayList)))
|
||||||
},
|
},
|
||||||
@@ -149,7 +173,7 @@
|
|||||||
this.$refs.countryCardViewAddRef.add(this.countryCardViewList)
|
this.$refs.countryCardViewAddRef.add(this.countryCardViewList)
|
||||||
},
|
},
|
||||||
download(item) {
|
download(item) {
|
||||||
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
|
downloadFile('/sys/common/downLoadFile', item.contentFileName, { id: item.lableName, userName: this.userInfo().username })
|
||||||
},
|
},
|
||||||
countryCardViewAddForm(val) {
|
countryCardViewAddForm(val) {
|
||||||
this.countryCardViewList = JSON.parse(JSON.stringify(val))
|
this.countryCardViewList = JSON.parse(JSON.stringify(val))
|
||||||
@@ -222,12 +246,14 @@
|
|||||||
if (val.lableType == 3) {
|
if (val.lableType == 3) {
|
||||||
res1.list.push({
|
res1.list.push({
|
||||||
lableName: val.contentDropDownValue,
|
lableName: val.contentDropDownValue,
|
||||||
lableType: val.lableType
|
lableType: val.lableType,
|
||||||
|
contentFileName:val.contentFileName || ''
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
res1.list.push({
|
res1.list.push({
|
||||||
lableName: val.content,
|
lableName: val.content,
|
||||||
lableType: val.lableType
|
lableType: val.lableType,
|
||||||
|
contentFileName:val.contentFileName || ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -490,6 +516,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
float: left;
|
float: left;
|
||||||
|
color: #040B29
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-text {
|
.icon-text {
|
||||||
|
|||||||
+7
-7
@@ -158,13 +158,13 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
titleClick(item) {
|
titleClick(item) {
|
||||||
let newUrl = this.$router.resolve({
|
// let newUrl = this.$router.resolve({
|
||||||
path: '/problemKnowledgeBaseView',
|
// path: '/problemKnowledgeBaseView',
|
||||||
query: {
|
// query: {
|
||||||
id: item.id
|
// id: item.id
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
window.open(newUrl.href, '_blank')
|
// window.open(newUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
edit(val) {
|
edit(val) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user