|
@@ -1,7 +1,19 @@
|
|
<template>
|
|
<template>
|
|
<div class="admin-user-bar">
|
|
<div class="admin-user-bar">
|
|
<div class="menu">
|
|
<div class="menu">
|
|
- <el-link :underline="true" v-for="item in menu" :key="item.path" @click="changePage(item.path)" :type="item.belong==belong?'primary':'default'">{{ item.label }}</el-link>
|
|
|
|
|
|
+ <span v-for="(item,index) in menu" :key="index">
|
|
|
|
+ <el-dropdown @command="changePage($event,item)" v-if="item.children && item.children.length>0">
|
|
|
|
+ <el-link :underline="true" :type="item.belong==belong?'primary':'default'" class="el-dropdown-link">
|
|
|
|
+ {{ item.current }}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </el-link>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item v-for="(menuItem,index2) in item.children" :key="index2" :command="menuItem.value">{{menuItem.label}}</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ <el-link v-else :underline="true" @click="changePage(item.path)" :type="item.belong==belong?'primary':'default'">{{ item.label }}</el-link>
|
|
|
|
+
|
|
|
|
+ </span>
|
|
|
|
+
|
|
<!-- <el-dropdown @command="importPatent">
|
|
<!-- <el-dropdown @command="importPatent">
|
|
<el-link :underline="true" :type="belong == 'conditionImport'?'primary':'default'" class="el-dropdown-link">
|
|
<el-link :underline="true" :type="belong == 'conditionImport'?'primary':'default'" class="el-dropdown-link">
|
|
专利检索<i class="el-icon-arrow-down el-icon--right"></i>
|
|
专利检索<i class="el-icon-arrow-down el-icon--right"></i>
|
|
@@ -43,6 +55,7 @@
|
|
<el-dropdown-item command="changePwd">修改密码</el-dropdown-item>
|
|
<el-dropdown-item command="changePwd">修改密码</el-dropdown-item>
|
|
<el-dropdown-item command="setStyle">文本样式设置</el-dropdown-item>
|
|
<el-dropdown-item command="setStyle">文本样式设置</el-dropdown-item>
|
|
<el-dropdown-item command="indicia">标注库</el-dropdown-item>
|
|
<el-dropdown-item command="indicia">标注库</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item command="noveltySearchDB">查新检索标注库</el-dropdown-item>
|
|
<el-dropdown-item command="clientble" v-if="userinfo.tenantType == 1">客户管理</el-dropdown-item>
|
|
<el-dropdown-item command="clientble" v-if="userinfo.tenantType == 1">客户管理</el-dropdown-item>
|
|
<el-dropdown-item command="importAndExportHistory" >我的导入导出历史</el-dropdown-item>
|
|
<el-dropdown-item command="importAndExportHistory" >我的导入导出历史</el-dropdown-item>
|
|
<el-dropdown-item divided command="doLogout">退出登录</el-dropdown-item>
|
|
<el-dropdown-item divided command="doLogout">退出登录</el-dropdown-item>
|
|
@@ -100,6 +113,7 @@
|
|
|
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<Set-Style ref="setStyle"></Set-Style>
|
|
<Set-Style ref="setStyle"></Set-Style>
|
|
|
|
+ <createNoveltySearch ref="createNoveltySearch"></createNoveltySearch>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -107,10 +121,12 @@
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
import SetStyle from "./setStyle.vue";
|
|
import SetStyle from "./setStyle.vue";
|
|
import ClientManage from '@/views/client/index.vue'
|
|
import ClientManage from '@/views/client/index.vue'
|
|
|
|
+import createNoveltySearch from '@/views/noveltySearch/components/dialog/createNoveltySearch.vue';
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
SetStyle,
|
|
SetStyle,
|
|
- ClientManage
|
|
|
|
|
|
+ ClientManage,
|
|
|
|
+ createNoveltySearch
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
const validateRepeat = (rule, value, callback) => {
|
|
const validateRepeat = (rule, value, callback) => {
|
|
@@ -161,13 +177,28 @@ export default {
|
|
{
|
|
{
|
|
label:'报告',
|
|
label:'报告',
|
|
path:'/AllReport',
|
|
path:'/AllReport',
|
|
- belong:'AllReport'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label:'查新检索',
|
|
|
|
- path:'/noveltySearch',
|
|
|
|
- belong:'noveltySearch'
|
|
|
|
|
|
+ belong:'AllReport',
|
|
|
|
+ current:'报告',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'报告',
|
|
|
|
+ value:'/AllReport?componentType=1',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'官方无效',
|
|
|
|
+ value:'/AllReport?componentType=2',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'查新检索',
|
|
|
|
+ value:'/noveltySearch',
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
|
|
+ // {
|
|
|
|
+ // label:'查新检索',
|
|
|
|
+ // path:'/noveltySearch',
|
|
|
|
+ // belong:'noveltySearch'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
label:'产品/技术',
|
|
label:'产品/技术',
|
|
path:'/product',
|
|
path:'/product',
|
|
@@ -186,7 +217,18 @@ export default {
|
|
{
|
|
{
|
|
label:'外部专利检索',
|
|
label:'外部专利检索',
|
|
path:'/conditionImport',
|
|
path:'/conditionImport',
|
|
- belong:'conditionImport'
|
|
|
|
|
|
+ belong:'conditionImport',
|
|
|
|
+ current:'外部专利检索',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'外部专利检索',
|
|
|
|
+ value:'/conditionImport',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'查新检索',
|
|
|
|
+ value:'1',
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
],
|
|
],
|
|
clientTitle:'',
|
|
clientTitle:'',
|
|
@@ -235,9 +277,25 @@ export default {
|
|
this.clientVisible = false
|
|
this.clientVisible = false
|
|
},
|
|
},
|
|
//跳转页面
|
|
//跳转页面
|
|
- changePage(path){
|
|
|
|
|
|
+ changePage(path,item){
|
|
|
|
+ var query = {}
|
|
|
|
+ if(item){
|
|
|
|
+ // query.componentType = value
|
|
|
|
+ // var arr = item.children
|
|
|
|
+ // var obj = arr.find(i=>{
|
|
|
|
+ // return i.value == path
|
|
|
|
+ // })
|
|
|
|
+ // if(obj){
|
|
|
|
+ // item.current = obj.label
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ if(path == 1){
|
|
|
|
+ this.$refs.createNoveltySearch.open()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: path
|
|
|
|
|
|
+ path: path,
|
|
|
|
+ query:query
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//清空密码表单数据
|
|
//清空密码表单数据
|
|
@@ -299,6 +357,12 @@ export default {
|
|
case 'indicia':
|
|
case 'indicia':
|
|
this.indicia()
|
|
this.indicia()
|
|
break;
|
|
break;
|
|
|
|
+ case 'noveltySearchDB':
|
|
|
|
+ const router = this.$router.resolve({
|
|
|
|
+ path: '/noveltySearchDB',
|
|
|
|
+ })
|
|
|
|
+ window.open(router.href,'_blank')
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//导入导出历史
|
|
//导入导出历史
|