Browse Source

处理临界

master
maochaoying 2 years ago
parent
commit
cef82f01da
  1. 8
      src/components/Image.vue
  2. 1
      src/components/Task.vue
  3. 24
      src/pages/index.vue

8
src/components/Image.vue

@ -60,8 +60,12 @@
<!-- <p>A-8</p> --> <!-- <p>A-8</p> -->
</div> </div>
<div class="tag_wrap"> <div class="tag_wrap">
<p>T0DB</p>
<p>0T1U</p>
<p>
{{ imageStore?.coreInfo?.resultSerial?.split('-')[0]?.substr(-4) }}
</p>
<p>
{{ imageStore?.coreInfo?.resultSerial?.split('-')[1]?.substr(-4) }}
</p>
</div> </div>
</div> </div>
</div> </div>

1
src/components/Task.vue

@ -151,6 +151,7 @@ export default {
accountStore.changePage(0) accountStore.changePage(0)
taskStore.getExcelList(taskId) taskStore.getExcelList(taskId)
taskStore.updateCurrentTaskId(taskId) taskStore.updateCurrentTaskId(taskId)
taskStore.updateCurrentDetailTaskId(null)
}, },
viewDetail(taskId, nuclearCoreName) { viewDetail(taskId, nuclearCoreName) {
imageStore.updateNuclearCoreName(nuclearCoreName) imageStore.updateNuclearCoreName(nuclearCoreName)

24
src/pages/index.vue

@ -193,7 +193,10 @@
<Image /> <Image />
<Excel :excelData="taskStore.excelData" /> <Excel :excelData="taskStore.excelData" />
</div> </div>
<div class="bottom_operation_container" v-if="false">
<div
class="bottom_operation_container"
v-if="!taskStore.currentDetailTaskId"
>
<div <div
:class=" :class="
taskStore.currentTaskId == null ? 'auto_btn cant_btn' : 'auto_btn' taskStore.currentTaskId == null ? 'auto_btn cant_btn' : 'auto_btn'
@ -291,8 +294,10 @@
<DetailTable /> <DetailTable />
</div> </div>
<div class="progress_btn"> <div class="progress_btn">
<p class="title">核查进度</p>
<t-progress theme="plump" :percentage="30" />
<p class="title">
核查进度{{ hasTestedLength }} / {{ testArrLength }}
</p>
<t-progress theme="plump" :percentage="detailProcess" />
</div> </div>
</div> </div>
</div> </div>
@ -343,6 +348,19 @@ const accountStore = useAccountStore()
const taskStore = useTaskStore() const taskStore = useTaskStore()
const imageStore = useImageStore() const imageStore = useImageStore()
const hasTestedLength = ref(0)
const testArrLength = ref(121)
const detailProcess = computed(() => {
const testArr = taskStore.excelData.filter(
item => item.firstSign && item.secondSign,
)
testArrLength.value = testArr.length
const hasTested = testArr.filter(item => item.result != 0)
hasTestedLength.value = hasTested.length
return parseInt((hasTested.length / testArr.length) * 100)
})
const checked = ref(false) const checked = ref(false)
const onChange = val => { const onChange = val => {

Loading…
Cancel
Save