收藏接口

This commit is contained in:
qq787203167
2022-02-23 18:03:20 +08:00
parent 60ea2d14e3
commit f530e76ae5
@@ -94,7 +94,7 @@
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看 getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除 deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除
}, },
idList:[], idList: []
} }
}, },
mounted() { mounted() {
@@ -117,7 +117,7 @@
}, },
handleDel() { handleDel() {
if (this.idList.length > 0){ if (this.idList.length > 0) {
let _this = this let _this = this
this.$confirm({ this.$confirm({
content: '确认删除?', content: '确认删除?',
@@ -133,10 +133,9 @@
}) })
} }
}) })
}else{ } else {
this.$message.warning('请选择需要删除的数据') this.$message.warning('请选择需要删除的数据')
} }
}, },
handleCompare() { handleCompare() {
this.$nextTick(() => { this.$nextTick(() => {
@@ -170,21 +169,33 @@
}, },
//收藏按钮 //收藏按钮
Collection(val) { Collection(val) {
console.log('val111', val) this.$confirm({
content: '确认收藏?',
onOk() {
getAction('document/bussDocumentLibraryEO/addCollect', { id: val.id }).then((res) => {
if (res.success) {
this.$message.success(res.message)
eventBUs.$emit('searchReset')
} else {
this.$message.warning(res.message)
}
})
}
})
}, },
//订阅按钮 //订阅按钮
subscribe(val) { subscribe(val) {
console.log('val222', val) console.log('val222', val)
}, },
onSelectChange(value){ onSelectChange(value) {
this.idList = value this.idList = value
},
detailClick(item){
this.$router.push({
path:'/docManage/library/detail',
query:item
})
}, },
detailClick(item) {
this.$router.push({
path: '/docManage/library/detail',
query: item
})
}
} }
} }
</script> </script>