Commit 42bfe7f7 authored by 张俊's avatar 张俊

接口对接

parent b5eab801
......@@ -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:'身份验证服务',
......
......@@ -58,7 +58,7 @@
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
>
<span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<span style="display: inline-block;vertical-align:middle;">服务运营管控中心</span>
<div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span>
</p>
......@@ -159,7 +159,7 @@
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
>
<span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<span style="display: inline-block;vertical-align:middle;">服务运营管控中心</span>
<div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span>
</p>
......@@ -202,7 +202,7 @@
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
>
<span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<span style="display: inline-block;vertical-align:middle;">服务运营管控中心</span>
<div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span>
</p>
......
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