对接文档库删除接口
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
import tableData from '@/components/tableDate/index'
|
||||
import addForm from './modules/addForm'
|
||||
import frameAssembly from '@/components/frameAssembly/index'
|
||||
import { getAction, postAction, deleteAction } from '@/api/manage'
|
||||
import eventBUs from '../../../common/event'
|
||||
|
||||
export default {
|
||||
name: 'docLibrary',
|
||||
@@ -69,47 +71,48 @@
|
||||
{
|
||||
text: '删除',
|
||||
ClickEvent: 'deleteTable'
|
||||
},
|
||||
}
|
||||
],
|
||||
selectedRowKeys: [],
|
||||
loading: false,
|
||||
url:{
|
||||
tableHeader:'document/bussDocumentLibraryEO/getHeader', //表格头部字段
|
||||
seachList:'document/bussDocumentLibraryEO/queryCondition', //搜索字段
|
||||
tableList:'document/bussDocumentLibraryEO/queryPageInfo', //表格数据
|
||||
getAddForm:'document/bussDocumentLibraryEO/getAddForm', // 表单的字段
|
||||
addInfo:'document/bussDocumentLibraryEO/addInfo', //新增
|
||||
updateInfo:'document/bussDocumentLibraryEO/updateInfo', //编辑
|
||||
getDocumentInfo:'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
|
||||
},
|
||||
url: {
|
||||
tableHeader: 'document/bussDocumentLibraryEO/getHeader', //表格头部字段
|
||||
seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段
|
||||
tableList: 'document/bussDocumentLibraryEO/queryPageInfo', //表格数据
|
||||
getAddForm: 'document/bussDocumentLibraryEO/getAddForm', // 表单的字段
|
||||
addInfo: 'document/bussDocumentLibraryEO/addInfo', //新增
|
||||
updateInfo: 'document/bussDocumentLibraryEO/updateInfo', //编辑
|
||||
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
|
||||
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onSelectChange() {
|
||||
|
||||
},
|
||||
handleExport(){
|
||||
handleExport() {
|
||||
|
||||
},
|
||||
handleFileExport(){
|
||||
handleFileExport() {
|
||||
|
||||
},
|
||||
handleAdd(){
|
||||
handleAdd() {
|
||||
this.$refs.addFormRef.add()
|
||||
},
|
||||
handleModule(){
|
||||
handleModule() {
|
||||
|
||||
},
|
||||
handleDel(){
|
||||
handleDel() {
|
||||
|
||||
},
|
||||
handleCompare() {
|
||||
this.$nextTick(()=>{
|
||||
this.$nextTick(() => {
|
||||
this.$refs.frameAssemblyRef.visible = true
|
||||
})
|
||||
// this.$refs.addFormRef.add()
|
||||
},
|
||||
handleFileImport(){
|
||||
handleFileImport() {
|
||||
|
||||
},
|
||||
//编辑按钮
|
||||
@@ -117,16 +120,30 @@
|
||||
this.$refs.addFormRef.edit(val)
|
||||
},
|
||||
//删除按钮
|
||||
deleteTable(val){
|
||||
console.log(val)
|
||||
deleteTable(val) {
|
||||
let _this = this
|
||||
this.$confirm({
|
||||
content: '确认删除?',
|
||||
onOk() {
|
||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(res.message)
|
||||
eventBUs.$emit('searchReset')
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
//收藏按钮
|
||||
Collection(val){
|
||||
console.log('val111',val)
|
||||
Collection(val) {
|
||||
console.log('val111', val)
|
||||
},
|
||||
//订阅按钮
|
||||
subscribe(val){
|
||||
console.log('val222',val)
|
||||
subscribe(val) {
|
||||
console.log('val222', val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user