From 873b02b343934e3d45577a565b3b7dfb1b075993 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Wed, 17 Sep 2025 11:19:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/HomeView/history111.vue | 60 ++++++++++++++++++------------- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/src/views/HomeView/history111.vue b/src/views/HomeView/history111.vue index 6104ef18..87f4f599 100644 --- a/src/views/HomeView/history111.vue +++ b/src/views/HomeView/history111.vue @@ -121,9 +121,10 @@ :groupDetails="groupDetails" :collectionName="collectionName" > - + - + +
@@ -144,8 +145,9 @@ import enUS from 'ant-design-vue/es/locale/en_US' import zhCN from 'ant-design-vue/es/locale/zh_CN' import { ConfigProvider } from 'ant-design-vue' import TableSearchBar from '@/component/common/TableSearchBar.vue' -import setLabel from '@/component/LibraryPage/setLabel.vue' -import searchLabel from '@/component/LibraryPage/searchLabel.vue' +// import setLabel from '@/component/LibraryPage/setLabel.vue' +// import searchLabel from '@/component/LibraryPage/searchLabel.vue' +import projectSetting from '@/component/home/newProject/setting.vue' import { useStore } from 'vuex' export default defineComponent({ @@ -153,17 +155,18 @@ export default defineComponent({ // HeaderComponent, HistoryDetail, // RobotAssist, - setLabel, + // setLabel, ElCascader, - searchLabel, + // searchLabel, SearchOutlined, ConfigProvider, - TableSearchBar + TableSearchBar, + projectSetting }, setup() { const store = useStore() let rangePickerValue: any = ref([]) - + const projectSetting: any = ref(null) let renameData: any = ref({}) //修改名字选中的数据 let isShowMark: any = ref(false) @@ -268,7 +271,8 @@ export default defineComponent({ isShowMark, enUS, zhCN, - tableLocale + tableLocale, + projectSetting } }, data() { @@ -369,8 +373,8 @@ export default defineComponent({ }, //查询列表 - searchHistoryList(value:any) { - console.log('value',value) + searchHistoryList(value: any) { + console.log('value', value) this.currentPage = 1 this.getHistoryList() }, @@ -429,23 +433,28 @@ export default defineComponent({ console.log('record', record) let deleteGroupFun = (id: any, index: number) => { - let data = { - userGroupId: id - } - Https.axiosPost(Https.httpUrls.deleteUserGroup, data).then((rv: any) => { + // let data = { + // userGroupId: id + // } + Https.axiosPost( + Https.httpUrls.projectDetail, + {}, + { params: { projectId: id } } + ).then((rv: any) => { message.success(this.t('HistoryPage.jsContent1')) this.collectionList.splice(index, 1) + this.getHistoryList() // let userGroupId: any = computed(() => { // return // }); - if (record.id == this.store.state.HomeStoreModule.userGroupId) { - this.store.commit('deleteUserGroupId') - this.store.commit('setLikeDesignCollectionList', []) - this.store.commit('clearAllData') - this.store.commit('clearAllCollection') - this.store.commit('setAllBoardDataChoose', {}) - this.store.commit('clearShowSketchboard', {}) - } + // if (record.id == this.store.state.HomeStoreModule.userGroupId) { + // this.store.commit('deleteUserGroupId') + // this.store.commit('setLikeDesignCollectionList', []) + // this.store.commit('clearAllData') + // this.store.commit('clearAllCollection') + // this.store.commit('setAllBoardDataChoose', {}) + // this.store.commit('clearShowSketchboard', {}) + // } }) } Modal.confirm({ @@ -463,8 +472,9 @@ export default defineComponent({ //修改名字 renameCollection(record: any, index: number) { - let searchLabel: any = this.$refs.searchLabel - searchLabel.init(record, index) + // let searchLabel: any = this.$refs.searchLabel + // searchLabel.init(record, index) + this.$refs.projectSetting.init(record) }, retrieveHome(record: any) {