fixed bug
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
|
||||
<script>
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { listDoc } from '@/api/project/doc'
|
||||
import { listDoc, delDoc } from '@/api/project/doc'
|
||||
import { listProject } from '@/api/project/project'
|
||||
import { listModulesByProject, getMyModules } from '@/api/project/module'
|
||||
|
||||
@@ -394,14 +394,23 @@ export default {
|
||||
this.$message.error('下载失败')
|
||||
}
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
/** 删除按钮操作(支持单条与批量) */
|
||||
handleDelete(row) {
|
||||
const docIds = row.docId || this.ids;
|
||||
this.$modal.confirm('是否确认删除文档编号为"' + docIds + '"的数据项?').then(() => {
|
||||
// 这里应该是删除API调用
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
});
|
||||
const docIds = row && row.docId ? row.docId : (this.ids && this.ids.length ? this.ids.join(',') : '');
|
||||
if (!docIds) {
|
||||
this.$modal.msgError('请先选择要删除的文档');
|
||||
return;
|
||||
}
|
||||
this.$modal
|
||||
.confirm('是否确认删除文档编号为"' + docIds + '"的数据项?')
|
||||
.then(() => delDoc(docIds))
|
||||
.then(() => {
|
||||
this.$modal.msgSuccess('删除成功');
|
||||
this.getList();
|
||||
this.ids = [];
|
||||
this.multiple = true;
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
// 文件上传中处理
|
||||
handleFileUploadProgress(event, file, fileList) {
|
||||
|
Reference in New Issue
Block a user