feat: 历史记录编辑完成之后跳转design
This commit is contained in:
@@ -126,8 +126,8 @@ export default defineComponent({
|
||||
dataDom.workspace.init(storeData)
|
||||
}
|
||||
const setProject = ()=>{
|
||||
emit('getHistory',{ data: data.projectData })
|
||||
cleardata()
|
||||
emit('getHistory')
|
||||
}
|
||||
return{
|
||||
...toRefs(dataDom),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user