Commit a3912ca2 authored by 张俊's avatar 张俊

购物车申请

parent f4066adb
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
grid: { grid: {
top: 10, top: 10,
left:10, left:10,
right:10, right:30,
bottom:30, bottom:30,
containLabel: true, containLabel: true,
}, },
......
...@@ -132,7 +132,6 @@ export default { ...@@ -132,7 +132,6 @@ export default {
data: data data: data
} }
]; ];
var options = { var options = {
title: { title: {
text: this.show_center_data ? total : "", text: this.show_center_data ? total : "",
......
...@@ -321,7 +321,7 @@ export default { ...@@ -321,7 +321,7 @@ export default {
this.service_arr[l]["size"] = this.service_arr[l]["size"] =
"规格:" + (e.spec_id == 0 ? "部署" : "开发"); "规格:" + (e.spec_id == 0 ? "部署" : "开发");
this.service_arr[l]["applytype"] = this.service_arr[l]["applytype"] =
"申请方式:" + (e.duration_unit == 1 ? "" : ""); "申请方式:" + (e.duration_method == 1 ? "" : "");
this.service_arr[l]["num"] = e.duration; this.service_arr[l]["num"] = e.duration;
this.service_arr[l]["isMg"] = false; this.service_arr[l]["isMg"] = false;
this.service_arr[l]["isapp"] = true; this.service_arr[l]["isapp"] = true;
...@@ -350,10 +350,10 @@ export default { ...@@ -350,10 +350,10 @@ export default {
} }
}); });
this.service_arr[l]["applytype"] = this.service_arr[l]["applytype"] =
"申请方式:" + (e.duration_unit == 1 ? "" : ""); "申请方式:" + (e.duration_method == 1 ? "" : "");
this.service_arr[l]["num"] = e.duration; this.service_arr[l]["num"] = e.duration;
this.service_arr[l]["isMg"] = e.service.openness == 3; this.service_arr[l]["isMg"] = e.service.openness == 3;
this.service_arr[l]["data"] = JSON.parse(e.service.res_fields); this.service_arr[l]["data"] = e.service.res_fields?JSON.parse(e.service.res_fields):'[]';
console.log(this.service_arr[l]["data"]); console.log(this.service_arr[l]["data"]);
this.service_arr[l]["isapp"] = false; this.service_arr[l]["isapp"] = false;
} }
......
...@@ -207,6 +207,14 @@ export default { ...@@ -207,6 +207,14 @@ export default {
changyaml(n){ changyaml(n){
this.now_yaml = n this.now_yaml = n
}, },
adelete(val){
this.$http
.delete(`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => {
this.$message.success('删除成功')
this.get_list_pod()
})
},
get_namespace_list(){ get_namespace_list(){
this.$http this.$http
.get(`/apaas/hubApi/market/namespaces`) .get(`/apaas/hubApi/market/namespaces`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment