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

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

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