master
吴普建 11 months ago
parent d493601e04
commit 984bff9203

@ -1,7 +1,7 @@
<template>
<div id="screen-wrapper" class="screen-wrapper">
<div id="screen" class="screen">
<div class="title">领秀眼镜智慧工</div>
<div class="title" @click="changeYear"></div>
<!-- // -->
<div class="left_area left_top_area">
<div class="left_top_div">
@ -574,6 +574,7 @@ export default defineComponent({
outData: [],
inData: []
},
fullScreen: false,
leftBotData: {
seriesData: []
},
@ -602,19 +603,19 @@ export default defineComponent({
mounted() {
this.detectionDayNum = localStorage.getItem('zjCount');
// if(this.detectionDayNum === null){
// this.detectionDayNum = 28;
// localStorage.setItem('zjCount', this.detectionDayNum);
// }
// setInterval(() => {
// this.detectionDayNum = Number(this.detectionDayNum) + 3;
// if(this.detectionDayNum > 90){
// this.detectionDayNum = 28;
// }
// localStorage.setItem('zjCount', this.detectionDayNum);
// }, 1000000)
const app = useAppStore();
app.setContentFull(false);
if(this.detectionDayNum === null){
this.detectionDayNum = 28;
localStorage.setItem('zjCount', this.detectionDayNum);
}
setInterval(() => {
this.detectionDayNum = Number(this.detectionDayNum) + 3;
if(this.detectionDayNum > 90){
this.detectionDayNum = 28;
}
localStorage.setItem('zjCount', this.detectionDayNum);
}, 1000000)
// const app = useAppStore();
// app.setContentFull(false);
this.initData();
this.handleScreenAuto();
// ---
@ -632,6 +633,12 @@ export default defineComponent({
}
},
methods: {
changeYear(){
const app = useAppStore();
this.fullScreen = !this.fullScreen;
app.setContentFull(this.fullScreen);
},
//
debounce(func, wait = 100) {
let timeout;

@ -250,18 +250,18 @@ const columns: Ref<DataTableColumns<drawingWorkOrder.tabelList>> = ref([
align: 'center',
key: 'weight'
},
// {
// title: '',
// width: 200,
// align: 'center',
// key: 'degreeOfCompletion',
// render: row => {
// const percentage = row.degreeOfCompletion
// ? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
// : 0;
// return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
// }
// },
{
title: '完成度',
width: 200,
align: 'center',
key: 'degreeOfCompletion',
render: row => {
const percentage = row.degreeOfCompletion
? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
: 0;
return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
}
},
{
title: '已完成数量',
width: 100,

@ -572,18 +572,18 @@ const columns: Ref<DataTableColumns<paintJobOrder.tabelList>> = ref([
// }
// },
// {
// title: '',
// width: 200,
// align: 'center',
// key: 'degreeOfCompletion',
// render: row => {
// const percentage = row.degreeOfCompletion
// ? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
// : 0;
// return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
// }
// },
{
title: '完成度',
width: 200,
align: 'center',
key: 'degreeOfCompletion',
render: row => {
const percentage = row.degreeOfCompletion
? `${(row.degreeOfCompletion * 100 > 100 ? 100 : row.degreeOfCompletion * 100).toFixed(0)}`
: 0;
return <n-progress type="line" percentage={percentage} processing indicator-placement="inside" />;
}
},
{
title: '已完成数量',
width: 100,

Loading…
Cancel
Save