Commit 2d2725e8 by cwq0219

合并

2 parents 704497a8 c468344d
...@@ -2313,6 +2313,14 @@ ...@@ -2313,6 +2313,14 @@
} }
} }
}, },
<<<<<<< HEAD
"babel-helper-vue-jsx-merge-props": {
"version": "2.0.3",
"resolved": "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY="
},
=======
>>>>>>> 76f1b35103c5a4a241e5b087150836692b2a4721
"babel-helpers": { "babel-helpers": {
"version": "6.24.1", "version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz",
...@@ -4896,6 +4904,15 @@ ...@@ -4896,6 +4904,15 @@
"safer-buffer": "^2.1.0" "safer-buffer": "^2.1.0"
} }
}, },
"echarts": {
"version": "5.0.0",
"resolved": "https://registry.npm.taobao.org/echarts/download/echarts-5.0.0.tgz",
"integrity": "sha1-ZuwOpH48k7Kq37stcZhpkyrRPOA=",
"requires": {
"tslib": "1.10.0",
"zrender": "5.0.1"
}
},
"editorconfig": { "editorconfig": {
"version": "0.15.3", "version": "0.15.3",
"resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz",
...@@ -4950,6 +4967,22 @@ ...@@ -4950,6 +4967,22 @@
"integrity": "sha512-11F8S49B+8AJy5V540BofxvJ1tWP4wZZ0sOre6KF32evS1YSHXiUB7+TQ/mjrfzg1lirnlA8XDdU8CDcJrBCbA==", "integrity": "sha512-11F8S49B+8AJy5V540BofxvJ1tWP4wZZ0sOre6KF32evS1YSHXiUB7+TQ/mjrfzg1lirnlA8XDdU8CDcJrBCbA==",
"dev": true "dev": true
}, },
<<<<<<< HEAD
"element-ui": {
"version": "2.14.1",
"resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.14.1.tgz",
"integrity": "sha1-i1dFxzZsHBpgO7bAIShupxh+KqI=",
"requires": {
"async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0",
"deepmerge": "^1.2.0",
"normalize-wheel": "^1.0.1",
"resize-observer-polyfill": "^1.5.0",
"throttle-debounce": "^1.0.1"
}
},
=======
>>>>>>> 76f1b35103c5a4a241e5b087150836692b2a4721
"elliptic": { "elliptic": {
"version": "6.5.0", "version": "6.5.0",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.0.tgz", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.0.tgz",
...@@ -10647,6 +10680,14 @@ ...@@ -10647,6 +10680,14 @@
"integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==", "integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==",
"dev": true "dev": true
}, },
<<<<<<< HEAD
"normalize-wheel": {
"version": "1.0.1",
"resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
},
=======
>>>>>>> 76f1b35103c5a4a241e5b087150836692b2a4721
"npm-run-path": { "npm-run-path": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
...@@ -12658,6 +12699,14 @@ ...@@ -12658,6 +12699,14 @@
"integrity": "sha1-79qpjqdFEyTQkrKyFjpqHXqaIUc=", "integrity": "sha1-79qpjqdFEyTQkrKyFjpqHXqaIUc=",
"dev": true "dev": true
}, },
<<<<<<< HEAD
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.npm.taobao.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
},
=======
>>>>>>> 76f1b35103c5a4a241e5b087150836692b2a4721
"resolve": { "resolve": {
"version": "1.12.0", "version": "1.12.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz",
...@@ -14394,6 +14443,14 @@ ...@@ -14394,6 +14443,14 @@
"integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=",
"dev": true "dev": true
}, },
<<<<<<< HEAD
"throttle-debounce": {
"version": "1.1.0",
"resolved": "https://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz?cache=0&sync_timestamp=1604313832516&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fthrottle-debounce%2Fdownload%2Fthrottle-debounce-1.1.0.tgz",
"integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0="
},
=======
>>>>>>> 76f1b35103c5a4a241e5b087150836692b2a4721
"through": { "through": {
"version": "2.3.8", "version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
...@@ -14586,8 +14643,7 @@ ...@@ -14586,8 +14643,7 @@
"tslib": { "tslib": {
"version": "1.10.0", "version": "1.10.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
"integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ=="
"dev": true
}, },
"tty-browserify": { "tty-browserify": {
"version": "0.0.0", "version": "0.0.0",
...@@ -15886,6 +15942,14 @@ ...@@ -15886,6 +15942,14 @@
"dev": true "dev": true
} }
} }
},
"zrender": {
"version": "5.0.1",
"resolved": "https://registry.npm.taobao.org/zrender/download/zrender-5.0.1.tgz?cache=0&sync_timestamp=1605884134992&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzrender%2Fdownload%2Fzrender-5.0.1.tgz",
"integrity": "sha1-zDdxNqnQDQoXfKf2XDKu0pAZKNo=",
"requires": {
"tslib": "1.10.0"
}
} }
} }
} }
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
</div> </div>
</el-row> </el-row>
</div> --> </div> -->
<div class="show-num"> <div class="show-num">
<div class="num-block"> <div class="num-block">
<p>{{ TopNumberData.customerCount || 0 }}</p> <p>{{ TopNumberData.customerCount || 0 }}</p>
...@@ -30,42 +31,27 @@ ...@@ -30,42 +31,27 @@
</div> </div>
</div> </div>
<el-row :gutter="50"> <el-row :gutter="40">
<div class="charts"> <div class="charts">
<el-col :span="12"> <el-col :span="12">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<div <div class="chart" id="decivceType"></div>
class="chart"
id="decivceType"
></div>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<div <div class="chart" id="serviceType"></div>
class="chart"
id="serviceType"
></div>
</div> </div>
</el-col> </el-col>
</div> </div>
</el-row> </el-row>
<p class="Trend">设备接入趋势</p> <p class="Trend">设备接入趋势</p>
<div <div id="AccessTrend" style="width: 100%; height: 400px"></div>
id="AccessTrend"
style="width: 100%; height: 400px"
></div>
<p class="Trend">服务调用趋势</p> <p class="Trend">服务调用趋势</p>
<div <div id="CallTrend" style="width: 100%; height: 400px"></div>
id="CallTrend"
style="width: 100%; height: 400px"
></div>
</d2-container> </d2-container>
</template> </template>
...@@ -85,12 +71,13 @@ export default { ...@@ -85,12 +71,13 @@ export default {
// 绘图 // 绘图
option: { option: {
title: { title: {
top: '20', top: '20',
text: '', text: '',
subtext: '', subtext: '',
left: '20' left: '20'
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
...@@ -173,6 +160,13 @@ export default { ...@@ -173,6 +160,13 @@ export default {
name: item.deviceType name: item.deviceType
} }
}) })
// 无数据显示
// if( option1.legend.data =="" || option1.series[0].data=="" ){
// option1.title.text = "暂无数据"
// option1.legend.data = ['none']
// option1.series[0].data = ['暂无数据']
// console.log( option1.title.text)
// }
// 右图 // 右图
var option2 = _.cloneDeep(this.option) var option2 = _.cloneDeep(this.option)
...@@ -203,8 +197,12 @@ export default { ...@@ -203,8 +197,12 @@ export default {
// console.log(option2.series[0].data) // console.log(option2.series[0].data)
// 渲染 // 渲染
this.totalEChart2.setOption(option2) this.totalEChart2.setOption(option2)
window.onresize = this.totalEChart2.resize
this.totalECharts.setOption(option1) this.totalECharts.setOption(option1)
window.onresize = this.totalECharts.resize
}) })
// 折线图数据获取 // 折线图数据获取
...@@ -221,14 +219,14 @@ export default { ...@@ -221,14 +219,14 @@ export default {
x2: 10, x2: 10,
y2: 50 y2: 50
} }
option3.xAxis.data = res.deviceAccessTrendList.map(item => item.activatTime) option3.xAxis.data = res.deviceAccessTrendList.map((item) => item.activatTime)
option3.series[0].data = res.deviceAccessTrendList.map(item => item.num) option3.series[0].data = res.deviceAccessTrendList.map((item) => item.num)
// console.log(option3) // console.log(option3)
// 服务调用趋势 // 服务调用趋势
var option4 = _.cloneDeep(this.Trendoption) var option4 = _.cloneDeep(this.Trendoption)
option4.xAxis.data = res.apiCallTrendList.map(item => item.createTime) option4.xAxis.data = res.apiCallTrendList.map((item) => item.createTime)
option4.series[0].data = res.apiCallTrendList.map(item => item.num) option4.series[0].data = res.apiCallTrendList.map((item) => item.num)
option4.grid = { option4.grid = {
x: 30, x: 30,
y: 50, y: 50,
...@@ -237,6 +235,7 @@ export default { ...@@ -237,6 +235,7 @@ export default {
} }
this.trendCharts.setOption(option3) this.trendCharts.setOption(option3)
this.apiCallCharts.setOption(option4) this.apiCallCharts.setOption(option4)
}) })
...@@ -288,6 +287,39 @@ export default { ...@@ -288,6 +287,39 @@ export default {
} }
</script> </script>
<style> <style>
/* html {
overflow-y: scroll;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body {
position: absolute;
}
body {
width: 100vw;
overflow: hidden;
} */
.indexPage{
overflow-y: scroll;
}
:root {
overflow-y: auto;
overflow-x: hidden;
}
:root body.indexPage {
position: absolute;
}
body.indexPage{
width: 100vw;
overflow: hidden;
}
.show-num { .show-num {
display: flex; display: flex;
} }
...@@ -324,6 +356,8 @@ export default { ...@@ -324,6 +356,8 @@ export default {
.grid-content { .grid-content {
border-radius: 4px; border-radius: 4px;
min-height: 36px; min-height: 36px;
min-width: 100px;
} }
.row-bg { .row-bg {
padding: 10px 0; padding: 10px 0;
...@@ -339,10 +373,12 @@ export default { ...@@ -339,10 +373,12 @@ export default {
} }
.charts { .charts {
display: flex; display: flex;
} }
.chart { .chart {
border: 1px solid #999999; border: 1px solid #999999;
width: 100%; width: 100%;
height: 400px; height: 400px;
min-width: 100px;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!