|
@@ -81,22 +81,54 @@
|
|
|
:class="{ active: active === key }"
|
|
|
@click="active = key"
|
|
|
>
|
|
|
- <span>
|
|
|
- {{ item.title + "(元)" }}
|
|
|
- <el-tooltip
|
|
|
- v-if="item.desc"
|
|
|
- :content="item.desc"
|
|
|
- :open-delay="0.3"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- style="margin-left: 5px; cursor: pointer"
|
|
|
- class="el-icon-warning-outline"
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
- </span>
|
|
|
- <!-- 12345678901.23 -->
|
|
|
- <span> <count-to :endVal="item.percent" :decimals="2" /></span>
|
|
|
+ <template v-if="item.dataType != 'OTHER_AMOUNT'">
|
|
|
+ <span>
|
|
|
+ {{ item.title + "(元)" }}
|
|
|
+ <!-- {{ item.dataType == 'OTHER_AMOUNT' ? 'other' : null }} -->
|
|
|
+ <el-tooltip
|
|
|
+ v-if="item.desc"
|
|
|
+ :content="item.desc"
|
|
|
+ :open-delay="0.3"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ style="margin-left: 5px; cursor: pointer"
|
|
|
+ class="el-icon-warning-outline"
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </span>
|
|
|
+ <!-- 12345678901.23 -->
|
|
|
+ <span> <count-to :endVal="item.percent" :decimals="2" /></span>
|
|
|
+ </template>
|
|
|
+ <el-popover
|
|
|
+ placement="top"
|
|
|
+ width="400"
|
|
|
+ v-else
|
|
|
+ trigger="hover">
|
|
|
+ <descriptions :column="1" v-if="(item.indexMonthDataDetail || []).length > 0">
|
|
|
+ <template v-for="(item, index) in item.indexMonthDataDetail || []">
|
|
|
+ <descriptions-item :key="index" :label="orderType[item.orderType]">{{ item.totalNum | moneyFormat }}元
|
|
|
+ </descriptions-item>
|
|
|
+ </template>
|
|
|
+ </descriptions>
|
|
|
+ <div slot="reference">
|
|
|
+ <span>
|
|
|
+ {{ item.title + "(元)" }}
|
|
|
+ <el-tooltip
|
|
|
+ v-if="item.desc"
|
|
|
+ :content="item.desc"
|
|
|
+ :open-delay="0.3"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ style="margin-left: 5px; cursor: pointer"
|
|
|
+ class="el-icon-warning-outline"
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </span>
|
|
|
+ <span style="font-size: 18px; display: block; color: rgba(0, 0, 0, 0.85);"> <count-to :endVal="item.percent" :decimals="2" /></span>
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
</statistic-item>
|
|
|
</statistic>
|
|
|
</div>
|
|
@@ -143,6 +175,7 @@ import searchHeader from "./modals/searchHeader";
|
|
|
import { getIndex } from "../api";
|
|
|
import { getTimes } from "@/utils";
|
|
|
import { descs, chioseNum } from "../constant";
|
|
|
+import { orderType } from '@/constant'
|
|
|
|
|
|
export default {
|
|
|
props: ["data", "search"],
|
|
@@ -317,6 +350,7 @@ export default {
|
|
|
// stack: { 总收入: [`现金收入`, `余额收入`] },
|
|
|
// };
|
|
|
return {
|
|
|
+ orderType,
|
|
|
active: "SHOULD_INCOME_MONEY",
|
|
|
timer: "day",
|
|
|
mdate: [],
|
|
@@ -326,6 +360,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ console.log(this.orderType)
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
@@ -397,6 +432,9 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
+/deep/.description-title {
|
|
|
+ margin-bottom: 0;
|
|
|
+}
|
|
|
#management .statistic .statistic-content > span {
|
|
|
&:first-child {
|
|
|
font-size: 14px !important;
|