xiangpei
2025-02-25 c17dba9251df86e0fe23afe87ef540c493fae219
src/views/projectEngineering/projectLibrary/projectDetails.vue
@@ -30,7 +30,7 @@
      :isShow="isShow"
      class="full-width custom-height"
    />
    <div v-hasRole="['auditor']" v-if="audit" class="button-container">
    <div v-if="audit" class="button-container">
      <el-button
        class="save-button"
        type="primary"
@@ -42,6 +42,7 @@
        @click="showDialog"
      >驳回</el-button>
    </div>
    <div v-if="!disabled" class="button-container">
      <el-button
        class="save-button"
@@ -99,11 +100,11 @@
          value: "项目管理基础信息",
          componentName: BasicInfo,
        },
        {
          label: "投资管理基础信息",
          value: "投资管理基础信息",
          componentName: InvestInfo,
        },
        // {
        //   label: "投资管理基础信息",
        //   value: "投资管理基础信息",
        //   componentName: InvestInfo,
        // },
        {
          label: "项目投资及资金来源",
          value: "项目投资及资金来源",
@@ -114,16 +115,16 @@
          value: "项目(法人)单位登记信息",
          componentName: LegalPerson,
        },
        {
          label: "投资项目产业政策符合情况",
          value: "投资项目产业政策符合情况",
          componentName: PolicyInfo,
        },
        {
          label: "相关文书",
          value: "相关文书",
          componentName: DocumentsInfo,
        },
        // {
        //   label: "投资项目产业政策符合情况",
        //   value: "投资项目产业政策符合情况",
        //   componentName: PolicyInfo,
        // },
        // {
        //   label: "相关文书",
        //   value: "相关文书",
        //   componentName: DocumentsInfo,
        // },
      ],
      childRef: null,
    };
@@ -149,6 +150,7 @@
    basicInfoForm(data) {
      this.projectForm.projectInfoForm = data;
      this.projectId = data.id;
      this.audit = this.$route.query.audit == 1 && this.projectForm.projectInfoForm.auditRole;
    },
    investInfoForm(data) {
      this.projectForm.projectInvestmentInfoForm = data;
@@ -186,16 +188,17 @@
    saveProject(num) {
      this.projectForm.projectInfoForm.usedStatus = num;
      editProject(this.projectForm).then((res) => {
        this.$message.success("操作成功");
        this.$message.success("保存成功");
        this.$store.dispatch("tagsView/delView", this.$route);
        this.$router.push('/projectEngineering/project/projectLibrary')
      })
      this.$router.push('/projectEngineering/project/projectLibrary')
    }
  },
  mounted() {
    if (this.$route.query.disabled) {
      this.disabled = true;
    }
    this.audit = this.$route.query.audit == 1;
  },
};
</script>