优化
This commit is contained in:
@@ -223,49 +223,49 @@ export const homepageDataLeft = () => {
|
|||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料一',
|
'materialName': '物料一',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料二',
|
'materialName': '物料二',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料三',
|
'materialName': '物料三',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料四',
|
'materialName': '物料四',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料五',
|
'materialName': '物料五',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料6',
|
'materialName': '物料6',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// 物料编码
|
// 物料编码
|
||||||
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
|
||||||
'materialName': '物料7',
|
'materialName': '物料7',
|
||||||
// 数量
|
// 数量
|
||||||
'qty': 100
|
'qty': 7
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -311,7 +311,7 @@ export const homepageDataRight = () => {
|
|||||||
'top10Of30Days': [
|
'top10Of30Days': [
|
||||||
{
|
{
|
||||||
'deviceName': '压机1',
|
'deviceName': '压机1',
|
||||||
'count': 10
|
'count': 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'deviceName': '压机2',
|
'deviceName': '压机2',
|
||||||
|
|||||||
@@ -105,8 +105,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { homepageDataLeft } from '@js/mork2.js'
|
import { homepageDataLeft } from '@js/mork2.js'
|
||||||
import { homepageDataLeft } from '@js/getData2.js'
|
// import { homepageDataLeft } from '@js/getData2.js'
|
||||||
import symbol1 from '@img/symbol_1.png'
|
import symbol1 from '@img/symbol_1.png'
|
||||||
import symbol2 from '@img/symbol_2.png'
|
import symbol2 from '@img/symbol_2.png'
|
||||||
import symbol3 from '@img/symbol_3.png'
|
import symbol3 from '@img/symbol_3.png'
|
||||||
@@ -648,22 +648,6 @@ export default {
|
|||||||
let seriesData = []
|
let seriesData = []
|
||||||
this.inventory.forEach(r => {
|
this.inventory.forEach(r => {
|
||||||
seriesData.push(r)
|
seriesData.push(r)
|
||||||
seriesData.push({
|
|
||||||
name: '',
|
|
||||||
value: 5,
|
|
||||||
tooltip: { show: false },
|
|
||||||
itemStyle: {
|
|
||||||
label: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
labelLine: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
color: 'rgba(0, 0, 0, 0)',
|
|
||||||
borderColor: 'rgba(0, 0, 0, 0)',
|
|
||||||
borderWidth: 0
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
let option = {
|
let option = {
|
||||||
color: ['#1980EA', '#67D470', '#B4C9EF', '#BCBF5C', '#EF5252', '#6d5edd', '#bf41bb'],
|
color: ['#1980EA', '#67D470', '#B4C9EF', '#BCBF5C', '#EF5252', '#6d5edd', '#bf41bb'],
|
||||||
@@ -706,6 +690,10 @@ export default {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
itemStyle: {
|
||||||
|
borderColor: 'RGBA(27, 58, 98, .5)',
|
||||||
|
borderWidth: 2
|
||||||
|
},
|
||||||
label: {
|
label: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
@@ -750,7 +738,6 @@ export default {
|
|||||||
barName.push(el.date)
|
barName.push(el.date)
|
||||||
barData1.push(el.press)
|
barData1.push(el.press)
|
||||||
barData2.push(el.sort)
|
barData2.push(el.sort)
|
||||||
totalDate.push(total)
|
|
||||||
})
|
})
|
||||||
let option = {
|
let option = {
|
||||||
grid: {
|
grid: {
|
||||||
@@ -776,10 +763,10 @@ export default {
|
|||||||
y2: 1,
|
y2: 1,
|
||||||
colorStops: [{
|
colorStops: [{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: 'rgba(254,254,254,0.1)'
|
color: 'rgba(254,254,254,0)'
|
||||||
}, {
|
}, {
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: 'rgba(254,254,254,0.8)'
|
color: 'rgba(254,254,254,0)'
|
||||||
}],
|
}],
|
||||||
global: false
|
global: false
|
||||||
}
|
}
|
||||||
@@ -930,40 +917,11 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '阴影',
|
name: '阴影',
|
||||||
type: 'bar',
|
type: 'pictorialBar',
|
||||||
barWidth: '38px',
|
barWidth: '38px',
|
||||||
itemStyle: {
|
symbol: 'image://' + img.imgSrc3,
|
||||||
normal: {
|
|
||||||
color: {
|
|
||||||
type: 'linear',
|
|
||||||
x: 0,
|
|
||||||
y: 0,
|
|
||||||
x2: 0,
|
|
||||||
y2: 1,
|
|
||||||
colorStops: [
|
|
||||||
{
|
|
||||||
offset: 0.1,
|
|
||||||
color: 'rgba(254,254,254,0.1)'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
offset: 1,
|
|
||||||
color: 'rgba(254,254,254,0.1)'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data: totalDate,
|
data: totalDate,
|
||||||
z: -1
|
z: -1
|
||||||
// name: '阴影',
|
|
||||||
// type: 'pictorialBar',
|
|
||||||
// barWidth: '38px',
|
|
||||||
// symbol: 'image://' + img.imgSrc3,
|
|
||||||
// data: totalDate,
|
|
||||||
// itemStyle: {
|
|
||||||
// opacity: itemOpacity
|
|
||||||
// },
|
|
||||||
// z: -1
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -974,11 +932,23 @@ export default {
|
|||||||
if (len === barName.length) {
|
if (len === barName.length) {
|
||||||
len = 0
|
len = 0
|
||||||
}
|
}
|
||||||
|
totalDate[len] = total
|
||||||
|
echart.setOption({
|
||||||
|
series: [{
|
||||||
|
data: barData1
|
||||||
|
}, {
|
||||||
|
data: barData2
|
||||||
|
}, {
|
||||||
|
data: totalDate
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
echart.dispatchAction({
|
echart.dispatchAction({
|
||||||
type: 'showTip',
|
type: 'showTip',
|
||||||
seriesIndex: 0,
|
seriesIndex: 0,
|
||||||
dataIndex: len
|
dataIndex: len
|
||||||
})
|
})
|
||||||
|
totalDate = []
|
||||||
len++
|
len++
|
||||||
}, 2000)
|
}, 2000)
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { homepageEquipment } from '@js/mork2.js'
|
import { homepageEquipment } from '@js/mork2.js'
|
||||||
import { homepageEquipment } from '@js/getData2.js'
|
// import { homepageEquipment } from '@js/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
@@ -58,7 +58,7 @@ export default {
|
|||||||
defaultOption1 () {
|
defaultOption1 () {
|
||||||
return {
|
return {
|
||||||
step: 0.4, // 数值越大速度滚动越快
|
step: 0.4, // 数值越大速度滚动越快
|
||||||
limitMoveNum: 55, // 开始无缝滚动的数据量 this.dataList.length
|
limitMoveNum: 5, // 开始无缝滚动的数据量 this.dataList.length
|
||||||
hoverStop: true, // 是否开启鼠标悬停stop
|
hoverStop: true, // 是否开启鼠标悬停stop
|
||||||
direction: 1, // 0向下 1向上 2向左 3向右
|
direction: 1, // 0向下 1向上 2向左 3向右
|
||||||
openWatch: true, // 开启数据实时监控刷新dom
|
openWatch: true, // 开启数据实时监控刷新dom
|
||||||
@@ -130,12 +130,7 @@ export default {
|
|||||||
_wh(100%, 40px)
|
_wh(100%, 40px)
|
||||||
border-bottom 1px solid rgba(122,159,224,0.17)
|
border-bottom 1px solid rgba(122,159,224,0.17)
|
||||||
background-color rgba(31,46,73,0.9)
|
background-color rgba(31,46,73,0.9)
|
||||||
&:nth-child(2)
|
opacity: 0.9
|
||||||
opacity: 0.9
|
|
||||||
&:nth-child(3)
|
|
||||||
opacity: 0.7
|
|
||||||
&:nth-child(4)
|
|
||||||
opacity: 0.5
|
|
||||||
.scroll-ul_1_div
|
.scroll-ul_1_div
|
||||||
float left
|
float left
|
||||||
height 40px
|
height 40px
|
||||||
|
|||||||
@@ -99,8 +99,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import { homepageDataRight } from '@js/mork2.js'
|
import { homepageDataRight } from '@js/mork2.js'
|
||||||
import { homepageDataRight } from '@js/getData2.js'
|
// import { homepageDataRight } from '@js/getData2.js'
|
||||||
import bg1 from '@img/bg1.png'
|
import bg1 from '@img/bg1.png'
|
||||||
import bg2 from '@img/bg2.png'
|
import bg2 from '@img/bg2.png'
|
||||||
import bg3 from '@img/bg3.png'
|
import bg3 from '@img/bg3.png'
|
||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
defaultOption1 () {
|
defaultOption1 () {
|
||||||
return {
|
return {
|
||||||
step: 0.4, // 数值越大速度滚动越快
|
step: 0.4, // 数值越大速度滚动越快
|
||||||
limitMoveNum: 55, // 开始无缝滚动的数据量 this.dataList.length
|
limitMoveNum: 5, // 开始无缝滚动的数据量 this.dataList.length
|
||||||
hoverStop: true, // 是否开启鼠标悬停stop
|
hoverStop: true, // 是否开启鼠标悬停stop
|
||||||
direction: 1, // 0向下 1向上 2向左 3向右
|
direction: 1, // 0向下 1向上 2向左 3向右
|
||||||
openWatch: true, // 开启数据实时监控刷新dom
|
openWatch: true, // 开启数据实时监控刷新dom
|
||||||
@@ -342,22 +342,6 @@ export default {
|
|||||||
let seriesData = []
|
let seriesData = []
|
||||||
arr.forEach(r => {
|
arr.forEach(r => {
|
||||||
seriesData.push(r)
|
seriesData.push(r)
|
||||||
seriesData.push({
|
|
||||||
name: '',
|
|
||||||
value: 5,
|
|
||||||
tooltip: { show: false },
|
|
||||||
itemStyle: {
|
|
||||||
label: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
labelLine: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
color: 'rgba(0, 0, 0, 0)',
|
|
||||||
borderColor: 'rgba(0, 0, 0, 0)',
|
|
||||||
borderWidth: 0
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
let option = {
|
let option = {
|
||||||
color: ['#1980EA', '#67D470', '#B4C9EF', '#BCBF5C', '#EF5252', '#6d5edd', '#bf41bb'],
|
color: ['#1980EA', '#67D470', '#B4C9EF', '#BCBF5C', '#EF5252', '#6d5edd', '#bf41bb'],
|
||||||
@@ -400,6 +384,10 @@ export default {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
itemStyle: {
|
||||||
|
borderColor: 'RGBA(27, 58, 98, .5)',
|
||||||
|
borderWidth: 2
|
||||||
|
},
|
||||||
label: {
|
label: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
@@ -804,7 +792,8 @@ export default {
|
|||||||
z: 1,
|
z: 1,
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
position: ['93%', -30],
|
position: 'insideTopRight',
|
||||||
|
offset: [0, -32],
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return '{a|' + value.data.num + '}'
|
return '{a|' + value.data.num + '}'
|
||||||
},
|
},
|
||||||
@@ -813,7 +802,7 @@ export default {
|
|||||||
height: 32,
|
height: 32,
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
lineHeight: 20,
|
lineHeight: 20,
|
||||||
align: 'right',
|
align: 'left',
|
||||||
fontFamily: 'YouSheBiaoTiHei',
|
fontFamily: 'YouSheBiaoTiHei',
|
||||||
color: '#E1F6FF'
|
color: '#E1F6FF'
|
||||||
}
|
}
|
||||||
@@ -927,8 +916,6 @@ export default {
|
|||||||
background rgba(31,46,73,0.7)
|
background rgba(31,46,73,0.7)
|
||||||
&:nth-child(odd)
|
&:nth-child(odd)
|
||||||
background rgba(31,46,73,0.55)
|
background rgba(31,46,73,0.55)
|
||||||
&:nth-child(5)
|
|
||||||
opacity: 0.5
|
|
||||||
.scroll-ul_1_div
|
.scroll-ul_1_div
|
||||||
float left
|
float left
|
||||||
_wh(10%, 39px)
|
_wh(10%, 39px)
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ html, body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 1920px;
|
width: 1920px;
|
||||||
/* width: 3840px; */
|
width: 3840px;
|
||||||
height: 1080px;
|
height: 1080px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user