diff --git a/src/assets/imgs/img_yunziyuan.png b/src/assets/imgs/img_yunziyuan.png new file mode 100644 index 0000000000000000000000000000000000000000..5ee2239ae988d863dec2cefddc447f16ab10c6d7 Binary files /dev/null and b/src/assets/imgs/img_yunziyuan.png differ diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index a871b6104abad594507d654b12496c9a76fa56f8..405facfdc7678cf0c0072c1291b141b7b0c0f3b1 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -101,18 +101,24 @@ export default { roundCap: true, itemStyle: { normal: { - color: - self.dangerousValue == "high" - ? self.data.data >= 80 - ? "#e15260" - : "#515fe7" - : self.data.data > 75 - ? "#00cfc6" - : self.data.data > 50 - ? "#54cefd" - : self.data.data > 25 - ? "#54cefd" - : "#25bdb1" + color: new graphic.LinearGradient(0, 0, 1, 0, [ + { offset: 0, color: "#fff" }, + { + offset: 1, + color: + self.dangerousValue == "high" + ? self.data.data >= 80 + ? "#e15260" + : "#515fe7" + : self.data.data > 75 + ? "#00cfc6" + : self.data.data > 50 + ? "#54cefd" + : self.data.data > 25 + ? "#54cefd" + : "#25bdb1" + } + ]) } }, barGap: "-100%" diff --git a/src/components/order-list/order-list-cell.vue b/src/components/order-list/order-list-cell.vue index 6dc35770f3d766fc07bff93a31847ad4202fd963..6925cb3c1237dd9162c5c877232a09a93839899a 100644 --- a/src/components/order-list/order-list-cell.vue +++ b/src/components/order-list/order-list-cell.vue @@ -7,18 +7,31 @@ - + +
-
+
{{ cellItem.name }} mapService 共享 受限 敏感
+
+ 云资源申请 +
-
{{ cellItem.sector }}
-
{{ cellItem.src_organization }}
+
{{ cellItem.order_type != 3 ? cellItem.sector : cellItem.namespace }}
+
{{ cellItem.src_organization }}
+
{{ cellItem.apply_type == 0 ? "申请新的工作区域" : "升级现有工作区域" }}
@@ -33,8 +46,13 @@
规格:{{ cellItem.spec_app == 0 ? "申请获取应用镜像部署权限" : "申请获取应用镜像开发权限" }}
-
规格:CPU 2核,内存 4GB,容器组 8个;数据盘 3块,每块数据盘容量 2GB
-
单个容器组:CPU最高 4核,默认 2核;内存最高 8 GB,默认 4GB
+
+ 规格:CPU {{ cellItem.cpu }}核,内存 {{ cellItem.memory }}GB,容器组 {{ cellItem.containers }}个; + {{ cellItem.disk_num }}数据盘 {{ cellItem.disk_num }}块,每块数据盘容量 {{ cellItem.disk_cap }}GB +
+
单个容器组:CPU最高 {{ cellItem.one_cpu_max }}核,默认 {{ cellItem.one_cpu_min }}核;内存最高 {{ cellItem.one_memory_max }}GB,默认 {{ cellItem.one_memory_min }}GB
@@ -93,7 +111,7 @@ class="cell_option_btn" @click="viewDetail(cellItem.order_id)" >查看详情 -
再次申请
+
再次申请
@@ -220,6 +238,10 @@ export default { duration: this.cellItem.duration, duration_unit: this.cellItem.duration_unit }; + this.$router.push({ + path: "/shop/shop_car_apply", + query: query + }); } else if (this.cellItem.order_type == 2) { query = { app_id: parseFloat(this.cellItem.app_id), @@ -227,11 +249,15 @@ export default { duration: this.cellItem.duration, duration_unit: this.cellItem.duration_unit }; + this.$router.push({ + path: "/shop/shop_car_apply", + query: query + }); + } else if (this.cellItem.order_type == 2) { + this.$router.push({ + path: "/shop/shop_cloud" + }); } - this.$router.push({ - path: "/shop/shop_car_apply", - query: query - }); }, getMessage() { if (this.cellItem.order_type == 1) { @@ -310,6 +336,7 @@ export default { width: 118px; height: 118px; border-radius: 8px; + border: 3px #f4f7fc solid; } .cell_msg_right { width: calc(100% - 140px); diff --git a/src/components/service-list/commodity-cell.vue b/src/components/service-list/commodity-cell.vue index 51bca55968fae2c72cf7a1f1631f221794ddfbdc..0a0d03a353046d2cab13bd49c47c1c0edc12e368 100644 --- a/src/components/service-list/commodity-cell.vue +++ b/src/components/service-list/commodity-cell.vue @@ -30,7 +30,7 @@ 服务类型: {{ cellData.data_service_type1_name }}  {{ cellData.data_service_type2_str }}  {{ cellData.data_service_type3_str }} + >{{ cellData.data_service_type1_name }}  {{ cellData.data_service_type2_name }}  {{ cellData.data_service_type3_name }}
更新时间: @@ -89,6 +89,7 @@ export default { height: 166px; border-radius: 12px; overflow: hidden; + border: 4px #f4f7fc solid; } .com_cell_img { width: 100%; @@ -100,12 +101,13 @@ export default { } .com_cell_msg_title { color: #0d1847; - font-size: 22px; + font-size: 18px; + line-height: 30px; font-weight: 700; margin-bottom: 6px; } .com_cell_item { - font-size: 16px; + font-size: 14px; line-height: 26px; margin-top: 1px; color: #8890a7; @@ -124,12 +126,12 @@ export default { white-space: nowrap; } .com_cell_right { - width: 250px; + width: 300px; padding: 25px 0 0 50px; } .com_cell_right_text { - font-size: 14px; - margin-top: 15px; + font-size: 16px; + margin-top: 25px; } .com_cell_right_time_tit { color: #8890a7; @@ -140,10 +142,10 @@ export default { .com_cell_right_btn { background-color: #0f2683; color: #f8f9fd; - width: 160px; + width: 220px; height: 40px; border-radius: 20px; - margin-top: 35px; + margin-top: 25px; } .tags { display: inline-block; @@ -181,10 +183,10 @@ export default { .com_cell_right .el-rate__text { display: inline-block; margin-left: 10px; - font-size: 22px; + font-size: 32px; font-weight: 700; } .com_cell_right .el-rate__icon { - font-size: 20px; + font-size: 28px; } \ No newline at end of file diff --git a/src/components/service-list/service_list.vue b/src/components/service-list/service_list.vue index d949403a70b7225b06eb04877a14184d825f03e3..01f774c2faa55603f41f8a1772679d283ea12bc0 100644 --- a/src/components/service-list/service_list.vue +++ b/src/components/service-list/service_list.vue @@ -223,7 +223,11 @@ export default { time_app: null, times: null }), - mounted() {}, + mounted() { + window.onresize = () => { + this.judgeHeight(); + }; + }, watch: { urlFilter: { handler(val) { @@ -335,7 +339,7 @@ export default { this.time_app = setInterval(() => { if (this.refresh_app_1 && this.refresh_app_2 && this.refresh_app_3) { this.judgeHeight(); - clearInterval(this.time_app) + clearInterval(this.time_app); } }, 50); } else { @@ -377,7 +381,7 @@ export default { } } } - this.$set((this.filterLists = list)); + this.filterLists = [...list]; }, clickOpen(index) { let list = this.openList; diff --git a/src/components/shop-cloud/shop-cloud.vue b/src/components/shop-cloud/shop-cloud.vue index eab3719f63626a83959e498262fccda7276f0103..d69938bc34cf2ae746b5373f0fcb0ef6363e65dc 100644 --- a/src/components/shop-cloud/shop-cloud.vue +++ b/src/components/shop-cloud/shop-cloud.vue @@ -104,30 +104,42 @@
+ + +
数据盘(可选):
+ + + +
+
-
数据盘(可选):
-
每块数据盘容量:
GB
+
单个容器组规格
@@ -330,24 +342,37 @@ > + + +
增加数据盘:
+ + + +
+
-
增加数据盘:
-
每块数据盘容量:
GB
@@ -562,12 +587,16 @@ 容器组: {{ diaForm.containerGroup }}个
-
+
数据盘: {{ diaForm.dataDisk }}块,每块{{ diaForm.perDataDisk }}GB
+
+ 数据盘类型: + {{ diaForm.store_type }} +
单个容器组规格:
@@ -753,7 +782,8 @@ export default { appDuration: undefined, durType: 1, apply_file: "", - apply_file_name: "" + apply_file_name: "", + store_type: "nfs-client" }, ruleNew: { namespace: [ @@ -803,6 +833,10 @@ export default { { value: "16", label: "16" }, { value: "32", label: "32" } ], + options_store_type: [ + { value: "nfs-client", label: "nfs-client" }, + { value: "rook-ceph-block", label: "rook-ceph-block" } + ], formShow: false, specArr: [ { title: "CPU", val: "4", src: "ic_CPU" }, @@ -834,23 +868,10 @@ export default { appDuration: undefined, durType: 1, apply_file: "", - apply_file_name: "" - }, - paramsOld: { - cpu: "", - memory: "", - containerGroup: undefined, - dataDisk: undefined, - perDataDisk: undefined, - perCPUs: undefined, - perCPU: undefined, - perRAMs: undefined, - perRAM: undefined, - appDuration: undefined, - durType: 1, - apply_file: "", - apply_file_name: "" + apply_file_name: "", + store_type: "nfs-client" }, + paramsOld: {}, ruleOld: { namespace: [ { required: true, message: "请输入工作区域名称", trigger: "blur" } @@ -944,7 +965,8 @@ export default { this.formOld.perCPU = paramsOld.one_cpu_min; this.formOld.perRAMs = paramsOld.one_memory_max; this.formOld.perRAM = paramsOld.one_memory_min; - this.dataDiskList = paramsOld.disk_list; + this.formOld.store_type = paramsOld.store_type; + this.dataDiskList = paramsOld.disk_list || []; this.formShow = true; } else { this.formShow = false; @@ -999,7 +1021,14 @@ export default { one_cpu_max: this.formNew.perCPUs, one_memory_min: this.formNew.perRAM, one_memory_max: this.formNew.perRAMs - } + }, + disks: [ + { + disk_num: this.formOld.dataDisk, + disk_cap: this.formOld.perDataDisk, + store_type: this.formOld.store_type + } + ] }; this.$api.serviceShop.applicationCloud(query).then(response => { console.log(response); @@ -1016,13 +1045,18 @@ export default { apply_connect_mobile: this.form.phone, memory: Number(this.formOld.memory), containers: this.formOld.containerGroup, - disk_num: this.formOld.dataDisk, - disk_cap: this.formOld.perDataDisk, one_cpu_min: this.formOld.perCPU, one_cpu_max: this.formOld.perCPUs, one_memory_min: this.formOld.perRAM, one_memory_max: this.formOld.perRAMs - } + }, + disks: [ + { + disk_num: this.formOld.dataDisk, + disk_cap: this.formOld.perDataDisk, + store_type: this.formOld.store_type + } + ] }; this.$api.serviceShop.updateCloud(query).then(response => { console.log(response); diff --git a/src/pages/user/order/order_detail.vue b/src/pages/user/order/order_detail.vue index 66bc7ffe1b4f9b79215465c944b81e7bf28a8186..fdfd177ec4e0bbd7a7b2af00cb9134a658f0634c 100644 --- a/src/pages/user/order/order_detail.vue +++ b/src/pages/user/order/order_detail.vue @@ -10,22 +10,22 @@

申请状态

待审核

审核中

审核通过

审核未通过

-

订单已取消

+

订单已取消

订单编号

@@ -118,10 +118,10 @@
- +
- {{ orderDetail.name }} + {{ orderDetail.namespace }}(云资源申请)
@@ -195,7 +195,9 @@
数据盘: - {{ orderDetail.disk_num}}块,每块{{orderDetail.disk_cap }}GB + {{ orderDetail.disk_num}}块,每块{{orderDetail.disk_cap }}GB
单个容器组规格: @@ -222,7 +224,7 @@
申请人信息
- + @@ -506,9 +508,18 @@ export default { line-height: 28px; color: #242c43; } -.blue { +.text_blue { color: #515fe7; } +.text_yellow { + color: #ef9433; +} +.text_blackblue { + color: #242c43; +} +.text_red { + color: #e15260; +} .btn_group { position: absolute; right: 20px; @@ -579,6 +590,7 @@ export default { width: 118px; height: 118px; border-radius: 8px; + border: 3px #f4f7fc solid; } .detail_service_msg_right { width: calc(100% - 140px); diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index a046df283d1ee79d3d5eb45e366ed0cfb0424562..2cf05a7a2595ac82295a98ac1b4cc6e6f23fd5b7 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -288,6 +288,7 @@ export default { : this.user_data.userType == 3 ? "普通用户" : "普通用户开发者"; + this.imgList = []; this.imgList.push(data.picture_path); this.formBusiness.businessSystemName = data.system_name; this.formBusiness.domainName = data.domain_name; diff --git a/src/pages/workbench/fwgl/cloud-detail.vue b/src/pages/workbench/fwgl/cloud-detail.vue index 87c9f4552f71b7896a21db9aefc530c70a82844f..5fe557b487f1803cbe64f8d96004e20aaeba8bac 100644 --- a/src/pages/workbench/fwgl/cloud-detail.vue +++ b/src/pages/workbench/fwgl/cloud-detail.vue @@ -1,4 +1,11 @@