This commit is contained in:
X1627315083
2024-08-14 16:02:55 +08:00
parent eb958d10c8
commit 97ac7e9dfa
16 changed files with 1301 additions and 64 deletions

View File

@@ -99,6 +99,7 @@ import { ElCascader } from 'element-plus'
import { useI18n } from 'vue-i18n';
import setLabel from '@/component/LibraryPage/setLabel.vue';
import searchLabel from '@/component/LibraryPage/searchLabel.vue';
import { useStore } from "vuex";
export default defineComponent({
components: {
@@ -110,6 +111,7 @@ export default defineComponent({
searchLabel,
},
setup() {
const store = useStore();
let rangePickerValue:any = ref([])
let renameData:any = ref({}) //修改名字选中的数据
let isShowMark:any = ref(false)
@@ -171,6 +173,7 @@ export default defineComponent({
}
provide('type',type)
return {
store,
rangePickerValue,
columns,
collectionList,
@@ -310,6 +313,19 @@ export default defineComponent({
(rv: any) => {
message.success(this.t('HistoryPage.jsContent1'))
this.collectionList.splice(index,1)
// 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",{});
}
console.log(this.store.state.HomeStoreModule.userGroupId,record);
}
);
}