Commit 7cb6860d authored by 刘殿昕's avatar 刘殿昕

Merge branch 'ldx' into dev

parents 7bd194d7 d4e701a7
...@@ -10,7 +10,7 @@ import bdMenu from "./components/menu"; ...@@ -10,7 +10,7 @@ import bdMenu from "./components/menu";
export default { export default {
data: () => ({}), data: () => ({}),
components: { components: {
bdMenu, bdMenu
}, },
methods: { methods: {
getCurrentUser() { getCurrentUser() {
...@@ -20,15 +20,18 @@ export default { ...@@ -20,15 +20,18 @@ export default {
console.log(data.data); console.log(data.data);
console.log("--- --- ---"); console.log("--- --- ---");
this.$store.commit("userInfofun", data.data); this.$store.commit("userInfofun", data.data);
if (data.data.is_admin == 1 || data.data.is_admin == 2) {
this.$router.push({ name: "workPlace" });
}
} else { } else {
console.log(data.errMsg); console.log(data.errMsg);
} }
}); });
}, }
}, },
created() { created() {
this.getCurrentUser(); this.getCurrentUser();
}, }
}; };
</script> </script>
......
...@@ -16,8 +16,8 @@ export default { ...@@ -16,8 +16,8 @@ export default {
} }
}, },
bar_width: { bar_width: {
type: String, type: Number,
default: "12px" default: 12
}, },
colors: { colors: {
type: Array, type: Array,
......
...@@ -100,9 +100,9 @@ export default { ...@@ -100,9 +100,9 @@ export default {
self.data.data > 75 self.data.data > 75
? "#00beb2" //green ? "#00beb2" //green
: self.data.data > 50 : self.data.data > 50
? "#ff7200" //yellow ? "#38aef9" //blue
: self.data.data > 25 : self.data.data > 25
? "#da4251" //red ? "#ff7200" //yellow
: "#da4251" //red : "#da4251" //red
} }
} }
...@@ -167,9 +167,9 @@ export default { ...@@ -167,9 +167,9 @@ export default {
: self.data.data > 75 : self.data.data > 75
? "#d5f7e8" ? "#d5f7e8"
: self.data.data > 50 : self.data.data > 50
? "#ffd98f" ? "#e5f4fe"
: self.data.data > 25 : self.data.data > 25
? "#f7f1d5" ? "#ffd98f"
: "#f7f1d5" : "#f7f1d5"
}, },
{ {
...@@ -186,9 +186,9 @@ export default { ...@@ -186,9 +186,9 @@ export default {
: self.data.data > 75 : self.data.data > 75
? "#00beb2" //green ? "#00beb2" //green
: self.data.data > 50 : self.data.data > 50
? "#ff7200" //yellow ? "#38aef9" //blue
: self.data.data > 25 : self.data.data > 25
? "#da4251" //red ? "#ff7200" //yellow
: "#da4251" //red : "#da4251" //red
} }
]) ])
......
...@@ -56,12 +56,12 @@ export default { ...@@ -56,12 +56,12 @@ export default {
} }
], ],
radius: "50%", radius: "50%",
center: ["50%", "25%"], center: ["50%", "20%"],
outline: { outline: {
borderDistance: 5, borderDistance: 2,
itemStyle: { itemStyle: {
borderWidth: 5, borderWidth: 3,
borderColor: "#e56600", borderColor: "#274fee",
shadowBlur: 0 shadowBlur: 0
} }
}, },
...@@ -79,14 +79,14 @@ export default { ...@@ -79,14 +79,14 @@ export default {
colorStops: [ colorStops: [
{ {
offset: 1, offset: 1,
color: ["#e6ebfe"] // 0% 处的颜色 color: ["#c9d3fc"]
}, },
{ {
offset: 0, offset: 0,
color: ["#515fe7"] // 100% 处的颜色 color: ["#515fe7"]
} }
], ],
global: false // 缺省为 false global: false
}, },
opacity: 1, opacity: 1,
shadowBlur: 0 shadowBlur: 0
...@@ -114,11 +114,11 @@ export default { ...@@ -114,11 +114,11 @@ export default {
} }
], ],
radius: "50%", radius: "50%",
center: ["50%", "75%"], center: ["50%", "70%"],
outline: { outline: {
borderDistance: 5, borderDistance: 2,
itemStyle: { itemStyle: {
borderWidth: 5, borderWidth: 3,
borderColor: "#e56600", borderColor: "#e56600",
shadowBlur: 0 shadowBlur: 0
} }
...@@ -137,14 +137,14 @@ export default { ...@@ -137,14 +137,14 @@ export default {
colorStops: [ colorStops: [
{ {
offset: 1, offset: 1,
color: ["#e6ebfe"] // 0% 处的颜色 color: ["#f9ddba"]
}, },
{ {
offset: 0, offset: 0,
color: ["#515fe7"] // 100% 处的颜色 color: ["#ef9433"]
} }
], ],
global: false // 缺省为 false global: false
}, },
opacity: 1, opacity: 1,
shadowBlur: 0 shadowBlur: 0
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
:disabled="pagination.page == 1" :disabled="pagination.page == 1"
></el-button> ></el-button>
&nbsp;&nbsp;{{ pagination.page }}页 / 共{{ &nbsp;&nbsp;{{ pagination.page }}页 / 共{{
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
}} }}
<el-button <el-button
icon="el-icon-arrow-right" icon="el-icon-arrow-right"
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
@click="handleCurrentChange(1)" @click="handleCurrentChange(1)"
:disabled=" :disabled="
pagination.page >= pagination.page >=
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
" "
></el-button> ></el-button>
</div> </div>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:disabled="pagination.page == 1" :disabled="pagination.page == 1"
></el-button> ></el-button>
&nbsp;&nbsp;{{ pagination.page }}页 / 共{{ &nbsp;&nbsp;{{ pagination.page }}页 / 共{{
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
}} }}
<el-button <el-button
icon="el-icon-arrow-right" icon="el-icon-arrow-right"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="handleCurrentChange(1)" @click="handleCurrentChange(1)"
:disabled=" :disabled="
pagination.page >= pagination.page >=
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
" "
></el-button> ></el-button>
</div> </div>
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
:disabled="pagination.page == 1" :disabled="pagination.page == 1"
></el-button> ></el-button>
&nbsp;&nbsp;第{{ pagination.page }}页 / 共{{ &nbsp;&nbsp;第{{ pagination.page }}页 / 共{{
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
}}页 }}页
<el-button <el-button
icon="el-icon-arrow-right" icon="el-icon-arrow-right"
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
@click="handleCurrentChange(1)" @click="handleCurrentChange(1)"
:disabled=" :disabled="
pagination.page >= pagination.page >=
Math.floor(pagination.total / pagination.rowsPerPage) + 1 Math.cell((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage)
" "
></el-button> ></el-button>
</div> </div>
......
...@@ -16,29 +16,35 @@ ...@@ -16,29 +16,35 @@
<img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" /> <img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" />
<div class="left_1_msg"> <div class="left_1_msg">
<div class="left_1_title">服务总数</div> <div class="left_1_title">服务总数</div>
<div class="left_1_num">2222</div> <div class="left_1_num">4</div>
</div> </div>
</div> </div>
<div class="chain"> <div class="chain">
月环比 月环比
<span class="chain_mid" :class="overview.month_chain >= 0 ? 'chain_up' : 'chain_down'"> <span
{{ Math.abs(overview.month_chain) }} class="chain_mid"
:class="overview.month_chain >= 0 ? 'chain_up' : 'chain_down'"
>
{{ Math.abs(overview.month_chain) }}%
<img <img
:src="overview.month_chain >= 0 ? require('@/assets/imgs/icon_up.png') : require('@/assets/imgs/icon_down.png')" :src="overview.month_chain >= 0 ? require('@/assets/imgs/icon_up.png') : require('@/assets/imgs/icon_down.png')"
/> />
</span>周环比 </span>周环比
<span :class="overview.week_chain >= 0 ? 'chain_up' : 'chain_down'"> <span :class="overview.week_chain >= 0 ? 'chain_up' : 'chain_down'">
{{ Math.abs(overview.week_chain) }} {{ Math.abs(overview.week_chain) }}%
<img <img
:src="overview.week_chain >= 0 ? require('@/assets/imgs/icon_up.png') : require('@/assets/imgs/icon_down.png')" :src="overview.week_chain >= 0 ? require('@/assets/imgs/icon_up.png') : require('@/assets/imgs/icon_down.png')"
/> />
</span> </span>
</div> </div>
<div class="left_1_line"></div> <div class="left_1_line"></div>
<div class="left_1_l_bottom">日均被部署次数<span class="left_1_l_bottom_msg">12432</span>(次)</div> <div class="left_1_l_bottom">
日均被部署次数
<span class="left_1_l_bottom_msg">12432</span>(次)
</div>
</div> </div>
<div class="left_1_right"> <div class="left_1_right">
<WaterPolo /> <WaterPolo class="water_polo" />
</div> </div>
</div> </div>
</block-radius> </block-radius>
...@@ -58,7 +64,7 @@ ...@@ -58,7 +64,7 @@
<block-radius <block-radius
:show_header="true" :show_header="true"
title="应用类型分析" title="应用类型分析"
:buttons_arr="['发布的应用', '调用的应用']" :buttons_arr="['构建的应用', '申请的应用 ']"
@changeButton="changeServiceTypeBtn" @changeButton="changeServiceTypeBtn"
class="block" class="block"
> >
...@@ -69,15 +75,25 @@ ...@@ -69,15 +75,25 @@
</el-col> </el-col>
<el-col :span="12" class="in_center"> <el-col :span="12" class="in_center">
<el-row> <el-row>
<el-col :span="24" class="in_block">
<block-radius class="block"></block-radius>
</el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
<block-radius <block-radius
:show_header="true" :show_header="true"
title="应用热门搜索" title="应用使用领域统计"
:buttons_arr="['构建的应用', '申请的应用']"
@changeButton="changeServiceTypeBtn"
class="block" class="block"
> >
<BarChart
:data="bar_data_org"
:colors="['#1034eb', '#4274f8']"
:bar_border_radius="[20, 20, 0, 0]"
:bar_width="26"
:show_split="true"
/>
</block-radius>
</el-col>
<el-col :span="24" class="in_block">
<block-radius :show_header="true" title="应用热门搜索" class="block">
<div class="block-radius-content service-hot-search"> <div class="block-radius-content service-hot-search">
<div class="left-content"> <div class="left-content">
<div class="hot-line"> <div class="hot-line">
...@@ -94,11 +110,11 @@ ...@@ -94,11 +110,11 @@
</div> </div>
</div> </div>
<div class="right-content"> <div class="right-content">
<apass-table <apass-table
class="hot-search-table" class="hot-search-table"
:header="hotSearchHeader" :header="hotSearchHeader"
:data="hotSearchData" :data="hotSearchData"
:padding-left="0" :padding-left="0"
@sort-change="hotSearchSortChange" @sort-change="hotSearchSortChange"
></apass-table> ></apass-table>
</div> </div>
...@@ -106,7 +122,7 @@ ...@@ -106,7 +122,7 @@
</block-radius> </block-radius>
</el-col> </el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
<block-radius <block-radius
class="block" class="block"
:show_header="true" :show_header="true"
title="应用总数变化趋势" title="应用总数变化趋势"
...@@ -148,20 +164,16 @@ ...@@ -148,20 +164,16 @@
class="block-radius-content" class="block-radius-content"
:data="commentlistData" :data="commentlistData"
></commentlist> ></commentlist>
<starlist <starlist
v-else v-else
class="block-radius-content" class="block-radius-content"
:options="starlistData" :options="starlistData"
style="margin-top: 30px;height: calc(100% - 51px);" style="margin-top: 30px;height: calc(100% - 51px);"
></starlist> ></starlist>
</block-radius> </block-radius>
</el-col> </el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
<block-radius <block-radius class="block" :show_header="true" title="应用在线区域统计">
class="block"
:show_header="true"
title="应用在线区域统计"
>
<single-circle class="block-radius-content" :data="single_data"></single-circle> <single-circle class="block-radius-content" :data="single_data"></single-circle>
</block-radius> </block-radius>
</el-col> </el-col>
...@@ -170,7 +182,7 @@ ...@@ -170,7 +182,7 @@
<!-- 不可横向铺满,一般为最后一行 --> <!-- 不可横向铺满,一般为最后一行 -->
<el-col :span="6" class="in_block"> <el-col :span="6" class="in_block">
<block-radius :show_header="true" title="应用来源机构分析" class="block"> <block-radius :show_header="true" title="应用来源机构分析" class="block">
<BarChart :data="bar_data_org" :colors="['#e56600', '#e56600']" /> <BarChart :data="bar_data_org" :colors="['#274fee', '#274fee']" :x_router="30" />
</block-radius> </block-radius>
</el-col> </el-col>
<el-col :span="18" class="in_block default"> <el-col :span="18" class="in_block default">
...@@ -394,33 +406,33 @@ export default { ...@@ -394,33 +406,33 @@ export default {
hotIndex: 1, hotIndex: 1,
name: "地图视频融合应用1", name: "地图视频融合应用1",
count: 666, count: 666,
increases: 1.28, increases: 1.28
}, },
{ {
hotIndex: 2, hotIndex: 2,
name: "地图视频融合应用2", name: "地图视频融合应用2",
count: 666, count: 666,
increases: 0.03, increases: 0.03
}, },
{ {
hotIndex: 3, hotIndex: 3,
name: "地图视频融合应用3", name: "地图视频融合应用3",
count: 666, count: 666,
increases: 0.58, increases: 0.58
}, },
{ {
hotIndex: 4, hotIndex: 4,
name: "地图视频融合应用4", name: "地图视频融合应用4",
count: 666, count: 666,
increases: -0.28, increases: -0.28
}, },
{ {
hotIndex: 5, hotIndex: 5,
name: "地图视频融合应用5", name: "地图视频融合应用5",
count: 666, count: 666,
increases: -0.58, increases: -0.58
}, }
], // 热门搜索 数据 ] // 热门搜索 数据
}), }),
mounted() { mounted() {
this.hotSearchHeader = [ this.hotSearchHeader = [
...@@ -428,19 +440,19 @@ export default { ...@@ -428,19 +440,19 @@ export default {
label: "排名", label: "排名",
type: "hot-index", type: "hot-index",
width: 100, width: 100,
align: "center", align: "center"
}, },
{ {
label: "应用名称", label: "应用名称",
prop: "name", prop: "name",
type: "button", type: "button",
callback: this.detailHotSearch, callback: this.detailHotSearch
}, },
{ {
label: "搜索次数", label: "搜索次数",
prop: "count", prop: "count",
width: 100, width: 100,
align: "center", align: "center"
}, },
{ {
label: "日涨幅", label: "日涨幅",
...@@ -448,9 +460,9 @@ export default { ...@@ -448,9 +460,9 @@ export default {
width: 100, width: 100,
sortType: "0", // 0:升序 1:降序 sortType: "0", // 0:升序 1:降序
sortable: true, sortable: true,
align: "center", align: "center"
}, }
] ];
}, },
methods: { methods: {
detailHotSearch(item) { detailHotSearch(item) {
...@@ -512,7 +524,7 @@ export default { ...@@ -512,7 +524,7 @@ export default {
justify-content: space-between; justify-content: space-between;
} }
.left_block { .left_block {
width: 70%; width: 280px;
height: 100%; height: 100%;
padding: 10px 0 0 0; padding: 10px 0 0 0;
} }
...@@ -537,8 +549,7 @@ export default { ...@@ -537,8 +549,7 @@ export default {
.chain { .chain {
color: #58617a; color: #58617a;
font-size: 14px; font-size: 14px;
padding: 10px 0; padding: 10px;
text-align: center;
} }
.chain_down { .chain_down {
background-color: #fbe8e8; background-color: #fbe8e8;
...@@ -546,6 +557,7 @@ export default { ...@@ -546,6 +557,7 @@ export default {
padding: 2px 4px; padding: 2px 4px;
font-size: 12px; font-size: 12px;
margin-left: 8px; margin-left: 8px;
color: #e15260;
} }
.chain_up { .chain_up {
background-color: #e7fdfc; background-color: #e7fdfc;
...@@ -553,6 +565,7 @@ export default { ...@@ -553,6 +565,7 @@ export default {
padding: 1px 4px; padding: 1px 4px;
font-size: 12px; font-size: 12px;
margin-left: 8px; margin-left: 8px;
color: #25bdb1;
} }
.chain_mid { .chain_mid {
margin-right: 20px; margin-right: 20px;
...@@ -576,10 +589,14 @@ export default { ...@@ -576,10 +589,14 @@ export default {
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.left_1_right { .left_1_right {
width: 30%; width: 180px;
height: 100%; height: 100%;
display: inline-block; display: inline-block;
} }
.water_polo {
width: 140px;
margin: 0 auto 20px;
}
.default { .default {
text-align: center; text-align: center;
} }
...@@ -625,7 +642,7 @@ export default { ...@@ -625,7 +642,7 @@ export default {
</style> </style>
<style> <style>
.hot-search-table .el-table td, .hot-search-table .el-table td,
.hot-search-table .el-table th { .hot-search-table .el-table th {
padding: 6px 0; padding: 6px 0;
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div ref="left_1_l" class="left_1_l"> <div ref="left_1_l" class="left_1_l">
<img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" /> <img :src="require('@/assets/imgs/data_img_service.gif')" class="left_1_img" />
<div class="left_1_title">服务总数</div> <div class="left_1_title">服务总数</div>
<div class="left_1_num">2222</div> <div class="left_1_num">4</div>
</div> </div>
<dashboard ref="left_1_r" :data="das_data" :is_word="true" class="left_1_r"></dashboard> <dashboard ref="left_1_r" :data="das_data" :is_word="true" class="left_1_r"></dashboard>
</div> </div>
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
] ]
}, },
das_data: { das_data: {
data: 40, data: 90,
text: "健康占比" text: "健康占比"
}, },
bar_data: { bar_data: {
......
...@@ -322,25 +322,25 @@ export default { ...@@ -322,25 +322,25 @@ export default {
header_arr: [ header_arr: [
{ {
prop: "name", prop: "name",
label: "微服务名称", label: "字段编码",
minWidth: "20%", minWidth: "20%",
align: "left" align: "left"
}, },
{ {
prop: "is_sensituve", prop: "show_type",
label: "健康状态", label: "字段类型",
width: "120px", width: "120px",
align: "center" align: "center"
}, },
{ {
prop: "is_must", prop: "label",
label: "接口链接", label: "字段名称",
minWidth: "40%", minWidth: "40%",
align: "center" align: "center"
}, },
{ {
prop: "descript", prop: "descript",
label: "微服务描述", label: "字段说明",
minWidth: "40%", minWidth: "40%",
align: "left" align: "left"
} }
......
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<el-button v-if="activeBtn == 1" @click="clickFwcs()" class="fwcs_btn_fwcs">服务测试</el-button> <el-button v-if="activeBtn == 1" @click="clickFwcs()" class="fwcs_btn_fwcs">服务测试</el-button>
</div> </div>
</div> </div>
<div v-if="activeBtn == 4"> <div v-if="activeBtn == 4 && zhyyVal != 34">
<el-tabs v-model="activeZh" class="fwcs_tabs" @tab-click="clickTab"> <el-tabs v-model="activeZh" class="fwcs_tabs" @tab-click="clickTab">
<el-tab-pane label="请求参数" name="0"> <el-tab-pane label="请求参数" name="0">
<ces-table <ces-table
......
...@@ -13,7 +13,7 @@ const serviceShop = { ...@@ -13,7 +13,7 @@ const serviceShop = {
serviceName=${params.serviceName}&serviceType1=${params.serviceType1}& serviceName=${params.serviceName}&serviceType1=${params.serviceType1}&
serviceType2s=${params.serviceType2s}&dataDomains=${params.dataDomains}& serviceType2s=${params.serviceType2s}&dataDomains=${params.dataDomains}&
organizeIds=${params.organizeIds}&orderBy=${params.orderBy}& organizeIds=${params.organizeIds}&orderBy=${params.orderBy}&
Page=${params.Page}&Size=${params.Size}`); page=${params.Page}&size=${params.Size}`);
}, },
getServiceShopDetail(params) { getServiceShopDetail(params) {
return axios.get(`/apaas/serviceapp/v3/servicemarket/detail?serviceId=`) return axios.get(`/apaas/serviceapp/v3/servicemarket/detail?serviceId=`)
......
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