955b48cc by renchao@pashanhoo.com

style:登记类型总量模块的修改

1 parent 45fc5511
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-04 13:48:00
* @LastEditTime: 2023-07-04 13:54:34
-->
<template>
<!-- 登记类型总量 -->
<Chart :cdata="cdata" />
</template>
<script>
import Chart from "./Chart";
import work from "@/api/work";
......@@ -17,12 +16,12 @@
cdata: {
timer: null,
category: [],
lineData: [],
},
};
lineData: []
}
}
},
components: {
Chart,
Chart
},
mounted () {
this.getDjlxtotal()
......@@ -39,17 +38,13 @@
QLLX: "",
XZQDM: "",
};
let res = await work.getDjlxtotal(p);
res.result.map((item) => {
return (
this.cdata.category.push(item.AREACODE),
this.cdata.lineData.push(item.ywtotal)
);
});
let res = await work.getDjlxtotal(p)
this.cdata.category = res.result.map(item => item.AREACODE)
this.cdata.lineData = res.result.map(item => item.ywtotal)
} catch (error) {
this.$refs.msg.messageShow();
this.$refs.msg.messageShow()
}
});
})
}
},
destroyed () {
......@@ -57,5 +52,3 @@
}
};
</script>
<style lang="scss" scoped>
</style>
......