yaowanxin
16 小时以前 859b3275b6887b682b40c6ce3cc630b926dde978
src/views/index.vue
@@ -473,7 +473,7 @@
      {
         name: '开票',
         type: 'line',
         data: receiptAmount,
         data: invoiceAmount,
         stack: 'Total',
         areaStyle: {
            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
@@ -502,7 +502,7 @@
      {
         name: '回款',
         type: 'line',
         data: invoiceAmount,
         data: receiptAmount,
         stack: 'Total',
         lineStyle: {
            width: 0
@@ -537,13 +537,14 @@
      const res = await approveAndDeviceTodos()
      const { approveTodo, deviceRepairTodo } = res.data
      
      // 显示通知
      ElNotification({
            title: '待办事项提醒',
            message: `当前有${approveTodo}条待审批事项,${deviceRepairTodo}条待维修事项`,
            type: 'warning',
            duration: 5000
         })
      // 当approveTodo和deviceRepairTodo合>0时显示通知
    if (approveTodo > 0 || deviceRepairTodo > 0) {
      ElNotification({
         title: '待办事项提醒',
         message: `当前有${approveTodo}条待审批事项,${deviceRepairTodo}条待维修事项`,
         type: 'warning',
         duration: 5000
      })}
   } catch (error) {
      console.error('获取协同待办事项失败:', error)
   }