修改文档详情

This commit is contained in:
qq787203167
2022-02-23 17:51:13 +08:00
parent 8512db8baa
commit 7912df8e23
3 changed files with 92 additions and 56 deletions
@@ -29,6 +29,7 @@
@Collection="Collection"
@subscribe="subscribe"
@onSelectChange="onSelectChange"
@detailClick="detailClick"
/>
</div>
<addForm
@@ -92,7 +93,8 @@
updateInfo: 'document/bussDocumentLibraryEO/updateInfo', //编辑
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除
}
},
idList:[],
}
},
mounted() {
@@ -115,6 +117,25 @@
},
handleDel() {
if (this.idList.length > 0){
let _this = this
this.$confirm({
content: '确认删除?',
onOk() {
deleteAction(_this.url.deleteBatch, { ids: _this.idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(res.message)
_this.idList = []
eventBUs.$emit('searchReset')
} else {
this.$message.warning(res.message)
}
})
}
})
}else{
this.$message.warning('请选择需要删除的数据')
}
},
handleCompare() {
@@ -146,7 +167,6 @@
})
}
})
},
//收藏按钮
Collection(val) {
@@ -157,7 +177,13 @@
console.log('val222', val)
},
onSelectChange(value){
this.idList = value
},
detailClick(item){
this.$router.push({
path:'/docManage/library/detail',
query:item
})
},
}
}