Commit 45fcca6b authored by 刘殿昕's avatar 刘殿昕

申请的服务响应示例

parent 949d1e30
<template> <template>
<div class="detail_contain"> <div class="detail_contain">
<p class="now_page_title">我的服务 / 申请的服务 / <span>服务详情</span></p> <p class="now_page_title">
我的服务 / 申请的服务 /
<span>服务详情</span>
</p>
<div class="info_contain"> <div class="info_contain">
<service-header :data="service_header_arr"></service-header> <service-header :data="service_header_arr"></service-header>
<div class="type_box"> <div class="type_box">
...@@ -13,9 +16,7 @@ ...@@ -13,9 +16,7 @@
:style=" :style="
now_service == index ? { borderBottom: '4px solid #f5ab4c' } : {} now_service == index ? { borderBottom: '4px solid #f5ab4c' } : {}
" "
> >{{ item }}</div>
{{ item }}
</div>
</div> </div>
<div class="type_box_select"> <div class="type_box_select">
<info-list <info-list
...@@ -39,10 +40,8 @@ ...@@ -39,10 +40,8 @@
:datas="res_table_arr" :datas="res_table_arr"
slot="apply_table" slot="apply_table"
></table-um> ></table-um>
<process-card <v-apaas-code :datas="res_code_arr" slot="res_code" :readOnly="true"></v-apaas-code>
:data="use_approval_arr" <process-card :data="use_approval_arr" slot="approval"></process-card>
slot="approval"
></process-card>
</info-list> </info-list>
</div> </div>
</div> </div>
...@@ -55,6 +54,7 @@ import serviceHeader from "@/components/service-header"; ...@@ -55,6 +54,7 @@ import serviceHeader from "@/components/service-header";
import infoList from "@/components/infoList"; import infoList from "@/components/infoList";
import tableUm from "@/components/table/table-um"; import tableUm from "@/components/table/table-um";
import processCard from "@/components/process-card"; import processCard from "@/components/process-card";
import codes from "@/components/general/codes";
export default { export default {
props: {}, props: {},
components: { components: {
...@@ -62,6 +62,7 @@ export default { ...@@ -62,6 +62,7 @@ export default {
infoList, infoList,
tableUm, tableUm,
processCard, processCard,
"v-apaas-code": codes,
}, },
data() { data() {
return { return {
...@@ -270,6 +271,12 @@ export default { ...@@ -270,6 +271,12 @@ export default {
type: "solt", type: "solt",
solt_name: "res_table", solt_name: "res_table",
}, },
{
title: "响应示例:",
info: "",
type: "solt",
solt_name: "res_code",
},
], ],
apply_arr: [ apply_arr: [
{ {
...@@ -352,6 +359,7 @@ export default { ...@@ -352,6 +359,7 @@ export default {
}, },
], // 响应参数-header ], // 响应参数-header
res_table_arr: [], // 响应参数 res_table_arr: [], // 响应参数
res_code_arr: ""
}; };
}, },
watch: {}, watch: {},
...@@ -502,6 +510,11 @@ export default { ...@@ -502,6 +510,11 @@ export default {
if (this.res_table_arr.length === 0) { if (this.res_table_arr.length === 0) {
this.$set(this.servicead_arr[4], "info", "无响应参数"); this.$set(this.servicead_arr[4], "info", "无响应参数");
} }
this.res_code_arr = data.res_fields_example || ""; // 响应示例
if (!this.res_code_arr) {
this.$set(this.servicead_arr[5], "type", "");
this.$set(this.servicead_arr[5], "info", "无响应示例");
}
console.log(this.res_table_arr); console.log(this.res_table_arr);
if (data.service_apply_info.approval_process) { if (data.service_apply_info.approval_process) {
data.service_apply_info.approval_process.forEach((e) => { data.service_apply_info.approval_process.forEach((e) => {
...@@ -546,7 +559,7 @@ export default { ...@@ -546,7 +559,7 @@ export default {
} }
this.res_data = JSON.parse(data.res_fields); this.res_data = JSON.parse(data.res_fields);
}) })
.catch(function(response) {}); .catch(function (response) {});
}, },
}, },
}; };
......
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