From fdd9024ec01ae5aaf10dddab801f0cc1aeb5cb88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Thu, 24 Feb 2022 19:08:20 +0800 Subject: [PATCH] add tooltip --- src/components/service-info/app-info.vue | 45 +++++++++++--- src/components/service-info/service-info.vue | 65 +++++++++++++++++--- 2 files changed, 95 insertions(+), 15 deletions(-) diff --git a/src/components/service-info/app-info.vue b/src/components/service-info/app-info.vue index cacaea0..dd87ad2 100644 --- a/src/components/service-info/app-info.vue +++ b/src/components/service-info/app-info.vue @@ -35,17 +35,45 @@
- 部署来源:{{datas.online_state_name}} - 业务领域:{{datas.ywly_name}} - 应用类型:{{datas.type_name}} + 部署来源: + + {{datas.online_state_name}} + + + 业务领域: + + {{datas.ywly_name}} + + + 应用类型: + + {{datas.type_name}} + + - 提供组织:{{datas.organization_name}} - 联系人:{{datas.username}} - 联系方式:{{datas.phone}} + 提供组织: + + {{datas.organization_name}} + + + 联系人: + + {{datas.username}} + + + 联系方式: + + {{datas.phone}} + + - 上线时间:{{helper.dateStringTransform(datas.create_date)}} + 上线时间: + + {{helper.dateStringTransform(datas.create_date)}} + +
@@ -224,6 +252,9 @@ export default { } .baseInfo_box .flex_3 td { flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .service_base_info { padding: 18px; diff --git a/src/components/service-info/service-info.vue b/src/components/service-info/service-info.vue index fa1d2e2..8039964 100644 --- a/src/components/service-info/service-info.vue +++ b/src/components/service-info/service-info.vue @@ -56,18 +56,64 @@
- 服务类型:{{baseInfo.fwlx}} - 服务领域:{{baseInfo.fwly}} - 提供组织:{{baseInfo.tgzz}} + + 服务类型: + + {{baseInfo.fwlx}} + + + + 服务领域: + + + {{baseInfo.fwly}} + + + + 提供组织: + + + {{baseInfo.tgzz}} + + - 联系人:{{baseInfo.lxr}} - 联系方式:{{baseInfo.lxfs}} - 发布时间:{{helper.dateStringTransform(baseInfo.fbsj)}} + + 联系人: + + + {{baseInfo.lxr}} + + + + 联系方式: + + + {{baseInfo.lxfs}} + + + + 发布时间: + + + {{helper.dateStringTransform(baseInfo.fbsj)}} + + - 最近更新时间:{{helper.dateStringTransform(baseInfo.zjgxsj)}} - 服务描述:{{baseInfo.fwms}} + + 最近更新时间: + + + {{helper.dateStringTransform(baseInfo.zjgxsj)}} + + + + 服务描述: + + {{baseInfo.fwms}} + +
@@ -281,6 +327,9 @@ export default { } .baseInfo_box .flex_3 td { flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .service_base_info { padding: 18px; -- 2.26.0