From e1bb0850f990a0358021d3f9597a555c575d67c5 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 10 Sep 2020 18:32:10 +0800 Subject: [PATCH] 2020/09/10 18:31 --- src/components/order-list/order-list-cell.vue | 74 +++++++++++++++---- src/pages/user/order/order_detail.vue | 26 ++++++- 2 files changed, 83 insertions(+), 17 deletions(-) diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue index c934464..d082689 100644 --- a/src/components/order-list/order-list-cell.vue +++ b/src/components/order-list/order-list-cell.vue @@ -41,21 +41,49 @@
-
规格:日访问次数:{{ cellItem.spec_svc_count }}次,日访问量:{{ cellItem.spec_svc_pv }}
+ +
规格:日访问次数:{{cellItem.spec_svc_count}}次,日访问量:{{cellItem.spec_svc_pv }}
+
规格:日访问次数:{{ cellItem.spec_svc_count }}次,日访问量:{{ cellItem.spec_svc_pv }}
+
申请方式:{{ cellItem.duration_unit == 1 ? $t('lang.by_month') : $t('lang.by_year') }}
-
规格:{{ cellItem.spec_app == 0 ? "申请获取应用镜像部署权限" : "申请获取应用镜像开发权限" }}
+ +
{{ cellItem.spec_app == 0 ? '规格:申请获取应用镜像部署权限' : '规格:申请获取应用镜像开发权限' }}
+
规格:{{ cellItem.spec_app == 0 ? "申请获取应用镜像部署权限" : "申请获取应用镜像开发权限" }}
+
-
- 规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个; - 数据盘 {{ cellItem.disk_num }}块,每块数据盘容量 {{ cellItem.disk_cap }}GB -
+ +
规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个;数据盘 {{ cellItem.disk_num }}块,每块数据盘容量 {{ cellItem.disk_cap }}GB
+
+ 规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个; + 数据盘 {{ cellItem.disk_num }}块,每块数据盘容量 {{ cellItem.disk_cap }}GB +
+
+ +
规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个;{{ thisDisks }}
+
+ 规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个; + {{ thisDisks }} +
+
单个容器组:CPU最高 {{ cellItem.one_cpu_max }}核,默认 {{ cellItem.one_cpu_min }}核;内存最高 {{ cellItem.one_memory_max }}GB,默认 {{ cellItem.one_memory_min }}GB
@@ -137,11 +165,7 @@
服务评分:
- +
评价详情:
{{ message.content }}
@@ -176,8 +200,19 @@ export default { cellItem: { handler() { this.showMsgBox = false; + }, + }, + }, + computed: { + thisDisks() { + let strings = ""; + if (this.cellItem.adjust_disk) { + this.cellItem.adjust_disk.forEach((item) => { + strings += `数据盘 ${item.disk_num}块,每块数据盘容量 ${item.disk_cap}GB;`; + }); } - } + return strings; + }, }, methods: { addEvaluation() { @@ -523,6 +558,17 @@ export default { /* margin-left: 20px; */ color: #242c43; } +.specification_item { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; +} +.gg { + max-width: 200px; + word-wrap: break-word; +}