Commit 15a49db9 authored by 张俊's avatar 张俊

服务详情

parent 469c1ed6
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<div class="type_box_select"> <div class="type_box_select">
<info-list :list_arr="now_service==0?list_arr:servicead_arr"> <info-list :list_arr="now_service==0?list_arr:servicead_arr">
<table-um style="width:700px;" height='250px' :stripe="true" :headers="header_arr" :datas="zd_table_arr" slot="fw_table"></table-um> <table-um style="width:700px;" height='250px' :stripe="true" :headers="header_arr" :datas="zd_table_arr" slot="fw_table"></table-um>
<div slot="process">流程</div> <!-- <div slot="process">流程</div> -->
<workflows-view slot="process" :id="workflows_id" :hide-detail="true"></workflows-view>
<div slot="count"> <div slot="count">
<div class="charts"> <div class="charts">
<div class="charts_box"> <div class="charts_box">
...@@ -75,7 +76,8 @@ ...@@ -75,7 +76,8 @@
</div> </div>
</div> </div>
</div> </div>
<div slot="suvice">流程</div> <!-- <div slot="suvice">流程</div> -->
<workflows-view slot="suvice" :id="workflows_id" :hide-detail="false"></workflows-view>
</info-list> </info-list>
</div> </div>
</div> </div>
...@@ -92,6 +94,7 @@ import BlockRadius from "@/components/general/block-radius"; ...@@ -92,6 +94,7 @@ import BlockRadius from "@/components/general/block-radius";
import lineChart from "@/components/e-charts/line_chart"; import lineChart from "@/components/e-charts/line_chart";
import Toplist from "@/components/e-charts/process-top-list"; import Toplist from "@/components/e-charts/process-top-list";
import BarChart from "@/components/e-charts/bar-chart"; import BarChart from "@/components/e-charts/bar-chart";
import workflowsView from "@/components/work-flow/workflows-view";
export default { export default {
components: { components: {
serviceHeader, serviceHeader,
...@@ -100,7 +103,8 @@ export default { ...@@ -100,7 +103,8 @@ export default {
BlockRadius, BlockRadius,
lineChart, lineChart,
Toplist, Toplist,
BarChart BarChart,
workflowsView
}, },
data(){ data(){
return{ return{
...@@ -118,6 +122,7 @@ export default { ...@@ -118,6 +122,7 @@ export default {
fixed_url:'/', fixed_url:'/',
url:'' url:''
}, },
workflows_id:'',
all_count: { all_count: {
        "total_instances": 0, //流程实例总数         "total_instances": 0, //流程实例总数
        "timeout_rate": 0,//流程超时率         "timeout_rate": 0,//流程超时率
...@@ -200,6 +205,7 @@ export default { ...@@ -200,6 +205,7 @@ export default {
created(){ created(){
this.get_process_detail() this.get_process_detail()
this.get_table_service() this.get_table_service()
this.workflows_id = parseInt(this.$route.params.id)
}, },
methods:{ methods:{
get_process_detail(){ get_process_detail(){
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div class="type_box_select"> <div class="type_box_select">
<info-list <info-list
:list_arr="now_service == 0 ? list_arr : servicead_arr" :list_arr="now_service == 0 ? list_arr : servicead_arr"
v-if="now_service == 0 || now_service == 1" v-if="now_service == 0 || (now_service == 1&&!workflows_id)"
> >
<table-um <table-um
:headers="req_header_arr" :headers="req_header_arr"
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
></table-um> ></table-um>
<v-apaas-code :datas="res_code_arr" slot="res_code"></v-apaas-code> <v-apaas-code :datas="res_code_arr" slot="res_code"></v-apaas-code>
</info-list> </info-list>
<p v-if="now_service == 1&&workflows_id">
流程服务接口说明见文档中心流程服务接口文档
</p>
<div v-show="now_service == 2"> <div v-show="now_service == 2">
<p class="service_title"><span></span>服务运行概况</p> <p class="service_title"><span></span>服务运行概况</p>
<div class="service_title_card"> <div class="service_title_card">
...@@ -296,6 +299,7 @@ export default { ...@@ -296,6 +299,7 @@ export default {
res_data: [], // 响应参数 res_data: [], // 响应参数
res_code_arr: "", // 响应示例 res_code_arr: "", // 响应示例
buy_type: "", buy_type: "",
workflows_id:'',//判断是否是流程服务
sizeset_flag: false, //规格设置是否显示 sizeset_flag: false, //规格设置是否显示
service_arr: [ service_arr: [
["服务基本信息", "接口详细信息", "服务运行状态"], ["服务基本信息", "接口详细信息", "服务运行状态"],
...@@ -625,6 +629,9 @@ export default { ...@@ -625,6 +629,9 @@ export default {
.then((response) => { .then((response) => {
if (response.data.success === 1) { if (response.data.success === 1) {
let data = response.data.data; let data = response.data.data;
if(data.workflows_id){
this.workflows_id = data.workflows_id
}
this.$set(this.service_header_arr, "portal_id", data.portal_id); // 时空服务id this.$set(this.service_header_arr, "portal_id", data.portal_id); // 时空服务id
this.$set( this.$set(
this.service_header_arr, this.service_header_arr,
......
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