修复用户指引bug
This commit is contained in:
@@ -270,8 +270,14 @@ export default defineComponent({
|
||||
this.store.commit("addGenerateMaterialFils", imgData);
|
||||
},
|
||||
//选择所有的图片
|
||||
getLibraryList(str:any){
|
||||
let workspace = this.store.state.Workspace.workspace
|
||||
async getLibraryList(str:any){
|
||||
let workspace = JSON.parse(JSON.stringify(this.store.state.Workspace.workspace))
|
||||
if(this.searchPictureName != this.isOldSearchPictureName || this.workspace?.sex != workspace.sex){
|
||||
this.imgList = []
|
||||
this.currentPage = 1
|
||||
}else{
|
||||
}
|
||||
|
||||
if(str == 'di'){
|
||||
this.currentPage = this.imgList?.[0]?.id != undefined?this.imgList?.length / this.pageSize+1:1
|
||||
}
|
||||
@@ -287,7 +293,7 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
this.isShowLoading = true
|
||||
Https.axiosPost(Https.httpUrls.queryLibraryPage,data).then(
|
||||
await Https.axiosPost(Https.httpUrls.queryLibraryPage,data).then(
|
||||
(rv: any) => {
|
||||
this.total = rv.total
|
||||
let aa:any = []
|
||||
@@ -318,15 +324,13 @@ export default defineComponent({
|
||||
}
|
||||
aa.push(item)
|
||||
});
|
||||
if(this.searchPictureName != this.isOldSearchPictureName){
|
||||
this.imgList = []
|
||||
}else{
|
||||
}
|
||||
|
||||
this.isOldSearchPictureName = this.searchPictureName
|
||||
if((aa[aa.length-1].id == this.imgList[this.imgList.length-1]?.id) && aa?.[aa.length-1]?.id){
|
||||
}else{
|
||||
this.imgList.push(...aa)
|
||||
}
|
||||
this.workspace = workspace
|
||||
// this.imgList = aa
|
||||
this.isShowLoading = false
|
||||
}
|
||||
|
||||
@@ -662,6 +662,7 @@ export default defineComponent({
|
||||
}
|
||||
.modal_img_max{
|
||||
// flex: 1;
|
||||
width: 57rem;
|
||||
height: 35rem;
|
||||
position: relative;
|
||||
.mark_loading{
|
||||
@@ -681,6 +682,8 @@ export default defineComponent({
|
||||
>img{
|
||||
// height: 100%;
|
||||
width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
&.active{
|
||||
flex-direction: row;
|
||||
|
||||
@@ -725,7 +725,6 @@ export default defineComponent({
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
align-content: space-around;
|
||||
width: 50%;
|
||||
margin: 3rem auto;
|
||||
overflow: hidden;
|
||||
// padding: 3rem 0;
|
||||
|
||||
Reference in New Issue
Block a user