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