|
@@ -23,7 +23,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button type="primary" size="small" v-if="noveltySearch" @click="reporting">生成报告</el-button>
|
|
|
- <el-button type="primary" size="small" @click="importToProject">{{condition.isUpdateCriteria?'保存定期更新条件':'导入专利'}}</el-button>
|
|
|
+ <el-button v-if="outside || projectId" type="primary" size="small" @click="importToProject">{{condition.isUpdateCriteria?'保存定期更新条件':'导入专利'}}{{ (!outside && condition.importToType == 3)?'到查新检索报告':'' }}</el-button>
|
|
|
<el-button size="small" type="warning" @click="handleFieldManage">显示栏位管理</el-button>
|
|
|
</div>
|
|
|
</el-header>
|
|
@@ -362,17 +362,68 @@ export default {
|
|
|
},
|
|
|
//导入到专题库
|
|
|
importToProject() {
|
|
|
- var form = {
|
|
|
- // ...this.searchData,
|
|
|
- ...this.condition,
|
|
|
- orderBy: this.queryParams.OrderBy,
|
|
|
- orderByType: this.queryParams.OrderByType,
|
|
|
- // startNumber: this.selectedTotal > 0 ? this.startNumber : 1,
|
|
|
- // endNumber: this.selectedTotal > 0 ? this.endNumber : this.total,
|
|
|
- patentNos: this.queryParams.isAdd,
|
|
|
- // isDeletePatentNos: this.queryParams.isDelete,
|
|
|
+ if(this.outside){
|
|
|
+ var form = {
|
|
|
+ // ...this.searchData,
|
|
|
+ ...this.condition,
|
|
|
+ orderBy: this.queryParams.OrderBy,
|
|
|
+ orderByType: this.queryParams.OrderByType,
|
|
|
+ // startNumber: this.selectedTotal > 0 ? this.startNumber : 1,
|
|
|
+ // endNumber: this.selectedTotal > 0 ? this.endNumber : this.total,
|
|
|
+ patentNos: this.queryParams.isAdd,
|
|
|
+ // isDeletePatentNos: this.queryParams.isDelete,
|
|
|
+ }
|
|
|
+ this.$refs.projectListDialog.open(form);
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.projectId){
|
|
|
+ return
|
|
|
}
|
|
|
- this.$refs.projectListDialog.open(form);
|
|
|
+ var params = {
|
|
|
+ stringRequest:{
|
|
|
+ projectId: this.innerProjectId,
|
|
|
+ searchQuery: this.condition.searchCondition || '',
|
|
|
+ orderDTOList:this.sort,
|
|
|
+ },
|
|
|
+ fromProjectId:this.innerProjectId, //来源专题库项目id
|
|
|
+ toProjectId:this.projectId, //目标报告项目id
|
|
|
+ isAdd:this.queryParams.isAdd, //去除专利号
|
|
|
+ }
|
|
|
+ if(this.queryParams.OrderBy && this.queryParams.OrderByType){
|
|
|
+ var orderDTOList = [
|
|
|
+ {
|
|
|
+ orderBy:this.queryParams.OrderBy,
|
|
|
+ orderType:this.queryParams.OrderByType == 'DESC'?1:0
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ params.stringRequest.orderDTOList = orderDTOList
|
|
|
+ }
|
|
|
+ var message = this.$message({
|
|
|
+ type:'warning',
|
|
|
+ message: '正在将专利导入报告中...',
|
|
|
+ duration: 0 // 设置为0表示不自动关闭
|
|
|
+ })
|
|
|
+
|
|
|
+ this.$api.addProjectPatentToReport(params).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ message.close()
|
|
|
+ this.$message(
|
|
|
+ {
|
|
|
+ type:'success',
|
|
|
+ message:'导入成功'
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ message.close()
|
|
|
+ this.$message(
|
|
|
+ {
|
|
|
+ type:'error',
|
|
|
+ message:'导入失败'
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
//切换页数
|
|
|
async handleCurrentChange(val) {
|