Commit 5a27e33d authored by 刘殿昕's avatar 刘殿昕

fixed

parent 84e12efc
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
} }
if (this.datas) { if (this.datas) {
let obj = ""; let obj = "";
console.log(typeof JSON.parse(this.datas)); // console.log(typeof JSON.parse(this.datas));
try { try {
if (typeof JSON.parse(this.datas) == "object") { if (typeof JSON.parse(this.datas) == "object") {
obj = JSON.stringify(JSON.parse(this.datas), null, "\t"); obj = JSON.stringify(JSON.parse(this.datas), null, "\t");
......
...@@ -497,7 +497,7 @@ export default { ...@@ -497,7 +497,7 @@ export default {
this.backPage(); this.backPage();
this.$message.success("新增成功"); this.$message.success("新增成功");
} else { } else {
this.$message.error("新增失败"); this.$message.error(response.data.errMsg);
} }
}) })
.catch((response) => { .catch((response) => {
......
...@@ -798,12 +798,12 @@ export default { ...@@ -798,12 +798,12 @@ export default {
minWidth: "20%", minWidth: "20%",
align: "left", align: "left",
}, },
{ // {
prop: "dyr", // prop: "dyr",
label: "调用人", // label: "调用人",
width: "100px", // width: "100px",
align: "center", // align: "center",
}, // },
{ {
prop: "dyyw", prop: "dyyw",
label: "调用业务系统", label: "调用业务系统",
...@@ -816,30 +816,36 @@ export default { ...@@ -816,30 +816,36 @@ export default {
minWidth: "20%", minWidth: "20%",
align: "left", align: "left",
}, },
{ // {
prop: "cjms", // prop: "cjms",
label: "场景描述", // label: "场景描述",
minWidth: "40%", // minWidth: "40%",
align: "left", // align: "left",
}, // },
{ // {
prop: "sqgg", // prop: "sqgg",
label: "申请规格", // label: "申请规格",
minWidth: "40%", // minWidth: "40%",
align: "center", // align: "center",
}, // },
{ // {
prop: "sqsc", // prop: "sqsc",
label: "申请时长", // label: "申请时长",
minWidth: "40%", // minWidth: "40%",
align: "center", // align: "center",
}, // },
{ {
prop: "sqsj", prop: "sqsj",
label: "申请调用时间", label: "申请调用时间",
width: "160px", width: "160px",
align: "right", align: "right",
}, },
{
prop: "state",
label: "调用状态",
width: "160px",
align: "right",
},
], ],
header_gz_process_arr: [ header_gz_process_arr: [
{ {
...@@ -1778,7 +1784,7 @@ export default { ...@@ -1778,7 +1784,7 @@ export default {
this.sizeset_flag = false; this.sizeset_flag = false;
this.getsize_arr(); this.getsize_arr();
} else { } else {
this.$message.error("保存失败"); this.$message.error(response.data.errMsg);
} }
}); });
}, },
......
...@@ -893,7 +893,7 @@ export default { ...@@ -893,7 +893,7 @@ export default {
pic: require("@/assets/imgs/ic_gongzuoquyu.png"), pic: require("@/assets/imgs/ic_gongzuoquyu.png"),
bg: "#e7fdfc", bg: "#e7fdfc",
color: "#25bdb1", color: "#25bdb1",
type: "earnings_money", type: "workplace_count",
num: "" num: ""
} }
], ],
......
...@@ -314,7 +314,8 @@ export default { ...@@ -314,7 +314,8 @@ export default {
.get(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`) .get(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => { .then(response => {
console.log(response.data); console.log(response.data);
this.yaml_arr = yaml.stringify(response.data) this.yaml_arr = yaml.stringify(response.data);
console.log(this.yaml_arr)
this.code_arr = JSON.stringify(json.load(this.yaml_arr), null, 2); this.code_arr = JSON.stringify(json.load(this.yaml_arr), null, 2);
this.$refs.actiondialog.show(); this.$refs.actiondialog.show();
......
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