Gary Gu
3 days ago e2a92db057ef2153f3e645e074f1e771987b2051
src/components/Gantt.vue
@@ -30,6 +30,12 @@
  export default {
    name: "Gantt",
    components: {},
    props: {
      selectedId: {
        type: String,
        default: "",
      },
    },
    data() {
      return {
        taskslist: [],
@@ -40,6 +46,16 @@
        columnsShow: false,
      };
    },
    watch: {
      selectedId: {
        handler(newVal) {
          console.log("甘特图接收到的数据:", newVal);
          // 处理数据变化的逻辑
        },
        deep: true, // 深度监听对象内部变化
        immediate: true, // 立即执行一次
      },
    },
    mounted() {
      this.init(); //初始化
      this.getProjectqryDataColl(); //获取数据