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