From 42bfe7f76515689731205c894a3df81d30272d0c Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Mon, 10 Aug 2020 16:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../process-management/designer/detail.vue | 43 ++++++++++++------- src/pages/workbench/workPlace.vue | 6 +-- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/pages/workbench/component-center/process-management/designer/detail.vue b/src/pages/workbench/component-center/process-management/designer/detail.vue index fba663b..48a0cef 100644 --- a/src/pages/workbench/component-center/process-management/designer/detail.vue +++ b/src/pages/workbench/component-center/process-management/designer/detail.vue @@ -192,15 +192,28 @@ export default { } }, created(){ - this.get_header() - this.getbaseinfo() + this.get_process_detail() }, methods:{ + get_process_detail(){ + this.$http + .get('/apaas/serviceapp/v3/workflows/detail?id='+9) + .then(response => { + let data = response.data.data + console.log(data); + this.state = data.state + this.get_header(data) + this.getbaseinfo(data) + }) + .catch(function(response) { + + }); + }, changeday(){ }, - get_header(){ - this.$set(this.service_header_arr,'name','长兴综治事故申报处理流程') + get_header(data){ + this.$set(this.service_header_arr,'name',data.name) let state = this.state //未部署 if(state==0){ @@ -208,7 +221,7 @@ export default { this.$set(this.service_header_arr,'second',[]) this.service_header_arr.first.push({ name:'工作区域', - text:'1111' + text:data.workarea_name }) this.service_header_arr.first.push({ name:'流程状态', @@ -216,7 +229,7 @@ export default { }) this.service_header_arr.second.push({ name:'修改时间', - text:'2020-04-11' + text:data.update_time=='0001-01-01T00:00:00Z'?'-':data.update_time.split("+")[0].replace('T',' ') }) this.service_arr = ['流程基本信息'] this.service_header_arr.fixed_process=true @@ -230,7 +243,7 @@ export default { this.$set(this.service_header_arr,'second',[]) this.service_header_arr.first.push({ name:'工作区域', - text:'1111' + text:data.workarea }) this.service_header_arr.first.push({ name:'流程状态', @@ -238,11 +251,11 @@ export default { }) this.service_header_arr.first.push({ name:'部署时间', - text:'2020-04-11' + text:data.deployment_time=='0001-01-01T00:00:00Z'?'-':data.deployment_time.split("+")[0].replace('T',' ') }) this.service_header_arr.second.push({ name:'服务接口地址', - text:'http://localhost:1z/zdrylx?code=430100000000' + text:data.api_url }) this.service_arr = ['流程基本信息','流程运行状态'] this.service_header_arr.fixed_process=true @@ -256,7 +269,7 @@ export default { this.$set(this.service_header_arr,'second',[]) this.service_header_arr.first.push({ name:'工作区域', - text:'1111' + text:data.workarea }) this.service_header_arr.first.push({ name:'流程状态', @@ -268,7 +281,7 @@ export default { }) this.service_header_arr.second.push({ name:'服务接口地址', - text:'http://localhost:1z/zdrylx?code=430100000000' + text:data.api_url }) this.service_arr = ['流程基本信息','流程运行状态'] this.service_header_arr.fixed_process=true @@ -278,10 +291,10 @@ export default { this.service_header_arr.deploy=false } }, - getbaseinfo(){ - this.$set(this.list_arr[0],'info','浙江省长兴县综合治理平台事故申报处理流程服务,仅供长兴县使用') - this.$set(this.list_arr[1],'info','北京比格大数据有限公司') - this.$set(this.list_arr[2],'info','2019-02-17 21:09:23') + getbaseinfo(data){ + this.$set(this.list_arr[0],'info',data.describe) + this.$set(this.list_arr[1],'info',data.org_name) + this.$set(this.list_arr[2],'info',data.create_time.split('+')[0].replace('T',' ')) this.zd_table_arr=[ { fwmc:'身份验证服务', diff --git a/src/pages/workbench/workPlace.vue b/src/pages/workbench/workPlace.vue index 960bde7..7301938 100644 --- a/src/pages/workbench/workPlace.vue +++ b/src/pages/workbench/workPlace.vue @@ -58,7 +58,7 @@ style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" > - 数据分析中心 + 服务运营管控中心

@@ -159,7 +159,7 @@ style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" > - 数据分析中心 + 服务运营管控中心

@@ -202,7 +202,7 @@ style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" > - 数据分析中心 + 服务运营管控中心

-- 2.26.0