新增判断q=4,为质量工厂使用
This commit is contained in:
parent
361eb15f51
commit
f5ab5c09b4
20
src/App.vue
20
src/App.vue
|
|
@ -1,19 +1,31 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<datav />
|
|
||||||
|
<datav2 v-if="dataType==4"/>
|
||||||
|
<datav v-else/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import datav from './components/baozuo-demo/index.vue'
|
import datav from './components/baozuo-demo/index.vue'
|
||||||
|
import datav2 from './components/baozuo-demo2/index.vue'
|
||||||
// import datav from './components/datav/index.vue'
|
// import datav from './components/datav/index.vue'
|
||||||
// import datav from './components/zidingyi/index.vue'
|
// import datav from './components/zidingyi/index.vue'
|
||||||
import datav from './components/baozuo-demo2/index.vue'
|
|
||||||
|
|
||||||
|
const queryParams = new URLSearchParams(window.location.search);
|
||||||
|
const dataTypeParam = queryParams.get('q');
|
||||||
export default {
|
export default {
|
||||||
name: 'app',
|
name: 'app',
|
||||||
components: {
|
components: {
|
||||||
datav
|
datav,datav2
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataType: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.dataType = dataTypeParam;
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
// 修改模板部分
|
// 修改模板部分
|
||||||
<template>
|
<template>
|
||||||
<div class="center-cmp">
|
<div class="center-cmp2">
|
||||||
<div class="cc-header"></div>
|
<div class="cc-header"></div>
|
||||||
<div class="cc-main-container">
|
<div class="cc-main-container">
|
||||||
<div class="ccmc-right">
|
<div class="ccmc-right-new">
|
||||||
<dv-border-box-1>
|
<dv-border-box-1>
|
||||||
<div class="ccmc-title">
|
<div class="ccmc-title">
|
||||||
<span class="title-decoration"></span>
|
<span class="title-decoration"></span>
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
<PieChart :dataType="dataType" style="height:500px;"></PieChart>
|
<PieChart :dataType="dataType" style="height:500px;"></PieChart>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ccmc-left">
|
<div class="ccmc-left-new">
|
||||||
<dv-border-box-1>
|
<dv-border-box-1>
|
||||||
<div class="ccmc-title">
|
<div class="ccmc-title">
|
||||||
<span class="title-decoration"></span>
|
<span class="title-decoration"></span>
|
||||||
|
|
@ -202,13 +202,13 @@ export default {
|
||||||
{ name: 'W3A', value: 98 },
|
{ name: 'W3A', value: 98 },
|
||||||
],
|
],
|
||||||
rightChartData: [
|
rightChartData: [
|
||||||
{ name: '注塑件', value: Math.floor(Math.random() * 100) },
|
{ name: '注塑件', value: 98 },
|
||||||
{ name: '五金件', value: Math.floor(Math.random() * 100) },
|
{ name: '五金件', value: 99 },
|
||||||
{ name: '橡硅胶件', value: Math.floor(Math.random() * 100) },
|
{ name: '橡硅胶件', value: 100 },
|
||||||
{ name: '包材件', value: Math.floor(Math.random() * 100) },
|
{ name: '包材件', value: 99 },
|
||||||
{ name: '电子件', value: Math.floor(Math.random() * 100) },
|
{ name: '电子件', value: 92 },
|
||||||
{ name: '组件', value: Math.floor(Math.random() * 100) },
|
{ name: '组件', value: 92 },
|
||||||
{ name: '陶瓷', value: Math.floor(Math.random() * 100) }
|
{ name: '陶瓷', value: 94 }
|
||||||
],
|
],
|
||||||
|
|
||||||
leftData: this.dataType == '3'?originalLeftData2:originalLeftData,
|
leftData: this.dataType == '3'?originalLeftData2:originalLeftData,
|
||||||
|
|
@ -489,7 +489,7 @@ export default {
|
||||||
.middle-top {
|
.middle-top {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
margin-top: -50px;
|
margin-top: -50px;
|
||||||
// margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
to bottom,
|
to bottom,
|
||||||
rgba(135, 178, 252, 0.04), /* 蓝色透明度15% */
|
rgba(135, 178, 252, 0.04), /* 蓝色透明度15% */
|
||||||
|
|
@ -551,7 +551,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.center-cmp {
|
.center-cmp2 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|
@ -634,7 +634,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ccmc-left, .ccmc-right {
|
.ccmc-left-new, .ccmc-right-new {
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
|
@ -712,12 +712,12 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ccmc-left {
|
.ccmc-left-new {
|
||||||
margin-top: -70px;
|
margin-top: -70px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ccmc-right {
|
.ccmc-right-new {
|
||||||
margin-top: -70px;
|
margin-top: -70px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
var myChart = echarts.init(document.getElementById('pieId-new'));
|
var myChart = echarts.init(document.getElementById('pieId-new'));
|
||||||
this.option = {
|
this.option = {
|
||||||
title: {
|
title: {
|
||||||
text: '当月不良指标数',
|
text: '本月不良指标数',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue