修改一些ts的问题。
This commit is contained in:
parent
620860c551
commit
f472031b6f
@ -10,12 +10,12 @@
|
||||
<template>
|
||||
<div class="archievement-wrapper">
|
||||
<span>总业绩</span>
|
||||
<span>¥ {{ archivement_count }}</span>
|
||||
<span>¥ {{ archivement_count }}</span>
|
||||
<div id="chartWrapper"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { reactive, computed, onMounted } from "vue";
|
||||
import * as echarts from "echarts";
|
||||
|
||||
@ -35,11 +35,10 @@ export default {
|
||||
//设置图表
|
||||
const initCharts = () =>
|
||||
{
|
||||
var chartDom = document.getElementById('chartWrapper');
|
||||
var myChart = echarts.init(chartDom);
|
||||
var option;
|
||||
|
||||
option = {
|
||||
const chartDom = document.getElementById('chartWrapper');
|
||||
//@ts-ignore
|
||||
const myChart = echarts.init((chartDom));
|
||||
const option = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二",],
|
||||
@ -58,7 +57,7 @@ export default {
|
||||
|
||||
option && myChart.setOption(option);
|
||||
|
||||
window.onresize = function()
|
||||
window.onresize = function ()
|
||||
{
|
||||
//自适应大小
|
||||
myChart.resize();
|
||||
|
@ -26,9 +26,9 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { reactive, onBeforeMount } from "vue";
|
||||
// import { reactive, onBeforeMount } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { StaffInfo } from "@/data/cpicxim/StaffInfo";
|
||||
// import { StaffInfo } from "@/data/cpicxim/StaffInfo";
|
||||
import { loadStaffInfo } from "@/utils/api/localStorage";
|
||||
import { ElMessage } from "element-plus";
|
||||
import Archievement from "@/components/ArchievementComponent.vue";
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user