修复library修改名字标签bug

This commit is contained in:
X1627315083
2024-04-26 16:58:06 +08:00
parent 89b5efa714
commit 224b952f60

View File

@@ -170,6 +170,7 @@ export default defineComponent({
this.designType = parent.designType || ''
this.selectImgList = parent.selectImgList || ''
this.options = parent.options || []
this.selectSingleImg = data
this.newPicName = ''
this.editSex = this.sex
@@ -252,7 +253,7 @@ export default defineComponent({
},
async confrimRename(){
let data = {
libraryIds:this.renameType === 'total' ? this.selectImgList : [this.selectSingleImg.id] ,
libraryIds:this.renameType === 'batch' ? this.selectImgList : [this.selectSingleImg.id] ,
libraryName:this.newPicName,//library名字
userGroupName:this.newPicName,//history名字
userGroupId :this.selectSingleImg.id,//history id
@@ -268,7 +269,7 @@ export default defineComponent({
"classificationName": "",
"createTime": "",
"id": 0,
"libraryIdList": this.renameType === 'total' ? this.selectImgList : [this.selectSingleImg.id],
"libraryIdList": this.renameType === 'batch' ? this.selectImgList : [this.selectSingleImg.id],
"type": this.selectCode,
"updateTime": "",
"userId": 0
@@ -290,7 +291,7 @@ export default defineComponent({
).catch((res)=>{
});
}
if(this.renameType == 'total'){//多选修改标签
if(this.renameType == 'batch'){//多选修改标签
await Https.axiosPost(Https.httpUrls.editRelPublicClassificationIdList, data2).then(
(rv: any) => {
bor = true
@@ -307,7 +308,7 @@ export default defineComponent({
}
let data3 = {
libraryId:this.renameType === 'total' ? this.selectImgList : [this.selectSingleImg.id],
libraryId:this.renameType === 'batch' ? this.selectImgList : [this.selectSingleImg.id],
level2Type:this.editDesignType.value,
}
if(this.selectCode == 'Sketchboard'){