Commit 48870cb7 authored by 张洋's avatar 张洋

修改服务到期时间的显示bug

parent 719a98be
Pipeline #72465 passed with stage
......@@ -25,7 +25,10 @@
:list_arr="process_in_up_arr"
v-if="now_service == 1 && process_in_up"
>
<div slot="service_port" class="service_port">
<div
slot="service_port"
class="service_port"
>
<el-select
v-model="port_select"
placeholder=""
......@@ -858,10 +861,7 @@ export default {
data.service_apply_info.urls[0].req_url
);
} else {
this.$set(
this.service_header_arr["second"][0],
"text", "暂无"
);
this.$set(this.service_header_arr["second"][0], "text", "暂无");
}
}
this.$set(this.service_header_arr, "url", data.cover);
......@@ -948,7 +948,7 @@ export default {
this.$set(
this.service_header_arr["first"][2],
"text",
data.service_apply_info.service_end_time
data.service_apply_info.request_end_time
.replace(/T|Z/g, " ")
.split("+")[0]
);
......@@ -1094,13 +1094,18 @@ export default {
this.$set(
this.apply_arr[6],
"info",
data.service_apply_info.request_start_time && data.service_apply_info.request_end_time ? data.service_apply_info.request_start_time + '~' + data.service_apply_info.request_end_time : '-'
data.service_apply_info.request_start_time &&
data.service_apply_info.request_end_time
? data.service_apply_info.request_start_time +
"~" +
data.service_apply_info.request_end_time
: "-"
);
this.$set(
this.apply_arr[7],
"info",
data.service_apply_info.reason_application || ''
)
data.service_apply_info.reason_application || ""
);
this.$set(
this.apply_arr[8],
"info",
......@@ -1137,9 +1142,8 @@ export default {
});
if (e.status !== 0) {
this.use_approval_arr[this.use_approval_arr.length - 1][
"arr"
] = [
this.use_approval_arr[this.use_approval_arr.length - 1]["arr"] =
[
{
title: "审批时间:",
info: e.approval_time.split("+")[0].replace("T", " "),
......@@ -1161,7 +1165,7 @@ export default {
if (e.level == 2) {
this.use_approval_arr[this.use_approval_arr.length - 1][
"arr"
].splice(1, 1)
].splice(1, 1);
}
});
} else {
......@@ -1171,7 +1175,7 @@ export default {
});
}
if (data.data_service_type1 != 5) {
this.apply_arr.splice(5, 1)
this.apply_arr.splice(5, 1);
}
this.res_data = JSON.parse(data.res_fields);
})
......
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