update 质量,产品成品率

This commit is contained in:
lb 2022-11-24 16:11:48 +08:00
parent df8ffa3676
commit c943481826
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@
</div> </div>
<div class="" style="width: calc(400px * var(--beilv)); flex: 1;"> <div class="" style="width: calc(400px * var(--beilv)); flex: 1;">
<techy-box class="" style="padding: 0 calc(16px * var(--beilv));"> <techy-box class="" style="padding: 0 calc(16px * var(--beilv));">
<productionRateHeader @update-data="str => dataUpdateToken = str">产品成品率</productionRateHeader> <productionRateHeader @update-data="obj => { dataUpdateToken = obj.str; dateMode2 = obj.mode }">产品成品率</productionRateHeader>
<div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"> <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
<new-line-stack :data-update-token="dataUpdateToken" :mode="dateMode2" /> <new-line-stack :data-update-token="dataUpdateToken" :mode="dateMode2" />
</div> </div>

View File

@ -114,7 +114,7 @@
:class="{ 'date-select__active': dateMode === 'day' }" :class="{ 'date-select__active': dateMode === 'day' }"
@click=" @click="
dateMode = 'day' dateMode = 'day'
$emit('update-data', '' + Math.random()) $emit('update-data', { str: '' + Math.random(), mode: dateMode })
" "
> >
@ -123,7 +123,7 @@
:class="{ 'date-select__active': dateMode === 'month' }" :class="{ 'date-select__active': dateMode === 'month' }"
@click=" @click="
dateMode = 'month' dateMode = 'month'
$emit('update-data', '' + Math.random()) $emit('update-data', { str: '' + Math.random(), mode: dateMode })
" "
> >