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

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

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

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

Loading…
Cancel
Save