新增衣服设置优先级,相同衣服id导致优先级相同问题
This commit is contained in:
@@ -723,7 +723,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
//确定修改名称
|
||||
confrimRename(){
|
||||
async confrimRename(){
|
||||
let data = {
|
||||
libraryIds:this.renameType === 'single' ? [this.selectSingleImg.id] : this.selectImgList,
|
||||
libraryName:this.newPicName,
|
||||
@@ -748,27 +748,32 @@ export default defineComponent({
|
||||
"updateTime": "",
|
||||
"userId": 0
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.batchUpdateLibraryName, data).then(
|
||||
(rv: any) => {
|
||||
if(this.renameType ==='batch'){
|
||||
this.selectImgList = []
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.relationLibrary, data2).then(
|
||||
(rv: any) => {
|
||||
this.getLibraryList()
|
||||
this.closeRenameModal()
|
||||
|
||||
let bor = false
|
||||
if(this.newPicName){//多选修改名字
|
||||
await Https.axiosPost(Https.httpUrls.batchUpdateLibraryName, data).then(
|
||||
(rv: any) => {
|
||||
if(this.renameType ==='batch'){
|
||||
this.selectImgList = []
|
||||
}
|
||||
).catch((res)=>{
|
||||
// this.closeRenameModal()
|
||||
});
|
||||
}
|
||||
).catch((res)=>{
|
||||
// this.closeRenameModal()
|
||||
});
|
||||
|
||||
|
||||
|
||||
bor = true
|
||||
}
|
||||
).catch((res)=>{
|
||||
// this.closeRenameModal()
|
||||
});
|
||||
}
|
||||
if(labelArr.length > 0){//多选修改标签
|
||||
await Https.axiosPost(Https.httpUrls.relationLibrary, data2).then(
|
||||
(rv: any) => {
|
||||
bor = true
|
||||
}
|
||||
).catch((res)=>{
|
||||
// this.closeRenameModal()
|
||||
});
|
||||
}
|
||||
if(bor){
|
||||
this.getLibraryList()
|
||||
}
|
||||
this.closeRenameModal()
|
||||
},
|
||||
|
||||
//打开修改名称弹窗
|
||||
@@ -792,6 +797,7 @@ export default defineComponent({
|
||||
"updateTime": "",
|
||||
"userId": 0
|
||||
}
|
||||
this.value.editLabelValue = []
|
||||
if(type === 'single'){
|
||||
this.selectSingleImg = data
|
||||
this.newPicName = data.name
|
||||
|
||||
Reference in New Issue
Block a user