收藏接口
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
|
||||
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除
|
||||
},
|
||||
idList:[],
|
||||
idList: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
},
|
||||
handleDel() {
|
||||
if (this.idList.length > 0){
|
||||
if (this.idList.length > 0) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: '确认删除?',
|
||||
@@ -133,10 +133,9 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
this.$message.warning('请选择需要删除的数据')
|
||||
}
|
||||
|
||||
},
|
||||
handleCompare() {
|
||||
this.$nextTick(() => {
|
||||
@@ -170,21 +169,33 @@
|
||||
},
|
||||
//收藏按钮
|
||||
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) {
|
||||
console.log('val222', val)
|
||||
},
|
||||
onSelectChange(value){
|
||||
this.idList = value
|
||||
},
|
||||
detailClick(item){
|
||||
this.$router.push({
|
||||
path:'/docManage/library/detail',
|
||||
query:item
|
||||
})
|
||||
onSelectChange(value) {
|
||||
this.idList = value
|
||||
},
|
||||
detailClick(item) {
|
||||
this.$router.push({
|
||||
path: '/docManage/library/detail',
|
||||
query: item
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user