Commit d50935f0 authored by 徐一鸣's avatar 徐一鸣

申请的服务详情页字段缺失

parent db5482a3
...@@ -306,7 +306,8 @@ export default { ...@@ -306,7 +306,8 @@ export default {
.info_detail p { .info_detail p {
color: #8890a7; color: #8890a7;
} }
.info_detail span { .info_detail span,
.info_detail a {
color: #242c43; color: #242c43;
font-weight: 600; font-weight: 600;
margin-right: 48px; margin-right: 48px;
......
...@@ -155,7 +155,6 @@ export default { ...@@ -155,7 +155,6 @@ export default {
use_approval_arr: [], use_approval_arr: [],
process_in_up: false, //是否是服务注册产生的 process_in_up: false, //是否是服务注册产生的
perception_in: false, //是否是感知服务 perception_in: false, //是否是感知服务
service_apply_type: 1, //服务申请的方式,1:计次收费2:时长收费
port_select: "", port_select: "",
req_solt_code_arr: "", req_solt_code_arr: "",
res_solt_code_arr: "", res_solt_code_arr: "",
...@@ -530,6 +529,10 @@ export default { ...@@ -530,6 +529,10 @@ export default {
name: "服务到期时间", name: "服务到期时间",
text: "", text: "",
}, },
{
name: "可用调用次数",
text: "",
},
], ],
second: [ second: [
{ {
...@@ -841,31 +844,24 @@ export default { ...@@ -841,31 +844,24 @@ export default {
this.perception_in = false; this.perception_in = false;
} }
if (this.service_apply_type == 1) { if (data.service_apply_info.spcs_type == 1) {
this.$set(this.service_header_arr["first"][2], "text", "不限时长");
this.$set( this.$set(
this.service_header_arr["first"][2], this.service_header_arr["first"][3],
"text", "text",
data.service_apply_info.service_end_time == "0001-01-01T00:00:00Z" data.service_apply_info.spcs_count
? "-"
: data.service_apply_info.service_end_time
.replace("T", " ")
.split("+")[0]
);
this.$set(
this.service_header_arr["first"][2],
"name",
"可调用次数"
); );
} else { } else {
this.$set( this.$set(
this.service_header_arr["first"][2], this.service_header_arr["first"][2],
"text", "text",
data.service_apply_info.service_end_time == "0001-01-01T00:00:00Z" data.service_apply_info.service_end_time
? "-" .replace(/T|Z/g, " ")
: data.service_apply_info.service_end_time .split("+")[0]
.replace("T", " ")
.split("+")[0]
); );
this.$set(this.service_header_arr["first"][3], "text", "不限次数");
} }
if (this.process_in_up) { if (this.process_in_up) {
var temp_sj = this.service_header_arr.first.pop(); var temp_sj = this.service_header_arr.first.pop();
...@@ -950,7 +946,9 @@ export default { ...@@ -950,7 +946,9 @@ export default {
this.$set( this.$set(
this.apply_arr[8], this.apply_arr[8],
"info", "info",
data.service_apply_info.apply_time.replace(/T|Z/g, " ").split("+")[0] data.service_apply_info.apply_time
.replace(/T|Z/g, " ")
.split("+")[0]
); );
this.$set( this.$set(
this.apply_arr[9], this.apply_arr[9],
......
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