|
@@ -59,7 +59,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import {ref, onMounted} from "vue";
|
|
|
+import {ref, onMounted,watch} from "vue";
|
|
|
import {useAppStore} from "~src/store";
|
|
|
import BarChart from "./components/echarts/BarChart.vue"
|
|
|
import ArrRoundChart from "./components/echarts/ArrRoundChart.vue"
|
|
@@ -83,7 +83,18 @@ onMounted(() => {
|
|
|
gettableData()
|
|
|
|
|
|
})
|
|
|
-
|
|
|
+//监听
|
|
|
+watch(() => [
|
|
|
+ useAppState.getProjectId
|
|
|
+], ([ProjectId]) => {
|
|
|
+ projectId.value = ProjectId
|
|
|
+ gethasBeenChartData()
|
|
|
+ getfixedChartData()
|
|
|
+ getdestroyChartData()
|
|
|
+ getnativeChartData()
|
|
|
+ getallArchiveFileSize()
|
|
|
+ gettableData()
|
|
|
+})
|
|
|
//原生、数字化文件数量 图表配置
|
|
|
const nativeChartRef = ref(null)
|
|
|
const nativeChartConfig = {
|