|
@@ -89,7 +89,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { codeOperate } from '@/pinia/code/code'
|
|
import { codeOperate } from '@/pinia/code/code'
|
|
import { queryProjectMonthFee } from '@/api/cost'
|
|
import { queryProjectMonthFee } from '@/api/cost'
|
|
-import { ref, defineExpose } from 'vue'
|
|
|
|
|
|
+import { ref, defineExpose, onMounted } from 'vue'
|
|
import { chartsList } from '@/pinia/chartsData/chartsData'
|
|
import { chartsList } from '@/pinia/chartsData/chartsData'
|
|
import Charts from './charts.vue'
|
|
import Charts from './charts.vue'
|
|
defineOptions({
|
|
defineOptions({
|
|
@@ -100,6 +100,9 @@ const yearData = ref('')
|
|
const id = codeOperate()
|
|
const id = codeOperate()
|
|
const projectMonthFee = ref()
|
|
const projectMonthFee = ref()
|
|
const chartsStorage = chartsList()
|
|
const chartsStorage = chartsList()
|
|
|
|
+onMounted(() => {
|
|
|
|
+ querySum()
|
|
|
|
+})
|
|
const querySum = () => {
|
|
const querySum = () => {
|
|
queryProjectMonthFee(monthData.value, yearData.value, id.currentCode).then(res => {
|
|
queryProjectMonthFee(monthData.value, yearData.value, id.currentCode).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|