duy 1 rok pred
rodič
commit
1ba7df60ef

+ 6 - 1
src/global/components/tree-data/index.vue

@@ -129,7 +129,12 @@ watch(() => [
     isMenus.value = isMenu
     defaultCheckedKeys.value = defaultCheckedKey
 })
-
+watch(() => [
+    useAppState.getProjectId,
+], ([ProjectId]) => {
+    projectId.value = ProjectId
+    rerfeshTree()
+})
 //数据格式
 const treeProps = {
     label: 'areaName',

+ 16 - 14
src/views/count/index.vue

@@ -74,16 +74,18 @@
 </template>
 
 <script setup>
-import { nextTick, onActivated, onMounted, onUnmounted, ref } from 'vue'
+import { onMounted, onUnmounted, ref } from 'vue'
 import BarLabelEcharts from '~com/echarts/BarLabel.vue'
 import stackEcharts from '~com/echarts/stackEcharts.vue'
 import split from 'split.js'
 import countApi from '~api/count/index.js'
-import { getArrValue, getObjValue } from 'js-fast-way'
+import { getArrValue } from 'js-fast-way'
 import { useAppStore } from '~src/store'
 const useAppState = useAppStore()
 const projectId = ref(useAppState.getProjectId)
 
+
+
 //树节点被点击
 const treeNodeTap = ({ node, data }) => {
     areaId.value = data.id
@@ -162,18 +164,18 @@ const getPlanDatas = async () => {
 const planColors1 = ['#7F83F6', '#81B336', '#E99D43']
 const planLables1 = ref(['征地补偿', '专项设施', '青苗', '坟地补偿', '地上附着物'])
 const planDatas1 = ref([
-    {
-        name: '实际补助总金额',
-        value: [1200, 132, 501, 323, 654],
-    },
-    {
-        name: '设计补助总金额',
-        value: [120, 432, 1001, 111, 987],
-    },
-    {
-        name: '已结算总金额',
-        value: [120, 432, 1001, 323, 654],
-    },
+    // {
+    //     name: '实际补助总金额',
+    //     value: [1200, 132, 501, 323, 654],
+    // },
+    // {
+    //     name: '设计补助总金额',
+    //     value: [120, 432, 1001, 111, 987],
+    // },
+    // {
+    //     name: '已结算总金额',
+    //     value: [120, 432, 1001, 323, 654],
+    // },
 ])
 //获取金额进度
 const getPlanDatas1 = async () => {