From 224b952f605aeba2a4b72a415ea73a38a314648f Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 26 Apr 2024 16:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlibrary=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=A0=87=E7=AD=BEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/LibraryPage/searchLabel.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/component/LibraryPage/searchLabel.vue b/src/component/LibraryPage/searchLabel.vue index 4b9c4e45..05cd198f 100644 --- a/src/component/LibraryPage/searchLabel.vue +++ b/src/component/LibraryPage/searchLabel.vue @@ -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'){