历史记录编辑项目设置按钮文案

This commit is contained in:
X1627315083
2025-10-21 17:33:21 +08:00
parent e1700cf85a
commit 70e11dc772
5 changed files with 18 additions and 9 deletions

View File

@@ -29,7 +29,7 @@
<div>{{ $t('newProjectg.projectSetting') }}</div>
</div>
<div class="workspaceBox">
<workspace ref="workspace" :status="'edit'" @setProject="setProject" :httpWorkflowType="projectData.process"></workspace>
<workspace ref="workspace" :status="'edit'" @setProject="setProject" :sourceType="sourceType" :httpWorkflowType="projectData.process"></workspace>
</div>
</div>
<div class="mark_loading" v-show="isShowMark">
@@ -56,6 +56,7 @@ export default defineComponent({
const data = reactive({
habitSetStyle:false,
isShowMark:false,
sourceType:'',
projectData:{} as any,
})
const dataDom = reactive({
@@ -64,9 +65,10 @@ export default defineComponent({
const setIsShowMark = (boolean:boolean)=>{
data.isShowMark = boolean
}
const init = (value:any)=>{
const init = (value:any,type:string = 'create')=>{
data.projectData = value
data.habitSetStyle = true
data.sourceType = type
getHistory(value.id)
}
provide('setIsShowMark',setIsShowMark)

View File

@@ -84,7 +84,7 @@
</div>
</div>
<div class="complete">
<div class="gallery_btn" style="padding: 0rem 2.2rem; line-height: 4.5rem;font-weight: 500;" @click="complete">{{$t('HomeView.Start')}}</div>
<div class="gallery_btn" style="padding: 0rem 2.2rem; line-height: 4.5rem;font-weight: 500;" @click="complete">{{ sourceType == 'edit' ? $t('HomeView.Save') : $t('HomeView.Start')}}</div>
</div>
</div>
<habitSetStyle ref="habitSetStyle" @setWorkspaceStyle="setWorkspaceStyle" :mannequinStyle="mannequinStyle"></habitSetStyle>
@@ -130,6 +130,10 @@ export default defineComponent({
status:{
type:String,
default:''
},
sourceType:{
type:String,
default:''
}
},
emits:['setProject'],