智慧农业大数据平台
guanqb
2022-08-25 e8b7fa03ee93678183b1aab4f4f5035c8be9e59a
经营分析 饼图和ui不一致 有筛选
1 files modified
21 ■■■■ changed files
src/views/manage/index.vue 21 ●●●● patch | view | raw | blame | history
src/views/manage/index.vue
@@ -181,7 +181,9 @@
                                <span></span>
                            </div>
                        </div>
                        <div class="dataChoose">
                            <date-select :type="'nztrSelect'" v-if="trpOrNcp == 'ncp'"></date-select>
                        </div>
                        <div class="more" @click="popDetailedSupervise">
                            明细
                            <img src="/img/icon/more.png" alt />
@@ -878,7 +880,7 @@
        initBar (dom) {
            const that = this
            const chartDom = document.getElementById(dom)
            const myChart = this.$echarts.init(chartDom)
            const myChart1 = this.$echarts.init(chartDom)
            var y = []
            for (let i = 0; i < that.taskNum.length; i++) {
                y.push(that.taskNum[i].count)
@@ -977,7 +979,10 @@
                ],
            }
            option && myChart.setOption(option)
            option && myChart1.setOption(option)
            window.addEventListener("resize", function () {
                myChart1.resize()
            })
        },
        initTrpBar (dom) {
@@ -1264,6 +1269,9 @@
            }
            option && myChart.setOption(option)
            window.addEventListener("resize", function () {
                myChart.resize()
            })
        },
        initSymyBar (dom) {
            const chartDom = document.getElementById(dom)
@@ -1643,6 +1651,8 @@
                .echarts-box {
                    margin-top: 16px;
                    flex: 1;
                    width: 300px;
                    height: 600px;
                }
            }
@@ -1756,6 +1766,11 @@
                    & > div:nth-child(2) {
                        margin-left: 60px;
                    }
                    .dataChoose {
                        margin-left: 40px;
                        width: 320px;
                        margin-top: -20px;
                    }
                    .more {
                        position: absolute;