|
@@ -21,16 +21,18 @@
|
|
|
|
|
|
<searchPatent ref="searchPatent" :searchFiled="searchFiled" :searchPatentCheck="searchPatentCheck"
|
|
<searchPatent ref="searchPatent" :searchFiled="searchFiled" :searchPatentCheck="searchPatentCheck"
|
|
@searchValue="handleSearchValue"></searchPatent>
|
|
@searchValue="handleSearchValue"></searchPatent>
|
|
|
|
+
|
|
|
|
+ <el-button size="mini" type="primary" class="margin-left_10" @click="semanticRetrieval">语义检索</el-button>
|
|
|
|
|
|
<!-- <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption"></mySearch> -->
|
|
<!-- <mySearch :SearchFields="searchFiled" @search="search" :searchValue="searchOption"></mySearch> -->
|
|
<el-popover placement="bottom" title="关键词高亮" width="320" trigger="click">
|
|
<el-popover placement="bottom" title="关键词高亮" width="320" trigger="click">
|
|
<patent-keywords-highlight :project-id="projectId" />
|
|
<patent-keywords-highlight :project-id="projectId" />
|
|
- <el-button slot="reference" size="small" type="primary" class="margin-right_10 margin-left_10">
|
|
|
|
|
|
+ <el-button slot="reference" size="small" type="primary" class="margin-left_10">
|
|
高亮<i class="el-icon-arrow-down el-icon--right"></i>
|
|
高亮<i class="el-icon-arrow-down el-icon--right"></i>
|
|
</el-button>
|
|
</el-button>
|
|
</el-popover>
|
|
</el-popover>
|
|
|
|
|
|
- <el-button size="small" type="success" @click="handleAnalyses" style="font-size:16px;padding:0px 9px;font-wight:0"><i class="el-icon-s-data" style="font-size:18px;"></i> 图表分析</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="success" @click="handleAnalyses" class="margin-left_10" style="font-size:16px;padding:0px 9px;font-wight:0"><i class="el-icon-s-data" style="font-size:18px;"></i> 图表分析</el-button>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div style="display:flex;align-items:center;">
|
|
<div style="display:flex;align-items:center;">
|
|
@@ -143,7 +145,7 @@
|
|
</el-header>
|
|
</el-header>
|
|
<el-main v-loading="loading">
|
|
<el-main v-loading="loading">
|
|
<div class="height_100">
|
|
<div class="height_100">
|
|
- <component ref="patentViewList" :is="viewSelected" @download="handleDownload" @change-read="handleChangeRead"
|
|
|
|
|
|
+ <component ref="patentViewList" :is="viewSelected" :semanteme="semanteme" @download="handleDownload" @change-read="handleChangeRead"
|
|
:projectId="projectId" :patentNoList.sync="patentNoList" @addSelect="getChoosePatentNo"
|
|
:projectId="projectId" :patentNoList.sync="patentNoList" @addSelect="getChoosePatentNo"
|
|
@clickPatentNo="handleClick" :column="customList" @index-setting="handleIndexSetting" @on-sort="handleSort"
|
|
@clickPatentNo="handleClick" :column="customList" @index-setting="handleIndexSetting" @on-sort="handleSort"
|
|
:queryParams="queryParams" :tableData="tableData" :refresh='refresh'></component>
|
|
:queryParams="queryParams" :tableData="tableData" :refresh='refresh'></component>
|
|
@@ -316,6 +318,7 @@ export default {
|
|
searchStr: '',
|
|
searchStr: '',
|
|
// 存放自定义栏位的检索条件
|
|
// 存放自定义栏位的检索条件
|
|
customFields: [],
|
|
customFields: [],
|
|
|
|
+ semanteme:''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
@@ -342,7 +345,48 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ //语义检索
|
|
|
|
+ semanticRetrieval(){
|
|
|
|
+ var _this = this;
|
|
|
|
+ const h = _this.$createElement;
|
|
|
|
+ _this.$msgbox({
|
|
|
|
+ title: '语义检索',
|
|
|
|
+ message: h('div', {
|
|
|
|
+ attrs: {
|
|
|
|
+ class: 'el-textarea',
|
|
|
|
+ },
|
|
|
|
+ }, [
|
|
|
|
+ h('textarea', {
|
|
|
|
+ attrs: {
|
|
|
|
+ class: 'el-textarea__inner',
|
|
|
|
+ autocomplete: 'off',
|
|
|
|
+ rows: 4,
|
|
|
|
+ id:'commentContent'
|
|
|
|
+ },
|
|
|
|
+ value: _this.semanteme,
|
|
|
|
+ on: { change: _this.onCommentInputChange }
|
|
|
|
+ })
|
|
|
|
+ ]),
|
|
|
|
+ showCancelButton: true,
|
|
|
|
+ confirmButtonText: '检索',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ beforeClose: (action, instance, done) => {
|
|
|
|
+ if (action === 'confirm') {
|
|
|
|
+ instance.confirmButtonLoading = true;
|
|
|
|
+ _this.getList()
|
|
|
|
+ done();
|
|
|
|
+ instance.confirmButtonLoading = false;
|
|
|
|
+ } else {
|
|
|
|
+ done();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }).then(action => {
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ onCommentInputChange() {
|
|
|
|
+ this.semanteme = document.getElementById("commentContent").value;
|
|
|
|
+ },
|
|
// 处理后的条件
|
|
// 处理后的条件
|
|
handleSearchValue({ searchStr, customFields }) {
|
|
handleSearchValue({ searchStr, customFields }) {
|
|
this.searchStr = searchStr
|
|
this.searchStr = searchStr
|
|
@@ -524,6 +568,7 @@ export default {
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
searchQuery: this.searchStr || '',//检索条件
|
|
customFields: this.customFields,
|
|
customFields: this.customFields,
|
|
orderDTOList: this.sort,//排序信息
|
|
orderDTOList: this.sort,//排序信息
|
|
|
|
+ semanteme:this.semanteme
|
|
}
|
|
}
|
|
this.loading = true
|
|
this.loading = true
|
|
this.$commonJS.scrollToTop()
|
|
this.$commonJS.scrollToTop()
|
|
@@ -531,7 +576,14 @@ export default {
|
|
this.$store.commit("SET_PATENT_RECORDS", []);
|
|
this.$store.commit("SET_PATENT_RECORDS", []);
|
|
this.$api.QueryPatent(params).then(res => {
|
|
this.$api.QueryPatent(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
+ if(params.semanteme){
|
|
|
|
+ res.data.data.forEach(item=>{
|
|
|
|
+ var score = (item.score * 100 + '').substring(0, 5)
|
|
|
|
+ item.score = Number(score)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
|
|
+
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
|
|
|
|
|
|
|