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