Commit f1f8a4c8 authored by 刘殿昕's avatar 刘殿昕

服务详情?

parent af834172
......@@ -792,34 +792,67 @@ export default {
"text",
data.data_service_type1_name
);
this.$set(
this.service_header_arr["first"][1],
"text",
data.service_apply_info.approval_status == 1
? "待审批"
: data.service_apply_info.approval_status == 2
? "审批中"
: data.service_apply_info.approval_status == 3
? "审批通过"
: "审批未通过"
);
this.$set(
this.service_header_arr["first"][1],
"color",
data.service_apply_info.approval_status == 1
? "#ef9433"
: data.service_apply_info.approval_status == 2
? "#ef9433"
: data.service_apply_info.approval_status == 3
? "#515fe7"
: "#e15260"
);
this.$set(
this.service_header_arr["second"][0],
"text",
data.service_apply_info.urls[0].req_url
);
if (data.data_service_type1 == 36) {
this.$set(this.service_header_arr["first"][1], "name", "是否授权");
this.$set(
this.service_header_arr["first"][1],
"text",
data.service_apply_info.approval_status == 1
? "待授权"
: data.service_apply_info.approval_status == 2
? "待授权"
: data.service_apply_info.approval_status == 3
? "已授权"
: "未授权"
);
this.$set(
this.service_header_arr["first"][1],
"color",
data.service_apply_info.approval_status == 1
? "#ef9433"
: data.service_apply_info.approval_status == 2
? "#ef9433"
: data.service_apply_info.approval_status == 3
? "#515fe7"
: "#e15260"
);
this.$set(this.service_header_arr["second"][0], "name", "申请次数");
this.$set(
this.service_header_arr["second"][0],
"text",
data.service_apply_info.spcs_type == 1
? data.service_apply_info.spcs_count + ""
: "不限次数"
);
} else {
this.$set(
this.service_header_arr["first"][1],
"text",
data.service_apply_info.approval_status == 1
? "待审批"
: data.service_apply_info.approval_status == 2
? "审批中"
: data.service_apply_info.approval_status == 3
? "审批通过"
: "审批未通过"
);
this.$set(
this.service_header_arr["first"][1],
"color",
data.service_apply_info.approval_status == 1
? "#ef9433"
: data.service_apply_info.approval_status == 2
? "#ef9433"
: data.service_apply_info.approval_status == 3
? "#515fe7"
: "#e15260"
);
this.$set(
this.service_header_arr["second"][0],
"text",
data.service_apply_info.urls[0].req_url
);
}
this.$set(this.service_header_arr, "url", data.cover);
//判断是否是服务注册出来的流程服务
......@@ -908,9 +941,23 @@ export default {
.replace(/T|Z/g, " ")
.split("+")[0]
);
this.$set(this.service_header_arr["first"][3], "text", "不限次数");
}
if (data.data_service_type1 == 36) {
this.service_header_arr["first"].pop();
this.service_header_arr["second"][1] = {
name: "",
value: "",
};
this.$set(this.service_header_arr["second"][1], "name", "可用次数");
this.$set(
this.service_header_arr["second"][1],
"text",
data.service_apply_info.spcs_type == 1
? data.service_apply_info.left_request_count + ""
: "不限次数"
);
}
if (this.process_in_up) {
var temp_sj = this.service_header_arr.first.pop();
this.service_header_arr.second = [];
......
......@@ -1557,6 +1557,9 @@ export default {
}
console.log(this.process_in_up, this.perception_in);
this.get_trans_data();
if (data.data_service_type1 == 36) {
this.$set(this.service_header_arr, "second", []);
}
if (this.process_in_up) {
var temp_sj = this.service_header_arr.first.pop();
this.service_header_arr.second = [];
......
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