Commit 12443509 authored by 刘殿昕's avatar 刘殿昕

仪表盘数据,fix超市列表筛选,列表+滚动条,云资源详情

parent d8c6cc83
...@@ -7,35 +7,53 @@ import { graphic } from "echarts/lib/export"; ...@@ -7,35 +7,53 @@ import { graphic } from "echarts/lib/export";
export default { export default {
props: { props: {
data: { data: {
type: Array, type: Object,
default: () => [] default: () => {
data = 40;
text = "模拟数据1.0";
}
},
dangerousValue: {
type: String,
default: ""
} }
}, },
data: () => ({ data: () => ({
navList: [], navList: []
}), }),
mounted() { mounted() {},
},
methods: { methods: {
dashboard() { dashboard() {
let self = this; let self = this;
return { return {
title: { title: [
text: "20%", {
subtext: "sssss", text: self.data.data + "{a|%}",
x: "center", x: "center",
y: "center", y: "center",
textStyle: { textStyle: {
fontSize: 26, fontSize: 36,
fontWeight: "normal", fontWeight: "lighter",
color: ["#67828c"] color: ["#67828c"],
rich: {
a: {
fontSize: 14,
padding: [0, 0, 4, 0]
}
}
}
}, },
subtextStyle: { {
color: "#67828c", text: self.data.text,
fontSize: 16, x: "center",
align: "center" y: "58%",
textStyle: {
fontSize: 12,
fontWeight: "normal",
color: "#707693"
}
} }
}, ],
angleAxis: { angleAxis: {
axisLine: { axisLine: {
show: false show: false
...@@ -73,7 +91,7 @@ export default { ...@@ -73,7 +91,7 @@ export default {
series: [ series: [
{ {
type: "bar", type: "bar",
data: [, 40], data: [, self.data.data],
coordinateSystem: "polar", coordinateSystem: "polar",
barMaxWidth: 10, barMaxWidth: 10,
z: 1, z: 1,
...@@ -81,10 +99,18 @@ export default { ...@@ -81,10 +99,18 @@ export default {
roundCap: true, roundCap: true,
itemStyle: { itemStyle: {
normal: { normal: {
color: new graphic.LinearGradient(0, 0, 0, 1, [ color:
{ offset: 0, color: "#25bdb1" }, self.dangerousValue == "high"
{ offset: 1, color: "#e7fdfc" } ? self.data.data >= 80
]) ? "#e15260"
: "#515fe7"
: self.data.data > 75
? "#00cfc6"
: self.data.data > 50
? "#54cefd"
: self.data.data > 25
? "#54cefd"
: "#25bdb1"
} }
}, },
barGap: "-100%" barGap: "-100%"
...@@ -126,7 +152,7 @@ export default { ...@@ -126,7 +152,7 @@ export default {
show: true, show: true,
splitNumber: 5, splitNumber: 5,
lineStyle: { lineStyle: {
color: "#a9aec0", color: "#c9cee0",
width: 1 width: 1
}, },
length: 4 length: 4
...@@ -135,7 +161,7 @@ export default { ...@@ -135,7 +161,7 @@ export default {
show: true, show: true,
length: 6, length: 6,
lineStyle: { lineStyle: {
color: "#a9aec0" color: "#c9cee0"
} }
}, //分隔线样式 }, //分隔线样式
detail: { detail: {
...@@ -160,7 +186,7 @@ export default { ...@@ -160,7 +186,7 @@ export default {
} }
}, },
data: [, 40] data: [, self.data.data]
} }
] ]
}; };
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
}, },
url: { type: String, default: "" }, url: { type: String, default: "" },
name: { type: String, default: "" }, name: { type: String, default: "" },
filterNmaes: { filterNames: {
type: Array, type: Array,
default: () => { default: () => {
[]; [];
...@@ -251,12 +251,19 @@ export default { ...@@ -251,12 +251,19 @@ export default {
} }
] ]
}); });
} else {
this.$set(this.filterLists, 0, {
id: 110,
name: "",
prop: "",
childDomains: []
});
} }
this.getShopFilter(); this.getShopFilter();
} }
} }
}, },
filterNmaes: { filterNames: {
handler(val) { handler(val) {
for (let i = 0; i < val.length; i++) { for (let i = 0; i < val.length; i++) {
this.filterLists[i + 1].name = val[i]; this.filterLists[i + 1].name = val[i];
......
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
:stripe="true" :stripe="true"
:datas="dataDiskList" :datas="dataDiskList"
@primary-del="delItem" @primary-del="delItem"
height="300" height="260"
></table-um> ></table-um>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
default-expand-all default-expand-all
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
ref="cesTable" ref="cesTable"
class="table_scoller"
:class="radius ? 'table_radius' : ''" :class="radius ? 'table_radius' : ''"
:header-cell-class-name="headerCellClassName" :header-cell-class-name="headerCellClassName"
v-cloak v-cloak
...@@ -853,6 +854,25 @@ em { ...@@ -853,6 +854,25 @@ em {
border: 0; border: 0;
padding: 0; padding: 0;
} }
.table_scoller .el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width: 16px; /*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
.table_scoller .el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 8px;
/* background: #dde4ff; */
box-shadow: 8px 0 0 #bcc1d0 inset;
border: 4px solid rgba(0, 0, 0, 0);
}
.table_scoller .el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
border-radius: 8px;
/* background: #f4f4f4; */
box-shadow: 8px 0 0 #f8f8f8 inset;
border: 4px solid rgba(0, 0, 0, 0);
}
</style> </style>
<style scoped> <style scoped>
.ces-table { .ces-table {
......
...@@ -43,7 +43,8 @@ export default { ...@@ -43,7 +43,8 @@ export default {
</script> </script>
<style scoped> <style scoped>
.href { .href {
color: #264dd9 !important; color: #0f2683;
font-weight: 700;
cursor: pointer; cursor: pointer;
} }
</style> </style>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<service-shop-menu></service-shop-menu> <service-shop-menu></service-shop-menu>
</el-aside> </el-aside>
<el-main> <el-main>
<service-list :filterNmaes="filterNmaes" :name="name" :url="url" :urlFilter="urlFilter"></service-list> <service-list :filterNames="filterNames" :name="name" :url="url" :urlFilter="urlFilter"></service-list>
</el-main> </el-main>
</el-container> </el-container>
</div> </div>
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
urlFilter: "", urlFilter: "",
url: "", url: "",
name: "", name: "",
filterNmaes: [] filterNames: []
}), }),
mounted() { mounted() {
this.getVal(this.$route.path); this.getVal(this.$route.path);
...@@ -37,43 +37,43 @@ export default { ...@@ -37,43 +37,43 @@ export default {
this.name = "数据服务"; this.name = "数据服务";
this.urlFilter = "5"; this.urlFilter = "5";
this.url = "/shop/sjfwDetail"; this.url = "/shop/sjfwDetail";
this.filterNmaes = ["数据服务类型", "数据领域", "数据来源机构"]; this.filterNames = ["数据服务类型", "数据领域", "数据来源机构"];
break; break;
case "space_time_service_list": case "space_time_service_list":
this.name = "时空服务"; this.name = "时空服务";
this.urlFilter = "6"; this.urlFilter = "6";
this.url = "/shop/skfwDetail"; this.url = "/shop/skfwDetail";
this.filterNmaes = ["数据服务类型", "数据领域", "数据来源机构"]; this.filterNames = ["时空服务类型", "应用领域", "服务来源组织"];
break; break;
case "video_service_list": case "video_service_list":
this.name = "视频服务"; this.name = "视频服务";
this.urlFilter = "7"; this.urlFilter = "7";
this.url = ""; this.url = "";
this.filterNmaes = []; this.filterNames = [];
break; break;
case "perception_service_list": case "perception_service_list":
this.name = "感知服务"; this.name = "感知服务";
this.urlFilter = "10"; this.urlFilter = "10";
this.url = ""; this.url = "";
this.filterNmaes = []; this.filterNames = [];
break; break;
case "comprehensive_app_list": case "comprehensive_app_list":
this.name = "综合服务"; this.name = "综合服务";
this.urlFilter = "21"; this.urlFilter = "21";
this.url = "/shop/zhfwDetail"; this.url = "/shop/zhfwDetail";
this.filterNmaes = ["数据服务类型", "数据领域", "数据来源机构"]; this.filterNames = ["服务类型", "应用领域", "服务来源组织"];
break; break;
case "app_store_list": case "app_store_list":
this.name = "应用商店"; this.name = "应用商店";
this.urlFilter = "app"; this.urlFilter = "app";
this.url = "/shop/yysdDetail"; this.url = "/shop/yysdDetail";
this.filterNmaes = ["应用类型", "应用领域", "应用来源机构"]; this.filterNames = ["应用类型", "应用领域", "应用来源机构"];
break; break;
default: default:
this.name = ""; this.name = "";
this.urlFilter = ""; this.urlFilter = "";
this.url = ""; this.url = "";
this.filterNmaes = []; this.filterNames = [];
break; break;
} }
} }
......
This diff is collapsed.
...@@ -27,6 +27,27 @@ const workbench = { ...@@ -27,6 +27,27 @@ const workbench = {
getAppParams(params) { getAppParams(params) {
return axios.get(`/apaas/hubApi/market/values/${params.app_id}`) return axios.get(`/apaas/hubApi/market/values/${params.app_id}`)
}, },
// get cloud resources details
getCloudDetail(params) {
return axios.get(`/apaas/service/v3/resource/user/apply/approvedDetail?type=${params.type}&applyid=${params.applyId}`)
},
// cloud resource approval
setCloudApproval(params) {
return axios.put(`/apaas/service/v3/resource/apply/approve?apply_id=${params.applyId}&apply_state=${params.applyState}&apply_type=${params.applyType}&cloud_id=${params.applyCloudId}`, params)
},
// cloud resource allocation
setCloudAllocation(params) {
return axios.put(`/apaas/service/v3/resource/apply/distribution?id=${params.id}&user_id=${params.userId}`)
},
// cloud resource delete
deleteCloud(params) {
return axios.delete(`/apaas/service/v3/resource/apply/remove?id=${params.id}`)
},
// cloud resource disabled
disabledCloud(params) {
return axios.put(`/apaas/service/v3/resource/apply/disable?id=${params.id}&type=${params.type}`)
},
} }
export default workbench; export default workbench;
...@@ -56,7 +56,7 @@ const errorHandle = (status, other) => { ...@@ -56,7 +56,7 @@ const errorHandle = (status, other) => {
} }
// 创建axios实例 // 创建axios实例
var instance = axios.create({ timeout: 1000 * 12 }); var instance = axios.create({ timeout: 1000 * 30 });
// 设置post请求头 // 设置post请求头
instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; instance.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
/** /**
......
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