作品广场
This commit is contained in:
@@ -456,7 +456,11 @@ export default defineComponent({
|
||||
// this.store.commit("clearAllCollection");
|
||||
}
|
||||
if (this.$route.params.id) {
|
||||
this.getHistoryChoose(this.$route.params.id, "normal");
|
||||
if(this.$route.params.type == 'History'){
|
||||
this.getHistoryChoose(this.$route.params.id, "normal");
|
||||
}else if(this.$route.params.type == 'Works'){
|
||||
this.getWorks(this.$route.params.id, "normal");
|
||||
}
|
||||
this.store.commit("setDesignCollectionList",[]);
|
||||
} else {
|
||||
// this.store.commit("clearAllData");
|
||||
@@ -895,7 +899,32 @@ export default defineComponent({
|
||||
this.isShowMark = false;
|
||||
});
|
||||
},
|
||||
|
||||
getWorks(userGroupId: any, type: any) {
|
||||
let data:any = {
|
||||
"accountId": 0,
|
||||
"collectionId": 0,
|
||||
"coverId": 0,
|
||||
"createDate": "",
|
||||
"id": 0,
|
||||
"isDeleted": 0,
|
||||
"portfolioDes": "",
|
||||
"portfolioName": "",
|
||||
"portfolioType": "",
|
||||
"status": 0,
|
||||
"updateDate": "",
|
||||
"userLikeGroupId":userGroupId
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.setPorfolioChoose, data).then(
|
||||
(rv: any) => {
|
||||
console.log(rv);
|
||||
|
||||
this.dealHistoryChooseData(rv, type);
|
||||
this.isShowMark = false;
|
||||
}
|
||||
).catch((res)=>{
|
||||
this.isShowMark = false;
|
||||
});
|
||||
},
|
||||
//处理选择组的数据
|
||||
dealHistoryChooseData(data: any, type: any) {
|
||||
let collectionData = {
|
||||
|
||||
Reference in New Issue
Block a user