zhangzengfei
2022-06-07 e9dc03b62fea3db1b2029a2a485c3e18caac6a43
src/views/project/index.vue
@@ -249,6 +249,7 @@
      total: 0,
      background: true,
      selectRows: "",
      expandRow: "",
      elementLoadingText: "正在加载...",
      queryForm: {
        pageNo: 1,
@@ -333,9 +334,12 @@
        return;
      }
      const { data, total } = await getPkgList(row.id);
      this.getPackageList(row.id);
    },
    async getPackageList(id) {
      const { data, total } = await getPkgList(id);
      this.list.forEach((item, idx) => {
        if (item.id === row.id) {
        if (item.id === id) {
          this.list[idx].pkgList = data.reverse();
        }
      });
@@ -387,7 +391,7 @@
        this.$baseConfirm("你确定要删除当前项吗", null, async () => {
          const { msg } = await deletePkg(row);
          this.$baseMessage(msg, "success");
          this.fetchData();
          this.getPackageList(row.projectId);
        });
      }
    },