Commit ec60b9dc authored by 徐一鸣's avatar 徐一鸣

Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev

parents e9659a17 22e3c951
...@@ -23,15 +23,17 @@ ...@@ -23,15 +23,17 @@
<span <span
class="right underline" class="right underline"
v-if="data.xxdetail" v-if="data.xxdetail"
@click="subevent(2)" @click="subevent(2,get_strd(data.xxdetail)[0])"
:style="get_strd(data.xxdetail)[0]?{backgroundColor:'#ccc',color:'#e6ebfe'}:''"
title="申请下线至开发者应用" title="申请下线至开发者应用"
>{{ data.xxdetail }}</span >{{ get_strd(data.xxdetail)[1] }}</span
> >
<span <span
class="right undersell" class="right undersell"
v-if="data.yydetail" v-if="data.yydetail"
@click="subevent(3)" :style="get_strd(data.yydetail)[0]?{backgroundColor:'#ccc',color:'#e6ebfe'}:''"
>{{ data.yydetail }}</span @click="subevent(3,get_strd(data.yydetail)[0])"
>{{ get_strd(data.yydetail)[1] }}</span
> >
<span <span
class="right undersell undermy" class="right undersell undermy"
...@@ -92,7 +94,19 @@ export default { ...@@ -92,7 +94,19 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
subevent(val){ get_strd(str){
if(str){
if(str.indexOf('d')!==-1){
return [true,str.substr(0,str.length-1)]
}else {
return [false,str]
}
}
},
subevent(val,flag=false){
if(flag){
return
}
if(val == 0){ if(val == 0){
// this.$emit('deploy',this.data) // this.$emit('deploy',this.data)
this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/deployment/${this.$route.params.id}?source=${this.$route.query.source}`) this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/deployment/${this.$route.params.id}?source=${this.$route.query.source}`)
......
...@@ -542,6 +542,13 @@ export default { ...@@ -542,6 +542,13 @@ export default {
data.req_url data.req_url
); );
this.$set(this.service_header_arr, "url", data.cover); this.$set(this.service_header_arr, "url", data.cover);
if(this.now_user==1){
this.$set(
this.service_header_arr,
"fixed",
false
);
}
this.$set( this.$set(
this.service_header_arr, this.service_header_arr,
"fixedurl", "fixedurl",
......
<template> <template>
<div class="detail_contain"> <div class="detail_contain">
<p class="now_page_title"> <p class="now_page_title">
我的服务 / 注册发布的服务 / 我的服务 / {{now_user==0||now_user==4?'注册发布的服务':'平台服务管理'}} /
<span>服务编辑</span> <span>服务编辑</span>
</p> </p>
<div class="info_contain"> <div class="info_contain">
......
This diff is collapsed.
...@@ -108,23 +108,23 @@ ...@@ -108,23 +108,23 @@
<nor-card title="平均响应时间" class="service_card"> <nor-card title="平均响应时间" class="service_card">
<template> <template>
<div style="height:115px;" class="service_num"> <div style="height:115px;" class="service_num">
<p>{{ yx_state.averageTime }}</p> <p>{{ yx_state.averageTime }}ms</p>
<p>最大响应时间:{{ yx_state.maxTime }}</p> <p>最大响应时间:{{ yx_state.maxTime }}ms</p>
</div> </div>
</template> </template>
</nor-card> </nor-card>
<nor-card title="吞吐率" class="service_card"> <nor-card title="吞吐率" class="service_card">
<template> <template>
<div style="height:115px;" class="service_num"> <div style="height:115px;" class="service_num">
<p>{{ yx_state.averageTraffic }}</p> <p>{{ yx_state.averageTraffic }}dps</p>
<p>最大吞吐率:{{ yx_state.maxTraffic }}</p> <p>最大吞吐率:{{ yx_state.maxTraffic }}dps</p>
</div> </div>
</template> </template>
</nor-card> </nor-card>
<nor-card title="资源使用" class="service_card"> <nor-card title="资源使用" class="service_card">
<template> <template>
<div style="height:115px;padding-top:30px;" class="service_num"> <div style="height:115px;padding-top:30px;" class="service_num">
<p>{{ yx_state.memory }}</p> <p>{{ yx_state.memory }}MB</p>
</div> </div>
</template> </template>
</nor-card> </nor-card>
...@@ -152,19 +152,19 @@ ...@@ -152,19 +152,19 @@
<div style="height:115px;" class="service_num service_card_box"> <div style="height:115px;" class="service_num service_card_box">
<span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">服务平均响应时间</span> <span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">服务平均响应时间</span>
<p>{{ micor_state.averageTime }}</p> <p>{{ micor_state.averageTime }}ms</p>
<p>最大响应时间:{{ micor_state.maxTime }}</p> <p>最大响应时间:{{ micor_state.maxTime }}ms</p>
</div> </div>
<div style="height:115px;" class="service_num service_card_box"> <div style="height:115px;" class="service_num service_card_box">
<span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">吞吐率</span> <span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">吞吐率</span>
<p>{{ micor_state.averageTraffic }}</p> <p>{{ micor_state.averageTraffic }}dps</p>
<p>最大吞吐率:{{ micor_state.maxTraffic }}</p> <p>最大吞吐率:{{ micor_state.maxTraffic }}dps</p>
</div> </div>
<div style="height:115px;padding-top:30px;" class="service_num service_card_box"> <div style="height:115px;padding-top:30px;" class="service_num service_card_box">
<span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">内存使用</span> <span style="color: #707693;font-size: 16px;text-align:center;margin-bottom:26px;display:inline-block;">内存使用</span>
<p>{{ micor_state.memory }}</p> <p>{{ micor_state.memory }}MB</p>
</div> </div>
</div> </div>
...@@ -1191,6 +1191,7 @@ background:khaki; ...@@ -1191,6 +1191,7 @@ background:khaki;
.service_num p:nth-of-type(1) { .service_num p:nth-of-type(1) {
font-size: 36px; font-size: 36px;
color: #3f4f9c; color: #3f4f9c;
font-weight: 600;
margin-bottom: 10px; margin-bottom: 10px;
} }
.service_num p:nth-of-type(2) { .service_num p:nth-of-type(2) {
......
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