This commit is contained in:
X1627315083
2025-04-09 14:09:19 +08:00
parent b6e5f05f06
commit 37f1b36e54
76 changed files with 1969 additions and 970 deletions

View File

@@ -294,11 +294,12 @@ export default defineComponent({
//删除分组
deleteGroup(record:any,index:number){
console.log(record)
let deleteGroupFun = (id:any,index:number) =>{
let data = {
userGroupId:id
projectId:id
}
Https.axiosPost(Https.httpUrls.deleteUserGroup,data).then(
Https.axiosPost(Https.httpUrls.projectDetail,{},{params:data}).then(
(rv: any) => {
message.success(this.t('HistoryPage.jsContent1'))
this.collectionList.splice(index,1)
@@ -306,8 +307,10 @@ export default defineComponent({
// return
// });
if(record.id == this.store.state.HomeStoreModule.userGroupId){
this.store.commit('deleteUserGroupId')
// this.store.commit('deleteUserGroupId')
this.store.commit("setLikeDesignCollectionList", []);
this.store.commit('createProbject')
this.store.commit("clearAllData");
this.store.commit("clearAllCollection");
this.store.commit("setAllBoardDataChoose",{});
@@ -340,6 +343,7 @@ export default defineComponent({
if(record.original == 0){
num = false
}
this.store.commit('createProbject')
this.$router.push({name:'homePage',params: {id:record.id,type:'History'}})
this.store.commit('setChooseIsDesign',num)

View File

@@ -237,11 +237,12 @@
<!-- 蒙层 end-->
<div v-show="selectCode == 'MyBrand'" class="right_content_body">
<div v-show="!isBrandDetail" class="list">
<div class="addBrand gallery_btn" @click="addBrand">Add brand</div>
<div class="addBrand gallery_btn" style="padding:0 2.5rem;" @click="addBrand">Add brand</div>
<div class="content_body_table scroll_style">
<div class="myBrandItem content_img_item" v-for="item in brandDNAList" :key="item.id" @click="openBrandDetail(item)">
<div class="myBrandItem content_img_item" v-for="item,index in brandDNAList" :key="item.id" @click="openBrandDetail(item)">
<img :src="item.minioUrl" alt="">
<div class="bg"></div>
<i class="fi fi-rr-trash icon_delete" @click.stop="deleteBrand(item,index)"></i>
</div>
<div class="no_data_block" v-show="!brandDNAList.length && !isShowMark">
<img src="@/assets/images/homePage/null_img.png">
@@ -258,7 +259,7 @@
/>
</div>
</div>
<brandDetail v-show="isBrandDetail" v-model:isShowMark="isShowMark" ref="brandDetail" @handleBack="()=>isBrandDetail = false"></brandDetail>
<brandDetail v-show="isBrandDetail" v-model:isShowMark="isShowMark" :selectCode="selectCode" ref="brandDetail" @handleBack="()=>isBrandDetail = false"></brandDetail>
</div>
<div class="right_content_body" v-show="uploadGenerate !='Upload'">
@@ -795,6 +796,7 @@ export default defineComponent({
const addBrand = ()=>{
dataDom.createBrand.openAddBrand()
}
watch(
() => props.getLangIsShowMark, // 这里使用了一个 getter 函数
(newValue, oldValue) => {
@@ -1822,7 +1824,28 @@ export default defineComponent({
})
}
},
deleteBrand(item:any,index:any){
let this_ = this
Modal.confirm({
title: this.t('LibraryPage.jsContent11'),
icon: createVNode(ExclamationCircleOutlined),
okText: 'Yes',
cancelText: 'No',
mask:false,
centered:true,
onOk() {
let data = {
id:item.id,
}
Https.axiosPost(Https.httpUrls.brandDNADelete, data).then(
(rv) => {
this_.brandDNAList.splice(index,1)
}
).catch(res=>{
});
}
});
}
}
})
@@ -2025,7 +2048,7 @@ export default defineComponent({
.right_content_body{
width: 100%;
height: 100%;
background: #f6f5fa;
background: #f7f8fa;
padding: 2rem 4rem;
border-radius: 2rem;
overflow: hidden;
@@ -2149,11 +2172,11 @@ export default defineComponent({
width: calc(100% / 5 - 1rem);
margin: 1rem;
border-radius: 2rem;
border: 2px solid #000;
// border: 2px solid #000;
position: relative;
aspect-ratio: 1 / .566;
cursor: pointer;
background: #fff;
// background: #fff;
> img{
width: 100%;
height: 100%;
@@ -2167,10 +2190,24 @@ export default defineComponent({
background: rgba(0,0,0,0);
transition: all .3s;
}
i{
display: flex;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 3rem;
display: none;
color: #fff;
cursor: pointer;
}
&:hover{
> .bg{
background: rgba(0,0,0,0.2);
}
> i{
display: flex;
}
}
}
.content_img_item_block{