|
@@ -2,7 +2,7 @@
|
|
<hc-drawer v-model="isShow" to-id="hc-project-list" is-close @close="drawerClose">
|
|
<hc-drawer v-model="isShow" to-id="hc-project-list" is-close @close="drawerClose">
|
|
<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'" v-model="basicForm" />
|
|
|
|
|
|
+ <HcInfo v-if="tabsKey === '1'" ref="infoRef" 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>
|
|
@@ -14,9 +14,9 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { ref, watch } from 'vue'
|
|
import { ref, watch } from 'vue'
|
|
-import { getArrValue, isNullES } from 'js-fast-way'
|
|
|
|
import HcInfo from './info.vue'
|
|
import HcInfo from './info.vue'
|
|
import mainApi from '~api/project/tree'
|
|
import mainApi from '~api/project/tree'
|
|
|
|
+import { getArrValue, isNullES } from 'js-fast-way'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
data: {
|
|
data: {
|
|
@@ -78,9 +78,10 @@ const saveAndNextStep = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
//保存数据
|
|
//保存数据
|
|
|
|
+const infoRef = ref(null)
|
|
const submitLoading = ref(false)
|
|
const submitLoading = ref(false)
|
|
const saveDataApi = async () => {
|
|
const saveDataApi = async () => {
|
|
-
|
|
|
|
|
|
+ console.log('saveDataApi', basicForm.value)
|
|
}
|
|
}
|
|
|
|
|
|
//关闭抽屉
|
|
//关闭抽屉
|