提交 ddff29ea authored 作者: 闫鹏's avatar 闫鹏

合并分支 'yp-dev' 到 'pre'

Yp dev 查看合并请求 !346
流水线 #486 已通过 于阶段
in 4 分 13 秒
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<template #default="{ row }"> <template #default="{ row }">
<div class="entity-name-cell"> <div class="entity-name-cell">
<el-avatar class="avatar" :size="24" :src="row.avatar || defaultIcon" /> <el-avatar class="avatar" :size="24" :src="row.avatar || defaultIcon" />
<div class="name" :title="row.name">{{ row.name }}</div> <div class="name" @click="handleCompClick(row)" :title="row.name">{{ row.name }}</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -81,6 +81,8 @@ ...@@ -81,6 +81,8 @@
import { ref, defineProps, defineEmits, computed, watch } from "vue"; import { ref, defineProps, defineEmits, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue"; import { Close } from "@element-plus/icons-vue";
import defaultIcon from "@/assets/icons/default-icon1.png"; import defaultIcon from "@/assets/icons/default-icon1.png";
import { useGotoCompanyPages } from "@/router/modules/company";
const gotoCompanyPages = useGotoCompanyPages();
const props = defineProps({ const props = defineProps({
modelValue: { modelValue: {
...@@ -118,9 +120,9 @@ const tableData = computed(() => { ...@@ -118,9 +120,9 @@ const tableData = computed(() => {
...item, ...item,
name: item.orgName, name: item.orgName,
domains: item.techDomains || [], domains: item.techDomains || [],
equityRatio: item.equityRatio ? (item.equityRatio * 100).toFixed(2) + '%' : '--', equityRatio: item.equityRatio ? (item.equityRatio * 100).toFixed(2) + "%" : "--",
location: '--', location: "--",
revenue: item.revenue || '--' revenue: item.revenue || "--"
})); }));
}); });
...@@ -149,6 +151,13 @@ const getTagStyle = tag => { ...@@ -149,6 +151,13 @@ const getTagStyle = tag => {
const index = Math.abs(hash) % colorPool.length; const index = Math.abs(hash) % colorPool.length;
return colorPool[index]; return colorPool[index];
}; };
// 跳转公司详情页
const handleCompClick = item => {
console.log("item", item);
window.sessionStorage.setItem("curTabName", item.name || item.orgName);
gotoCompanyPages(item.id);
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -260,6 +269,7 @@ const getTagStyle = tag => { ...@@ -260,6 +269,7 @@ const getTagStyle = tag => {
.entity-name-cell { .entity-name-cell {
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer;
.avatar { .avatar {
flex: 0 0 24px; flex: 0 0 24px;
margin-right: 9px; margin-right: 9px;
...@@ -347,4 +357,4 @@ const getTagStyle = tag => { ...@@ -347,4 +357,4 @@ const getTagStyle = tag => {
} }
} }
} }
</style> </style>
\ No newline at end of file
...@@ -355,7 +355,7 @@ const getSanctionOverviewList = async () => { ...@@ -355,7 +355,7 @@ const getSanctionOverviewList = async () => {
// 单次制裁-制裁概况-制裁背景 // 单次制裁-制裁概况-制裁背景
const timelinePage = ref(1); const timelinePage = ref(1);
const timelinePageSize = ref(3); const timelinePageSize = ref(5);
const hasMore = ref(true); const hasMore = ref(true);
const getSanctionBackground = async (isLoadMore = false) => { const getSanctionBackground = async (isLoadMore = false) => {
...@@ -757,7 +757,7 @@ onMounted(() => { ...@@ -757,7 +757,7 @@ onMounted(() => {
.left-bottom-content { .left-bottom-content {
padding: 20px 25px 0 25px; padding: 20px 25px 0 25px;
height: calc(100% - 45px); // 减去标题高度 height: calc(100% - 20px); // 减去标题高度
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论