修复删除模特功能
This commit is contained in:
@@ -21,7 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="childrenItem active" v-mousewheel>
|
<ul class="childrenItem active" v-mousewheel>
|
||||||
<li class="childrenItem_title setLabel_text" :class="{active:optionsItem.checAll}" v-for="childrenItem,childrenIndex in optionsItem.childList" :key="childrenItem.id">
|
<li class="childrenItem_title setLabel_text" :class="{active:childrenItem.checAll}" v-for="childrenItem,childrenIndex in optionsItem.childList" :key="childrenItem.id">
|
||||||
|
<!-- {{optionsItem }} -->
|
||||||
<a-checkbox v-model:checked="childrenItem.checkAll" @change="onCheckAllchildrenItem(optionsItem)"></a-checkbox>
|
<a-checkbox v-model:checked="childrenItem.checkAll" @change="onCheckAllchildrenItem(optionsItem)"></a-checkbox>
|
||||||
<span v-show="!childrenItem.openType" :title="childrenItem.classificationName">{{ childrenItem.classificationName }}</span>
|
<span v-show="!childrenItem.openType" :title="childrenItem.classificationName">{{ childrenItem.classificationName }}</span>
|
||||||
<input v-show="childrenItem.openType" type="text" v-model="itemName">
|
<input v-show="childrenItem.openType" type="text" v-model="itemName">
|
||||||
|
|||||||
@@ -862,6 +862,7 @@ export default defineComponent({
|
|||||||
let libraryIds = data ? [data.id] : this.selectImgList
|
let libraryIds = data ? [data.id] : this.selectImgList
|
||||||
let newData = {
|
let newData = {
|
||||||
libraryIds:libraryIds,
|
libraryIds:libraryIds,
|
||||||
|
deleteModelConfirm:data.level1Type == 'Models' ? data.deleteModelConfirm?data.deleteModelConfirm : 0:'',
|
||||||
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
}
|
}
|
||||||
Https.axiosPost(Https.httpUrls.batchDeleteLibrary, newData).then(
|
Https.axiosPost(Https.httpUrls.batchDeleteLibrary, newData).then(
|
||||||
@@ -874,7 +875,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
).catch((res)=>{
|
).catch((res)=>{
|
||||||
if(data.level1Type == "Models" && res.errCode === 1){
|
if(data.level1Type == "Models" && res.errCode === 2){
|
||||||
let _this = this
|
let _this = this
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: res.errMsg,
|
title: res.errMsg,
|
||||||
@@ -886,6 +887,7 @@ export default defineComponent({
|
|||||||
centered:true,
|
centered:true,
|
||||||
onOk() {
|
onOk() {
|
||||||
data.deleteModelConfirm = 1
|
data.deleteModelConfirm = 1
|
||||||
|
|
||||||
_this.confirmDeletePic(data,index)
|
_this.confirmDeletePic(data,index)
|
||||||
},
|
},
|
||||||
onCancel(){
|
onCancel(){
|
||||||
|
|||||||
Reference in New Issue
Block a user