|
@@ -5,10 +5,10 @@
|
|
|
<div class="list_title">
|
|
|
<div class="title">{{ $t("nav.Overview") }}</div>
|
|
|
<div class="keyword_box">
|
|
|
- <el-input placeholder="请输入内容" v-model="keyword" class="input-with-select">
|
|
|
+ <el-input placeholder="Antibody" v-model="keyword" class="input-with-select">
|
|
|
<el-button class="but_search" slot="append" icon="el-icon-search" @click="search"></el-button>
|
|
|
</el-input>
|
|
|
- <el-button class="buttom_box" @click="reset">{{ $t("nav.reset") }}</el-button>
|
|
|
+ <el-button class="buttom_box" icon="el-icon-refresh" @click="reset">{{ $t("nav.reset") }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="list_box">
|
|
@@ -33,7 +33,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <div class="title_box" v-if="issshow">{{ $t("nav.other") }}{{ $t("nav.Overview") }}</div>
|
|
|
+ <div class="title_box" v-if="issshow">{{ $t("nav.other") }} {{ $t("nav.Overview") }}</div>
|
|
|
<div class="list">
|
|
|
<el-row :gutter="10" style="width: 100%;">
|
|
|
<el-col :span="4" v-for="(one, i) in otherList" :ref="'bt' + one.id" :key="one.id">
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
},
|
|
|
// 搜索
|
|
|
isBlockInArray(block, array) {
|
|
|
- return array.some(b => b.catalog === block.catalog || b.name === block.name);
|
|
|
+ return array.some(b => b.catalog === block.catalog || b.name === block.name || b.target === block.target || b.moa === block.moa);
|
|
|
},
|
|
|
search() {
|
|
|
const keyword = this.keyword.trim().toLowerCase();
|
|
@@ -109,8 +109,9 @@ export default {
|
|
|
this.issshow = true
|
|
|
if (keyword === "") return;
|
|
|
let matchCount = 0;
|
|
|
+ // 搜索条件 name,catalog, target, moa
|
|
|
this.overView.forEach(block => {
|
|
|
- if (block.name.toLowerCase().includes(keyword.toLowerCase()) || block.catalog.toLowerCase().includes(keyword.toLowerCase())) {
|
|
|
+ if (block.name.toLowerCase().includes(keyword.toLowerCase()) || block.catalog.toLowerCase().includes(keyword.toLowerCase()) || block.target.toLowerCase().includes(keyword.toLowerCase()) || block.moa.toLowerCase().includes(keyword.toLowerCase())) {
|
|
|
if (block.isSliding) return;
|
|
|
setTimeout(() => {
|
|
|
block.isSliding = true;
|
|
@@ -156,17 +157,22 @@ export default {
|
|
|
.box {
|
|
|
.content_box {
|
|
|
width: 1200px;
|
|
|
- margin: 30px auto 0;
|
|
|
+ margin: auto;
|
|
|
}
|
|
|
|
|
|
.list_title {
|
|
|
// width: 1200px;
|
|
|
// margin: 30px auto 0;
|
|
|
+ padding-top: 30px;
|
|
|
+ padding-bottom: 30px;
|
|
|
font-size: 18px;
|
|
|
font-weight: 600;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+ background-color: #fff;
|
|
|
+ position: sticky;
|
|
|
+ top: 0;
|
|
|
+ z-index: 999;;
|
|
|
.keyword_box {
|
|
|
width: 50%;
|
|
|
display: flex;
|
|
@@ -203,10 +209,13 @@ export default {
|
|
|
|
|
|
.list_box {
|
|
|
width: 1200px;
|
|
|
- margin: 30px auto 90px;
|
|
|
+ margin: 0 auto 90px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
+ // max-height: 600px;
|
|
|
+ // overflow-y: auto;
|
|
|
+ // overflow-x: hidden;
|
|
|
}
|
|
|
|
|
|
.title_box {
|
|
@@ -297,4 +306,13 @@ export default {
|
|
|
opacity: 0.8;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+// 滚动条样式
|
|
|
+::-webkit-scrollbar {
|
|
|
+ width: 4px;
|
|
|
+ background-color: #B6D1E6;
|
|
|
+}
|
|
|
+::-webkit-scrollbar-thumb {
|
|
|
+ border-radius: 5px;
|
|
|
+ background-color: #0B72C1;
|
|
|
+}
|
|
|
+</style>
|