| | |
| | | <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" |
| | |
| | | ref="childRef" |
| | | :disabled="disabled" |
| | | @toNext="changeTable" |
| | | @updateIsShow="updateIsShow" |
| | | :isShow="isShow" |
| | | class="full-width custom-height" |
| | | /> |
| | | <div v-if="!disabled" class="button-container"> |
| | |
| | | name: 'ProjectDetails', |
| | | data() { |
| | | return { |
| | | isShow: false, |
| | | currentTab: '项目管理基础信息', |
| | | disabled: false, |
| | | projectForm:{}, |
| | |
| | | }; |
| | | }, |
| | | 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; |
| | |
| | | this.$refs.childRef.reset(); |
| | | }, |
| | | }, |
| | | created() { |
| | | console.log("sss") |
| | | }, |
| | | |
| | | mounted() { |
| | | if(this.$route.query.disabled){ |
| | | this.disabled = true |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |