|
@@ -12,7 +12,7 @@
|
|
|
<el-button size="small" @click="goBack()"><i class="iconfont icon-fanhui"></i></el-button>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip :content="isRight ? '设置菜单栏为左侧' : '设置菜单栏为右侧'" placement="top">
|
|
|
- <el-button size="small" class="articles-Loop" @click="isRight = !isRight">
|
|
|
+ <el-button size="small" class="articles-Loop" @click="setting">
|
|
|
<i class="iconfont icon-shezhi2"></i>
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
@@ -48,7 +48,7 @@
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip :content="isRight ? '设置菜单栏为左侧' : '设置菜单栏为右侧'" placement="right-end">
|
|
|
- <div class="articles-Loop" @click="isRight = !isRight">
|
|
|
+ <div class="articles-Loop" @click="setting">
|
|
|
<i class="iconfont icon-shezhi2"></i>
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
@@ -74,7 +74,7 @@
|
|
|
<el-tooltip placement="right-end">
|
|
|
<template slot="content">
|
|
|
<div>点击查看上一篇专利</div>
|
|
|
- <div>专利:{{currentLocation - 1!=0? patentList[index-1].patentNo:''}}</div>
|
|
|
+ <div>专利:{{index!=0? patentList[index-1].patentNo:''}}</div>
|
|
|
<div>数量:{{currentLocation - 1}}</div>
|
|
|
</template>
|
|
|
<div class="articles-Loop" @click="prev">
|
|
@@ -84,7 +84,7 @@
|
|
|
<el-tooltip placement="right-end">
|
|
|
<template slot="content">
|
|
|
<div>点击查看下一篇专利</div>
|
|
|
- <div>专利:{{total - currentLocation!=0? patentList[index+1].patentNo:''}}</div>
|
|
|
+ <div>专利:{{(total - currentLocation!=0 && total!=0)? patentList[index+1].patentNo:''}}</div>
|
|
|
<div>数量:{{total - currentLocation}}</div>
|
|
|
</template>
|
|
|
<div class="articles-Loop" @click="next">
|
|
@@ -115,12 +115,18 @@ export default {
|
|
|
},
|
|
|
patentNo:{
|
|
|
default:''
|
|
|
+ },
|
|
|
+ //是否在右侧
|
|
|
+ isRight:{
|
|
|
+ default:false
|
|
|
+ },
|
|
|
+ //对比
|
|
|
+ value:{
|
|
|
+ default:false
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- value:false,//对比
|
|
|
- isRight:false,//是否在右侧
|
|
|
isContract:true,//是否收缩
|
|
|
queryParams:{
|
|
|
current:1,
|
|
@@ -195,11 +201,13 @@ export default {
|
|
|
this.getPatentList()
|
|
|
},
|
|
|
goBack(){
|
|
|
-
|
|
|
+ this.$emit('event','goBack')
|
|
|
},
|
|
|
contrast(){
|
|
|
- this.value = !this.value
|
|
|
- this.$emit('contrast',this.value)
|
|
|
+ this.$emit('event','contrast')
|
|
|
+ },
|
|
|
+ setting(){
|
|
|
+ this.$emit('event','setting')
|
|
|
},
|
|
|
//上一篇
|
|
|
prev(){
|
|
@@ -225,6 +233,8 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.article_menu{
|
|
|
+ border-right:1px solid #e6e6e6;
|
|
|
+ border-left:1px solid #e6e6e6;
|
|
|
.articles-Loop-div {
|
|
|
width: 51px;
|
|
|
height: 100%;
|