|
@@ -53,7 +53,7 @@
|
|
|
<el-col :span="24" class="one">
|
|
|
<el-row class="one_1">
|
|
|
<el-col :span="3" class="left">技术领域</el-col>
|
|
|
- <el-col :span="21" class="right">
|
|
|
+ <el-col :span="20" class="right" v-if="oneShow">
|
|
|
<a-button
|
|
|
class="title"
|
|
|
v-for="(item, index) in fieldList"
|
|
@@ -66,6 +66,29 @@
|
|
|
{{ item.label }}
|
|
|
</a-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="20" class="right" v-else>
|
|
|
+ <a-button
|
|
|
+ class="title"
|
|
|
+ v-for="(item, index) in fieldList.slice(0, 8)"
|
|
|
+ :key="index"
|
|
|
+ type="link"
|
|
|
+ size="samll"
|
|
|
+ @click="toSelect(item, 'one')"
|
|
|
+ :class="[item.is_active ? 'show' : '']"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </a-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" class="button">
|
|
|
+ <span v-if="!oneShow" @click="oneShow = true">
|
|
|
+ 更多
|
|
|
+ <el-icon><ArrowDown /></el-icon>
|
|
|
+ </span>
|
|
|
+ <span v-else @click="oneShow = false">
|
|
|
+ 收起
|
|
|
+ <el-icon><ArrowUp /></el-icon>
|
|
|
+ </span>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row class="one_1">
|
|
|
<el-col :span="3" class="left">合作类型</el-col>
|
|
@@ -85,7 +108,7 @@
|
|
|
</el-row>
|
|
|
<el-row class="one_1">
|
|
|
<el-col :span="3" class="left">项目地区</el-col>
|
|
|
- <el-col :span="21" class="right">
|
|
|
+ <el-col :span="20" class="right" v-if="twoShow">
|
|
|
<a-button
|
|
|
class="title"
|
|
|
v-for="(item, index) in cityList"
|
|
@@ -98,6 +121,29 @@
|
|
|
{{ item.label }}
|
|
|
</a-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="20" class="right" v-else>
|
|
|
+ <a-button
|
|
|
+ class="title"
|
|
|
+ v-for="(item, index) in cityList.slice(0, 10)"
|
|
|
+ :key="index"
|
|
|
+ type="link"
|
|
|
+ size="samll"
|
|
|
+ @click="toSelect(item, 'thr')"
|
|
|
+ :class="[item.is_active ? 'show' : '']"
|
|
|
+ >
|
|
|
+ {{ item.label }}
|
|
|
+ </a-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" class="button">
|
|
|
+ <span v-if="!twoShow" @click="twoShow = true">
|
|
|
+ 更多
|
|
|
+ <el-icon><ArrowDown /></el-icon>
|
|
|
+ </span>
|
|
|
+ <span v-else @click="twoShow = false">
|
|
|
+ 收起
|
|
|
+ <el-icon><ArrowUp /></el-icon>
|
|
|
+ </span>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-row class="one_1">
|
|
|
<el-col :span="3" class="left">成熟度</el-col>
|
|
@@ -193,6 +239,9 @@ const oneList = ref([])
|
|
|
const twoList = ref([])
|
|
|
const thrList = ref([])
|
|
|
const fourList = ref([])
|
|
|
+// 是否展开
|
|
|
+const oneShow = ref(false)
|
|
|
+const twoShow = ref(false)
|
|
|
// 查看
|
|
|
const toView = (item) => {
|
|
|
router.push({ path: '/project/detail', query: { id: item.id || item._id } })
|
|
@@ -415,6 +464,10 @@ const sizeChange = (limits) => {
|
|
|
color: #2374ff;
|
|
|
}
|
|
|
}
|
|
|
+ .button {
|
|
|
+ color: #2374ff;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|