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

服务详情?

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