fixed bug

This commit is contained in:
2025-09-08 10:43:38 +08:00
parent f080c0c4a7
commit 24246ab6a2
2 changed files with 18 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://127.0.0.1:3306/managersystem?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://127.0.0.1:13306/managersystem?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: Wxit11335577
# 从库数据源

View File

@@ -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) {