修改界面显示

master
夜笙歌 1 year ago
parent 56c7d8eb6f
commit ed418ba259

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 KiB

@ -88,6 +88,9 @@
<div class="chart3"> <div class="chart3">
<Chart ref="chart3"></Chart> <Chart ref="chart3"></Chart>
</div> </div>
<div class="chart4">
<Chart ref="chart4"></Chart>
</div>
<div class="inventoryInfo">内胆库剩余:{{ linerNum }}% 箱壳库剩余:{{ caseNum }}%</div> <div class="inventoryInfo">内胆库剩余:{{ linerNum }}% 箱壳库剩余:{{ caseNum }}%</div>
</div> </div>
</template> </template>
@ -113,6 +116,7 @@ export default {
'工单计划', '工单计划',
'小时统计', '小时统计',
'库存统计', '库存统计',
'型号统计',
'发泡夹具状态', '发泡夹具状态',
], ],
titlePosition: [ titlePosition: [
@ -125,12 +129,16 @@ export default {
left: 53 left: 53
}, },
{ {
top: 60, top: 70.5,
left: 5.5 left: 5.5
}, },
{ {
top: 60, top: 70.5,
left: 53 left: 36.7
},
{
top: 70.5,
left: 68.5
}, },
], ],
team: '白班', team: '白班',
@ -357,6 +365,75 @@ export default {
], ],
}) })
this.$refs.chart3.setData({ this.$refs.chart3.setData({
tooltip: {
trigger: "axis",
axisPointer: {
//
type: "shadow", // 线'line' | 'shadow'
},
},
grid: {
left: "0",
right: "4%",
bottom: "0",
top: 20,
containLabel: true,
},
xAxis: {
type: "category",
data: e.liner.inventoryStatistics.x,
axisLine: {
lineStyle: {
color: "white",
},
},
axisLabel: {
// interval: 0,
// rotate: 40,
textStyle: {
fontFamily: "Microsoft YaHei",
},
},
},
yAxis: {
type: "value",
axisLine: {
show: false,
lineStyle: {
color: "white",
},
},
splitLine: {
show: false,
},
axisLabel: {},
},
series: [
{
name: e.liner.inventoryStatistics.y.name,
type: "bar",
barWidth: "30%",
barMaxWidth: 50,
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "#4adfff",
},
{
offset: 1,
color: "#3d7aff",
},
]),
},
},
data: e.liner.inventoryStatistics.y.data,
},
],
})
this.$refs.chart4.setData({
legend: { legend: {
data: ['运行中'], data: ['运行中'],
right: 'center', right: 'center',
@ -443,7 +520,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.app-container { .app-container {
background-image: url("../../../assets/board/caseShell.jpg"); background-image: url("../../../assets/board/caseShell2.jpg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
width: 100%; width: 100%;
@ -504,7 +581,7 @@ export default {
top: 23%; top: 23%;
left: 4%; left: 4%;
width: 45%; width: 45%;
height: 31% height: 18%;
} }
@ -522,33 +599,41 @@ export default {
.chart1 { .chart1 {
position: absolute; position: absolute;
top: 23.5%; top: 23%;
left: 51%; left: 51%;
width: 45%; width: 45%;
height: 31%; height: 18.5%;
} }
.chart2 { .chart2 {
position: absolute; position: absolute;
top: 64%; top: 74%;
left: 3.6%; left: 3.6%;
width: 45.5%; width: 29.8%;
height: 30.7%; height: 20.7%;
} }
.chart3 { .chart3 {
position: absolute; position: absolute;
top: 64%; top: 74%;
left: 51%; left: 35%;
width: 45.5%; width: 30%;
height: 30.7%; height: 20.7%;
}
.chart4 {
position: absolute;
top: 74%;
left: 66.5%;
width: 30%;
height: 20.7%;
} }
.inventoryInfo { .inventoryInfo {
position: absolute; position: absolute;
transform: translateY(-50%); transform: translateY(-50%);
font-size: 0.9vw; font-size: 0.9vw;
top: 59.6%; top: 70.4%;
left: 13.7%; left: 13.7%;
color: #fff; color: #fff;
letter-spacing: 1px; letter-spacing: 1px;

@ -98,6 +98,9 @@
<div class="equipmentPowerFive" id="equipmentPowerFive"> <div class="equipmentPowerFive" id="equipmentPowerFive">
<Chart ref="equipmentPowerFive"></Chart> <Chart ref="equipmentPowerFive"></Chart>
</div> </div>
<div class="equipmentPowerSix" id="equipmentPowerSix">
<Chart ref="equipmentPowerSix"></Chart>
</div>
<div class="topLeft" id="topLeft"> <div class="topLeft" id="topLeft">
@ -915,7 +918,7 @@ export default {
"{a|" + "{a|" +
params.value + params.value +
"%}" + "%}" +
"\n{b|终检}" "\n{b|测温}"
); );
}, },
position: "center", position: "center",
@ -951,6 +954,85 @@ export default {
}, },
], ],
}) })
this.$refs.equipmentPowerSix.setData({
series: [
{
type: "pie",
clockWise: false,
radius: ['60%', '75%'],
itemStyle: {
normal: {
label: {
show: false,
},
labelLine: {
show: false,
},
shadowBlur: 0,
shadowColor: "#5d73ff",
},
},
hoverAnimation: false,
center: ["50%", "50%"],
data: [
{
value: 50,
label: {
normal: {
rich: {
a: {
color: "#5d73ff",
align: "center",
fontSize: 1.1 * vw,
fontWeight: "bold",
},
b: {
color: "#fff",
align: "center",
fontSize: 0.5 * vw,
},
},
formatter: function (params) {
return (
"{a|" +
params.value +
"%}" +
"\n{b|终检}"
);
},
position: "center",
show: true,
textStyle: {
fontSize: "14",
fontWeight: "normal",
color: "#fff",
},
},
},
itemStyle: {
normal: {
color: "#5d73ff",
shadowColor: "#5d73ff",
shadowBlur: 0,
},
},
},
{
value: 50,
name: "invisible",
itemStyle: {
normal: {
color: "#412a4e",
},
emphasis: {
color: "#412a4e",
},
},
},
],
},
],
})
this.day() this.day()
}, },
methods: { methods: {
@ -1059,7 +1141,7 @@ export default {
.equipmentPowerFour { .equipmentPowerFour {
position: absolute; position: absolute;
width: 19%; width: 13%;
height: 16%; height: 16%;
top: 76%; top: 76%;
left: 30.5%; left: 30.5%;
@ -1067,10 +1149,18 @@ export default {
.equipmentPowerFive { .equipmentPowerFive {
position: absolute; position: absolute;
width: 19%; width: 13%;
height: 16%;
top: 76%;
left: 43.5%;
}
.equipmentPowerSix {
position: absolute;
width: 13%;
height: 16%; height: 16%;
top: 76%; top: 76%;
left: 49.5%; left: 56.5%;
} }
.scrollTableItem { .scrollTableItem {

@ -109,24 +109,28 @@ export default {
appsecret: 'rXmhoLAiOPNKzbl7g2qxCV8tFwRdYuZM' appsecret: 'rXmhoLAiOPNKzbl7g2qxCV8tFwRdYuZM'
} }
const viewer = new AMRT.Viewer('container', param) const viewer = new AMRT.Viewer('container', param)
console.log(AMRT) console.log(viewer)
console.log(viewer.core)
console.log(viewer.core?.Object3D)
// const gui = new dat.GUI()
// console.log(gui)
let num = 0 let num = 0
let modelArr = [ let modelArr = [
// '1720315475507941376', '1720315475507941376',
// '1720315479907766272', '1720315479907766272',
// '1720315484513112064', '1720315484513112064',
// '1720315500866703360', '1720315500866703360',
// '1720315558030872576', '1720315558030872576',
// '1720315596551360512', '1720315596551360512',
// '1720315644550975488', '1720315644550975488',
// '1720315648946606080', '1720315648946606080',
// '1720315687114772480', '1720315687114772480',
// '1720315691422322688', '1720315691422322688',
// '1720315722275622912', '1720315722275622912',
// '1720315729129115648', '1720315729129115648',
// '1720315768454909952', '1720315768454909952',
// '1720316275214913536', '1720316275214913536',
// '1720316297822212096', '1720316297822212096',
] ]
modelArr.forEach(e => { modelArr.forEach(e => {
let model = viewer.loadModel(e, { let model = viewer.loadModel(e, {
@ -139,21 +143,30 @@ export default {
alert('加载完成'); alert('加载完成');
} }
m.on('click', function () { m.on('click', function () {
// console.log(this) console.log(m)
// console.log(m) console.log(e)
// let clickModel = model.getObjectById(this) console.log(m.getObjectById)
// console.log(clickModel)
// alert(`${e}`)
// viewer.operator.restore()
// viewer.operator.translucenceOthers(this.viewer)
}) })
} }
}) })
}) })
// viewer.container.addEventListener( 'click', e => {
// //
// let object = viewer.picker.intersectObject( e )
// if( object ){
// console.log( '', object.object )
// viewer.operator.restore()
// viewer.operator.translucenceOthers(object)
// viewer.operator.translucenceOthers(object.object)
// }
// })
viewer.controls.setTarget(26.3, -19.8, -82) viewer.controls.setTarget(26.3, -19.8, -82)
viewer.controls.setPosition(31, 1721, 584) viewer.controls.setPosition(31, 1721, 584)
viewer.operator.enabled = true viewer.operator.enabled = true
//
viewer.sceneManager.setLightness(1)
// viewer.controls.startAutoRotate(1) // viewer.controls.startAutoRotate(1)
}, },
methods: { methods: {

Loading…
Cancel
Save