|
@@ -1,8 +1,17 @@
|
|
|
<template>
|
|
|
<div v-loading="loading">
|
|
|
<div class="search" style="align-items: center;">
|
|
|
- <div style="float:left;font-size:15px;line-height:30px">
|
|
|
- 年度完成情况
|
|
|
+ <div style="float:left;line-height:30px;display:flex;align-items:center">
|
|
|
+ <el-popover placement="top" width="300" trigger="hover" content="9-12月目标据1-8月实际完成情况重新测定设置">
|
|
|
+ <template #reference>
|
|
|
+ <i
|
|
|
+ class="el-icon-warning-outline"
|
|
|
+ style="font-size:16px;cursor:pointer;padding-top:5px;padding-right:5px;display:inline-block"
|
|
|
+ ></i>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <span style="font-size: 15px;">年度完成情况</span>
|
|
|
</div>
|
|
|
|
|
|
<div style="float:right">
|
|
@@ -166,6 +175,12 @@ export default {
|
|
|
const currentMonth = dayjs().month() + 1;
|
|
|
if (Number(month) > Number(currentMonth)) return;
|
|
|
if (month === '合计') return;
|
|
|
+
|
|
|
+ if (Number(month) < Number(currentMonth)) {
|
|
|
+ if(Number(current) < 100) return 'color: red'
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
const oneDay = Number(division(100, days)).toFixed(2);
|
|
|
const currentDay = dayjs().date();
|
|
|
const currentTotalTip = Number(multiplication(currentDay, oneDay)).toFixed(2);
|
|
@@ -176,6 +191,9 @@ export default {
|
|
|
const currentMonth = dayjs().month() + 1;
|
|
|
if (Number(month) > Number(currentMonth)) return;
|
|
|
if (month === '合计') return;
|
|
|
+ if (Number(month) < Number(currentMonth)) {
|
|
|
+ if(Number(current) < Number(total)) return 'color: red'
|
|
|
+ }
|
|
|
const oneDay = Number(division(total, days)).toFixed(2);
|
|
|
// console.log(month,oneDay)
|
|
|
const currentDay = dayjs().date();
|