fix : 修复首页数量
This commit is contained in:
@@ -26,13 +26,13 @@
|
|||||||
<div style="width: 31px"></div>
|
<div style="width: 31px"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-tab-pane :label="'待办('+(todoList?.length||0) +')'" name="first">
|
<el-tab-pane :label="'待办('+(todoNum||0) +')'" name="first">
|
||||||
<div class="todo-top">
|
<div class="todo-top">
|
||||||
<div class="bell">
|
<div class="bell">
|
||||||
<el-icon size="16" color="#F55815">
|
<el-icon size="16" color="#F55815">
|
||||||
<BellFilled/>
|
<BellFilled/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span>您有{{ todoList?.length || 0 }}条待办需要处理</span>
|
<span>您有{{ todoNum || 0 }}条待办需要处理</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="todo-more" @click="handleTodoList(1)">
|
<div class="todo-more" @click="handleTodoList(1)">
|
||||||
<span>查看更多</span>
|
<span>查看更多</span>
|
||||||
@@ -70,13 +70,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="'已办(' + (doneList?.length||0) + ')'" name="second">
|
<el-tab-pane :label="'已办(' + (doneNum||0) + ')'" name="second">
|
||||||
<div class="todo-top">
|
<div class="todo-top">
|
||||||
<div class="bell">
|
<div class="bell">
|
||||||
<el-icon size="16" color="#F55815">
|
<el-icon size="16" color="#F55815">
|
||||||
<BellFilled/>
|
<BellFilled/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<span>您有{{ todoList.length }}条待办需要处理</span>
|
<span>您有{{ todoNum }}条待办需要处理</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="todo-more" @click="handleTodoList(2)">
|
<div class="todo-more" @click="handleTodoList(2)">
|
||||||
<span>查看更多</span>
|
<span>查看更多</span>
|
||||||
@@ -359,6 +359,8 @@ const taskTabList = ref([
|
|||||||
}
|
}
|
||||||
])
|
])
|
||||||
const todoList = ref([])
|
const todoList = ref([])
|
||||||
|
const doneNum = ref(0)
|
||||||
|
const todoNum = ref(0)
|
||||||
const noticeList = ref([])
|
const noticeList = ref([])
|
||||||
const rulesList = ref([])
|
const rulesList = ref([])
|
||||||
const helpDocList = ref([])
|
const helpDocList = ref([])
|
||||||
@@ -631,7 +633,7 @@ const getTodoList = () => {
|
|||||||
getHomeTaskInfo().then(res => {
|
getHomeTaskInfo().then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
todoList.value = res.data.rows
|
todoList.value = res.data.rows
|
||||||
// todoNum.value=res.data.total
|
todoNum.value=res.data.total
|
||||||
} else {
|
} else {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -645,7 +647,7 @@ const getDoneList = () => {
|
|||||||
getDoneTaskInfo().then(res => {
|
getDoneTaskInfo().then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
doneList.value = res.data.rows
|
doneList.value = res.data.rows
|
||||||
// todoNum.value=res.data.total
|
doneNum.value=res.data.total
|
||||||
} else {
|
} else {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|||||||
Reference in New Issue
Block a user