feat: 历史记录编辑完成之后跳转design

This commit is contained in:
zhangyh
2025-09-23 15:22:43 +08:00
parent 12ca8f0eb0
commit 55ca3e5462
2 changed files with 8 additions and 3 deletions

View File

@@ -126,8 +126,8 @@ export default defineComponent({
dataDom.workspace.init(storeData)
}
const setProject = ()=>{
emit('getHistory',{ data: data.projectData })
cleardata()
emit('getHistory')
}
return{
...toRefs(dataDom),

View File

@@ -70,7 +70,7 @@
<!-- <setLabel ref="setLabel"></setLabel> -->
<!-- <RobotAssist></RobotAssist> -->
<!-- <searchLabel ref="searchLabel" isHistory></searchLabel> -->
<projectSetting ref="projectSetting" @getHistory="getHistoryList"></projectSetting>
<projectSetting ref="projectSetting" @getHistory="handleConfirmEdit"></projectSetting>
<div class="history_loading" v-show="isShowMark">
<a-spin size="large" />
</div>
@@ -95,6 +95,7 @@ import TableSearchBar from '@/component/common/TableSearchBar.vue'
// import searchLabel from '@/component/LibraryPage/searchLabel.vue'
import projectSetting from '@/component/home/newProject/setting.vue'
import { useStore } from 'vuex'
import router from '@/router'
export default defineComponent({
components: {
@@ -423,7 +424,11 @@ export default defineComponent({
// searchLabel.init(record, index)
this.$refs.projectSetting.init(record)
},
handleConfirmEdit({ data }) {
// console.log('data', data)
router.push(`/home?history=${data.id}`)
this.getHistoryList()
},
retrieveHome(record: any) {
// let num = true
// if (record.original == 0) {