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

服务详情

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