|
@@ -3,6 +3,7 @@
|
|
<div class="hc-project-info-drawer relative h-full">
|
|
<div class="hc-project-info-drawer relative h-full">
|
|
<hc-tab-card scrollbar :tabs="tabsData" :tab-key="tabsKey" is-action-btn :disabled="isDisabled" @change="tabsChange">
|
|
<hc-tab-card scrollbar :tabs="tabsData" :tab-key="tabsKey" is-action-btn :disabled="isDisabled" @change="tabsChange">
|
|
<HcInfo v-if="tabsKey === '1'" ref="infoRef" v-model="basicForm" />
|
|
<HcInfo v-if="tabsKey === '1'" ref="infoRef" v-model="basicForm" />
|
|
|
|
+ <HcTemplate v-if="tabsKey === '2'" ref="tempRef" v-model="basicForm" />
|
|
<template #action>
|
|
<template #action>
|
|
<el-button hc-btn class="mr-4" :loading="submitLoading" @click="saveAndExit">保存并退出</el-button>
|
|
<el-button hc-btn class="mr-4" :loading="submitLoading" @click="saveAndExit">保存并退出</el-button>
|
|
<el-button hc-btn type="primary" :loading="submitLoading" @click="saveAndNextStep">保存并进入下一步</el-button>
|
|
<el-button hc-btn type="primary" :loading="submitLoading" @click="saveAndNextStep">保存并进入下一步</el-button>
|
|
@@ -15,6 +16,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, watch } from 'vue'
|
|
import { ref, watch } from 'vue'
|
|
import HcInfo from './info.vue'
|
|
import HcInfo from './info.vue'
|
|
|
|
+import HcTemplate from './template.vue'
|
|
import mainApi from '~api/project/project'
|
|
import mainApi from '~api/project/project'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
|
|
|
|
@@ -109,6 +111,7 @@ const saveAndNextStep = async () => {
|
|
|
|
|
|
//ref
|
|
//ref
|
|
const infoRef = ref(null)
|
|
const infoRef = ref(null)
|
|
|
|
+const tempRef = ref(null)
|
|
|
|
|
|
//保存数据
|
|
//保存数据
|
|
const submitLoading = ref(false)
|
|
const submitLoading = ref(false)
|