fuliqi
2024-11-29 ee5553f438eadb34a3261b718145e9e7f8a27580
src/views/projectEngineering/projectLibrary/projectDetails.vue
@@ -1,7 +1,7 @@
<template>
  <el-card class="card-container">
  <el-card class="card-container" >
    <div class="flex-container mb-4">
      <el-tabs v-model="currentTab" @tab-click="handleClick">
      <el-tabs v-model="currentTab" @tab-click="handleClick" v-show="isShow">
        <el-tab-pane
          v-for="item in TABS_DATA"
          :key="item.value"
@@ -19,6 +19,8 @@
      ref="childRef"
      :disabled="disabled"
      @toNext="changeTable"
      @updateIsShow="updateIsShow"
      :isShow="isShow"
      class="full-width custom-height"
    />
    <div v-if="!disabled" class="button-container">
@@ -41,6 +43,7 @@
  name: 'ProjectDetails',
  data() {
    return {
      isShow: false,
      currentTab: '项目管理基础信息',
      disabled: false,
      projectForm:{},
@@ -81,8 +84,11 @@
    };
  },
  methods: {
    updateIsShow(newValue) {
      this.isShow = newValue;
    },
    handleClick(tabTarget) {
      this.componentName = this.TABS_DATA[tabTarget.index].componentName;
        this.componentName = this.TABS_DATA[tabTarget.index].componentName;
    },
    changeTable(index) {
      this.componentName = this.TABS_DATA[index].componentName;
@@ -95,10 +101,11 @@
      this.$refs.childRef.reset();
    },
  },
  created() {
    console.log("sss")
  },
  mounted() {
    if(this.$route.query.disabled){
      this.disabled = true
    }
  }
};
</script>