diff --git a/src/components/comments-list.vue b/src/components/comments-list.vue index 9b44f0bb5b5dcb86137d72d5858e3f8bae80cc84..fd41b14a2da50e18d9e7e024120a633ab56762c6 100644 --- a/src/components/comments-list.vue +++ b/src/components/comments-list.vue @@ -20,13 +20,15 @@

-

+

diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue new file mode 100644 index 0000000000000000000000000000000000000000..3f0f3bcb27f45308571053b03e74f87f2f99d53e --- /dev/null +++ b/src/components/e-charts/bar-chart.vue @@ -0,0 +1,153 @@ + + + + \ No newline at end of file diff --git a/src/components/e-charts/commentlist.vue b/src/components/e-charts/commentlist.vue new file mode 100644 index 0000000000000000000000000000000000000000..30e7dce35e53fd097bd39acee3d890b1dfe7da65 --- /dev/null +++ b/src/components/e-charts/commentlist.vue @@ -0,0 +1,114 @@ + + + + + + + diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index b27f73a8eaefaf851efa760180563706d9ce9d30..e18ac05045700f4378ca4470d467c6d5b01ed491 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -10,14 +10,18 @@ export default { type: Object, default: () => { return { - data: 40, - text: "模拟数据1.0" + data: 0, + text: "" }; } }, dangerousValue: { type: String, default: "" + }, + is_word: { + type: Boolean, + default: false } }, data: () => ({ @@ -31,6 +35,7 @@ export default { title: [ { text: self.data.data + "{a|%}", + show: !self.is_word, x: "center", y: "center", textStyle: { @@ -47,6 +52,7 @@ export default { }, { text: self.data.text, + show: !self.is_word, x: "center", y: "58%", textStyle: { @@ -54,6 +60,53 @@ export default { fontWeight: "normal", color: "#707693" } + }, + { + text: self.data.text, + show: self.is_word, + x: "center", + y: "74%", + textStyle: { + fontSize: 14, + fontWeight: "normal", + color: "#8890a7" + } + }, + { + text: self.data.data + "%", + show: self.is_word, + x: "center", + y: "64%", + textStyle: { + fontSize: 20, + fontWeight: "normal", + color: "#242c43" + } + }, + { + text: + self.data.data > 75 + ? "优" + : self.data.data > 50 + ? "良" + : self.data.data > 25 + ? "中" + : "差", + show: self.is_word, + x: "center", + y: "40%", + textStyle: { + fontSize: 36, + fontWeight: "normal", + color: + self.data.data > 75 + ? "#00beb2" //green + : self.data.data > 50 + ? "#ff7200" //yellow + : self.data.data > 25 + ? "#da4251" //red + : "#da4251" //red + } } ], angleAxis: { @@ -110,12 +163,12 @@ export default { ? "#f7f1d5" : "#d5f7e8" : self.data.data > 75 - ? "#f7f1d5" + ? "#d5f7e8" : self.data.data > 50 ? "#ffd98f" : self.data.data > 25 - ? "#d5f7e8" - : "#d5f7e8" + ? "#f7f1d5" + : "#f7f1d5" }, { offset: 1, @@ -125,12 +178,12 @@ export default { ? "#da4251" // red : "#00beb2" //green : self.data.data > 75 - ? "#da4251" //red + ? "#00beb2" //green : self.data.data > 50 ? "#ff7200" //yellow : self.data.data > 25 - ? "#00beb2" //green - : "#00beb2" //green + ? "#da4251" //red + : "#da4251" //red } ]) } diff --git a/src/components/e-charts/starlist.vue b/src/components/e-charts/starlist.vue index 57f83de19f7075fac0eeef6e805090b29ec57259..133236f786b5af61e56dd22bf9fa3ce9d4f5fcb9 100644 --- a/src/components/e-charts/starlist.vue +++ b/src/components/e-charts/starlist.vue @@ -31,33 +31,7 @@ export default { props: { options: { type: Array, - default: () => [ - { - star: 5, - count: 5, - unit: "个", - }, - { - star: 4, - count: 4, - unit: "个", - }, - { - star: 3, - count: 3, - unit: "个", - }, - { - star: 2, - count: 10002, - unit: "个", - }, - { - star: 1, - count: 1, - unit: "个", - }, - ], + default: () => [], }, total: { type: Number, @@ -74,7 +48,6 @@ export default { diff --git a/src/components/service-list/commodity-card.vue b/src/components/service-list/commodity-card.vue index 2f265257a71a1bbfa404eb5e2b97c902cb16a1a5..4db4fe9b170218bb7e16ce94ccd4f0a9d6f90fa8 100644 --- a/src/components/service-list/commodity-card.vue +++ b/src/components/service-list/commodity-card.vue @@ -2,7 +2,7 @@
diff --git a/src/components/service-list/service_list.vue b/src/components/service-list/service_list.vue index 01f774c2faa55603f41f8a1772679d283ea12bc0..8d312b26d810373e452d006f36988ae9a807d26c 100644 --- a/src/components/service-list/service_list.vue +++ b/src/components/service-list/service_list.vue @@ -475,8 +475,8 @@ export default { getAppArea() { this.$api.serviceShop.getAppArea().then(response => { if (response.data.success == 1) { - this.filterLists[1].childDomains = response.data.data; - this.refresh_app_1 = true; + this.filterLists[2].childDomains = response.data.data; + this.refresh_app_2 = true; } else { console.log(response.data.errMsg); } @@ -485,8 +485,8 @@ export default { getAppType() { this.$api.serviceShop.getAppType().then(response => { if (response.data.success == 1) { - this.filterLists[2].childDomains = response.data.data; - this.refresh_app_2 = true; + this.filterLists[1].childDomains = response.data.data; + this.refresh_app_1 = true; } else { console.log(response.data.errMsg); } diff --git a/src/components/table/table-filter.vue b/src/components/table/table-filter.vue index fd56236528c47604c1e4561ebe705dfec6e252fc..2a04fdde1072d5590cb5488767030c1d7cd6a0d8 100644 --- a/src/components/table/table-filter.vue +++ b/src/components/table/table-filter.vue @@ -18,11 +18,19 @@ 'margin-top': i < filterLength ? '0' : '10px', }" > - + + +
- {{ $t("lang.dataAnalysis") }} - {{ $t("lang.myServiceDataAnalysis") }} + {{ + $t("lang.dataAnalysis") + }} + {{ + $t("lang.myServiceDataAnalysis") + }} - -
- + +
+
+ +
服务总数
+
2222
+
+ +
- + + + + - + + +
- + - - - + - + @@ -44,29 +73,61 @@ - - + + + + + - - + + + - + + + - +
@@ -76,11 +137,13 @@ \ No newline at end of file +.block-radius-content { + height: calc(100% - 36px); + margin-top: 15px; +} + diff --git a/src/pages/workbench/yygl/yyglList.vue b/src/pages/workbench/yygl/yyglList.vue index 797b2fffd3c8c309e2561fdc5297668d5e8f20d6..837345f9b847757380bdd9761fb348220f69aee7 100644 --- a/src/pages/workbench/yygl/yyglList.vue +++ b/src/pages/workbench/yygl/yyglList.vue @@ -166,12 +166,16 @@ export default { data: [ { name: "平台应用", - value: 0, + value: 2, }, { name: "开发者应用", value: 1, }, + { + name: "未上架", + value: 0, + }, ], }, ]; @@ -1019,7 +1023,7 @@ export default { }, ].concat( (response.body.data || []).map((v) => ({ - name: v.text, + name: v.value, value: v.value, })) ); @@ -1145,7 +1149,11 @@ export default { this.dialogInfo.sunbmitText = ""; this.dialogInfo.submit = () => { this.$http - .delete(`/apaas/hubApi/market/del/${item.app_id}`) + .delete(`/apaas/hubApi/market/del/${item.app_id}`, { + params: { + apply_id: item.apply_id, + }, + }) .then(({ data }) => { if (data.success) { this.$message({ diff --git a/src/request/api/workbench.js b/src/request/api/workbench.js index 591e9976425c13fafbbfa5222c4ffab57b9bd473..1a11cc40ec889b97803ce986c172a5f59fdcd375 100644 --- a/src/request/api/workbench.js +++ b/src/request/api/workbench.js @@ -55,7 +55,7 @@ const workbench = { // get service topology getServiceTopology() { - return axios.get(`/awecloud/meshgraph/api/namespaces/graph?duration=60s&graphType=service&injectServiceNodes=false&appenders=deadNode,sidecarsCheck,serviceEntry,istio&namespaces=apaas-proxy`) + return axios.get(`/apaas/istio/v3/api/namespaces/graph`) }, }