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 fba663ba0c388f879208f6ec4fc675b6119af8db..48a0cef765bc454bc1237519d0c155cb732a04cd 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 960bde77c5dc71f62cbc8b49fc1e1180d3d27db1..7301938fd2b7c7a4db0b97ce73f835b1bbe5ae07 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;" > - 数据分析中心 + 服务运营管控中心