Commit cbbf4db0 by zhangquan

页面开发

1 parent 738effea
......@@ -1536,6 +1536,11 @@
}
}
},
"base64-arraybuffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
"integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ=="
},
"base64-js": {
"version": "1.3.0",
"resolved": "http://registry.npm.taobao.org/base64-js/download/base64-js-1.3.0.tgz",
......@@ -2862,6 +2867,14 @@
"integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=",
"dev": true
},
"css-line-break": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz",
"integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==",
"requires": {
"utrie": "^1.0.2"
}
},
"css-loader": {
"version": "0.28.11",
"resolved": "http://registry.npm.taobao.org/css-loader/download/css-loader-0.28.11.tgz",
......@@ -6239,6 +6252,15 @@
}
}
},
"html2canvas": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz",
"integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==",
"requires": {
"css-line-break": "^2.1.0",
"text-segmentation": "^1.0.3"
}
},
"htmlparser2": {
"version": "3.10.1",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
......@@ -12827,6 +12849,14 @@
}
}
},
"text-segmentation": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz",
"integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==",
"requires": {
"utrie": "^1.0.2"
}
},
"text-table": {
"version": "0.2.0",
"resolved": "http://registry.npm.taobao.org/text-table/download/text-table-0.2.0.tgz",
......@@ -13401,6 +13431,14 @@
"integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
"dev": true
},
"utrie": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz",
"integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==",
"requires": {
"base64-arraybuffer": "^1.0.2"
}
},
"uuid": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
......
......@@ -23,6 +23,7 @@
"element-ui": "^2.13.2",
"es6-promise": "^4.2.4",
"font-awesome": "^4.7.0",
"html2canvas": "^1.4.1",
"moment": "^2.22.0",
"node-sass": "^7.0.1",
"qs": "^6.5.1",
......
......@@ -69,8 +69,8 @@
<div class="right-box" v-show="boxShow">
<!-- 用车行为分析 -->
<div class="use-car-box">
<div class="title">用车行为分析</div>
<div class="x-name"><span>{{ linetype== 1 ? '周' : '天' }}</span><span v-if="lineChartsYear">-{{ lineChartsYear }}年</span></div>
<div class="title">用车行为分析<div class="detail-btn" @click="goDetailPage()">风险评估详情</div></div>
<div class="x-name" v-if="xAxisDataList.length"><span>{{ linetype== 1 ? '周' : '天' }}</span><span v-if="lineChartsYear">-{{ lineChartsYear }}年</span></div>
<div class="line-charts" v-if="xAxisDataList.length">
<LineCharts id="useCarCharts" ref="useCarChartsRef" height="250px" :linetype="linetype" :dataList="useCarData"
:xAxisData="xAxisDataList" :lineChartsYear="lineChartsYear"></LineCharts>
......@@ -181,6 +181,9 @@ export default {
},
methods: {
goDetailPage() {
this.$router.push({name:'riskAssessDetail'})
},
resetWidth() {
const homePage = document.querySelector('.desktop-left-sider');
// 创建 ResizeObserver 对象
......@@ -593,6 +596,21 @@ export default {
top: 10px;
right: 26px;
z-index: 9999;
.title{
display: flex;
align-items: center;
justify-content: space-between;
.detail-btn{
cursor: pointer;
width: 116px;
text-align: center;
color: #fff;
height: 32px;
line-height: 32px;
background: #0077FF;
border-radius: 4px;
}
}
}
.detail-box {
......@@ -669,7 +687,7 @@ export default {
color: #6e7079;
position: absolute;
right: 20px;
top: 30px;
top: 50px;
}
.title {
font-weight: 500;
......
......@@ -63,6 +63,8 @@ const tool = () => import(/* webpackChunkName: "tool" */ 'pages/tool/index.vue')
const zoneCar = () => import(/* webpackChunkName: "zoneCar" */ 'pages/monitor/zoneCar.vue')
const riskAssessDetail = () => import(/* webpackChunkName: "riskAssessDetail" */ 'pages/monitor/detail')
const routes = [
/* {
path: '*',
......@@ -335,6 +337,11 @@ const routes = [
name: 'gqReport',
meta: { title: '报表管理(广汽)' },
component: gqReport
},{
path: 'riskAssessDetail',
name: 'riskAssessDetail',
meta: { title: '风险评估详情' },
component: riskAssessDetail
}]
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!