|
@@ -42,22 +42,23 @@ v-loading="loading"
|
|
<el-radio-button label="month">按月</el-radio-button>
|
|
<el-radio-button label="month">按月</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</div>
|
|
</div>
|
|
- <ve-histogram
|
|
|
|
|
|
+ <!-- :data-zoom="dataZoom" -->
|
|
|
|
+ <ve-line
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
height="350px"
|
|
height="350px"
|
|
:data="timer == 'day' ? chartData : chartDataForMoth"
|
|
:data="timer == 'day' ? chartData : chartDataForMoth"
|
|
:data-empty="dataEmpty"
|
|
:data-empty="dataEmpty"
|
|
- :data-zoom="dataZoom"
|
|
|
|
|
|
+
|
|
:extend="chartExtend"
|
|
:extend="chartExtend"
|
|
:legend="legend"
|
|
:legend="legend"
|
|
- ></ve-histogram>
|
|
|
|
|
|
+ ></ve-line>
|
|
</div>
|
|
</div>
|
|
<!-- <ve-funnel v-else style="width: 100%;" height="350px" :data="funnelData" :data-empty="dataEmpty"></ve-funnel> -->
|
|
<!-- <ve-funnel v-else style="width: 100%;" height="350px" :data="funnelData" :data-empty="dataEmpty"></ve-funnel> -->
|
|
</el-card>
|
|
</el-card>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import countTo from "vue-count-to";
|
|
import countTo from "vue-count-to";
|
|
-import veHistogram from "v-charts/lib/histogram.common";
|
|
|
|
|
|
+import veLine from "v-charts/lib/line.common";
|
|
import veFunnel from "v-charts/lib/funnel.common";
|
|
import veFunnel from "v-charts/lib/funnel.common";
|
|
import searchHeader from "./modals/searchHeader";
|
|
import searchHeader from "./modals/searchHeader";
|
|
import { getIndex } from "../api";
|
|
import { getIndex } from "../api";
|
|
@@ -67,7 +68,7 @@ export default {
|
|
props: ["data", "search"],
|
|
props: ["data", "search"],
|
|
components: {
|
|
components: {
|
|
"ve-funnel": veFunnel,
|
|
"ve-funnel": veFunnel,
|
|
- "ve-histogram": veHistogram,
|
|
|
|
|
|
+ "ve-line": veLine,
|
|
"count-to": countTo,
|
|
"count-to": countTo,
|
|
searchHeader,
|
|
searchHeader,
|
|
},
|
|
},
|