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