|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <el-card class="h-[850px] w-full min-w-0">
|
|
|
+ <el-card class="h-[850px] w-full min-w-0 relative">
|
|
|
<div
|
|
|
class="relative overflow-hidden rounded-md mb-3 h-36 bg-cover bg-center"
|
|
|
:style="{ backgroundImage: `url(${bg})` }"
|
|
|
@@ -22,11 +22,24 @@
|
|
|
:key="idx"
|
|
|
:name="String(idx)"
|
|
|
:title="i.label"
|
|
|
+ class="no-border-collapse-item"
|
|
|
>
|
|
|
<div class="text-[#606266]">{{ i.label }}</div>
|
|
|
+
|
|
|
+ <!-- 添加查看按钮 -->
|
|
|
+ <div class="mt-3">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="handleView(i)"
|
|
|
+ class="bg-[#02409b]! border-none! w-20! rounded-none!"
|
|
|
+ >
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
<template #title>
|
|
|
- <div class="flex items-center min-w-0 flex-1">
|
|
|
- <span class="truncate">{{ i.label }}</span>
|
|
|
+ <div class="flex items-center min-w-0 flex-1 collapse-title">
|
|
|
+ <span class="truncate text-sm font-bold">{{ i.label }}</span>
|
|
|
<el-tag
|
|
|
v-if="i.tag"
|
|
|
size="small"
|
|
|
@@ -39,12 +52,18 @@
|
|
|
</template>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="absolute bottom-0 left-0 w-full h-36 bg-contain bg-center no-repeat"
|
|
|
+ :style="{ backgroundImage: `url(${bg2[0]})` }"
|
|
|
+ ></div>
|
|
|
</el-card>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref } from "vue";
|
|
|
import { useRouter } from "vue-router";
|
|
|
+import { motion } from "motion-v";
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
@@ -55,7 +74,7 @@ const props = defineProps<{
|
|
|
desc: string;
|
|
|
items: Item[];
|
|
|
bg: string;
|
|
|
-
|
|
|
+ bg2: string[];
|
|
|
id: string;
|
|
|
}>();
|
|
|
|
|
|
@@ -70,6 +89,25 @@ const goDetail = () => {
|
|
|
router.push({ path: "/chatbi" });
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+// 处理查看按钮点击事件
|
|
|
+const handleView = (item: Item) => {
|
|
|
+ console.log("查看", item);
|
|
|
+ // 如果有自定义路径,则跳转到指定路径
|
|
|
+
|
|
|
+ if (item.label === "OA办公系统") {
|
|
|
+ window.open("https://yfoa.keruioil.com", "_blank");
|
|
|
+ }
|
|
|
+ if (item.label === "设备管理系统 (PMS)") {
|
|
|
+ window.open("https://aims.deepoil.cc", "_blank");
|
|
|
+ }
|
|
|
+ if (item.label === "中航北斗智慧管理系统") {
|
|
|
+ window.open("https://zhbdgps.cn", "_blank");
|
|
|
+ }
|
|
|
+ if (item.label === "客户管理(CRM)") {
|
|
|
+ window.open("https://www.xiaoshouyi.com/sfa", "_blank");
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
@@ -100,12 +138,22 @@ const goDetail = () => {
|
|
|
width: 100%;
|
|
|
min-width: 0;
|
|
|
overflow: hidden;
|
|
|
+ border-bottom: none !important;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-collapse-item):last-child .el-collapse-item__header {
|
|
|
+ border-bottom: none !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-collapse-item) .el-collapse-item__wrap {
|
|
|
padding: 0 12px 10px;
|
|
|
width: 100%;
|
|
|
min-width: 0;
|
|
|
+ border-bottom: none !important;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-collapse-item):last-child .el-collapse-item__wrap {
|
|
|
+ border-bottom: none !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-collapse-item__content) {
|
|
|
@@ -114,4 +162,15 @@ const goDetail = () => {
|
|
|
overflow: hidden;
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
+
|
|
|
+/* 折叠项标题样式 */
|
|
|
+.collapse-title {
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.collapse-title:hover {
|
|
|
+ color: #02409b;
|
|
|
+ transition: all 0.3s ease;
|
|
|
+}
|
|
|
</style>
|