|
@@ -2,8 +2,15 @@
|
|
<div class="flex direction-column full mark-page">
|
|
<div class="flex direction-column full mark-page">
|
|
<mark-header :exclude-operations="excludeOperations" :paper-path="currentTask?.url" @click="onOperationClick">
|
|
<mark-header :exclude-operations="excludeOperations" :paper-path="currentTask?.url" @click="onOperationClick">
|
|
<div class="data-item">
|
|
<div class="data-item">
|
|
- 已评: {{ markStatus?.personCount || 0 }} /
|
|
|
|
- {{ minus(markStatus?.totalCount || 0, markStatus?.markedCount || 0) }}
|
|
|
|
|
|
+ <!-- 已评: {{ markStatus?.personCount || 0 }} /
|
|
|
|
+ {{ minus(markStatus?.totalCount || 0, markStatus?.markedCount || 0) }} -->
|
|
|
|
+ <div>
|
|
|
|
+ <p>
|
|
|
|
+ 今日已评:{{ markStatus?.personDayCount }}
|
|
|
|
+ {{ mainStore.myUserInfo?.markDayCount ? `/ ${mainStore.myUserInfo?.markDayCount}` : '' }}
|
|
|
|
+ </p>
|
|
|
|
+ <p class="m-t-mini">累计已评:{{ markStatus?.personCount }}</p>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<!-- <span v-show="currentTask" class="data-item">密号: {{ currentTask?.secretNumber }}</span> -->
|
|
<!-- <span v-show="currentTask" class="data-item">密号: {{ currentTask?.secretNumber }}</span> -->
|
|
<div v-show="currentTask" class="data-item">
|
|
<div v-show="currentTask" class="data-item">
|
|
@@ -393,7 +400,9 @@ const checkMarkStatus = async (): Promise<boolean> => {
|
|
if (currentTask.value?.taskType === 'FORCE') {
|
|
if (currentTask.value?.taskType === 'FORCE') {
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
- let myUserInfo: any = await useFetch('getMyUserInfo').fetch()
|
|
|
|
|
|
+ // let myUserInfo: any = await useFetch('getMyUserInfo').fetch()
|
|
|
|
+ let myUserInfo: any = (await mainStore.getMyUserInfo()) || {}
|
|
|
|
+ //markDayCount表示该用户当天的任务量限制,markTotalCount表示该用户总任务量限制
|
|
const { markDayCount, markTotalCount } = myUserInfo
|
|
const { markDayCount, markTotalCount } = myUserInfo
|
|
let res: any = await getMarkStatus()
|
|
let res: any = await getMarkStatus()
|
|
if (!!markTotalCount && res.personCount >= markTotalCount) {
|
|
if (!!markTotalCount && res.personCount >= markTotalCount) {
|
|
@@ -414,7 +423,6 @@ const onRefreshNext = () => {
|
|
}
|
|
}
|
|
/** 刷新 */
|
|
/** 刷新 */
|
|
const onRefresh = async (refreshToNext?: boolean) => {
|
|
const onRefresh = async (refreshToNext?: boolean) => {
|
|
- // await getMarkStatus()
|
|
|
|
let bool = await checkMarkStatus()
|
|
let bool = await checkMarkStatus()
|
|
// if (!bool) {
|
|
// if (!bool) {
|
|
// return false
|
|
// return false
|
|
@@ -499,7 +507,6 @@ const getEnableRemark = () => {
|
|
// }
|
|
// }
|
|
let timer: any = null
|
|
let timer: any = null
|
|
watch(currentTask, (newVal, oldVal) => {
|
|
watch(currentTask, (newVal, oldVal) => {
|
|
- // getMarkStatus()
|
|
|
|
if (!oldVal && !!newVal) {
|
|
if (!oldVal && !!newVal) {
|
|
getMarkStatus()
|
|
getMarkStatus()
|
|
}
|
|
}
|