diff --git a/src/api/backup.js b/src/api/backup.js
new file mode 100644
index 0000000..6eb83dd
--- /dev/null
+++ b/src/api/backup.js
@@ -0,0 +1,13 @@
+import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
+
+const backupAdd = (params)=>postAction("/idcDataBackup/add",params);
+const backupEdit = (params)=>putAction("/idcDataBackup/edit",params);
+const backupDeleteById = (params)=>deleteAction("/idcDataBackup/deleteById",params);
+export {
+ backupAdd,
+ backupEdit,
+ backupDeleteById
+}
+
+
+
diff --git a/src/views/securityAndBackup/backup.vue b/src/views/securityAndBackup/backup.vue
index 11433a8..79d5789 100644
--- a/src/views/securityAndBackup/backup.vue
+++ b/src/views/securityAndBackup/backup.vue
@@ -2,21 +2,21 @@
-
-
-
-
-
-
- 一键备份
- 添加
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
@@ -27,23 +27,24 @@
-
- 未备份
- 备份中
- 完成
+
+ 原始库
+ 标准库
+ 专题库
-
+
未启用
启用
- 详情
-
+ 启动
+ 暂停
+
+ 一键备份
+
+ 同步日志
@@ -51,6 +52,7 @@
+
@@ -58,12 +60,14 @@
import { getAction, deleteAction, putAction, postAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JEllipsis from "@/components/jeecg/JEllipsis";
+import backupModal from './modules/backupModal'
export default {
name: "backup",
mixins: [JeecgListMixin],
components: {
JEllipsis,
+ backupModal,
VNodes: {
functional: true,
render: (h, ctx) => ctx.props.vnodes,
@@ -94,45 +98,30 @@ export default {
{
title: '任务名称',
align: "center",
- dataIndex: 'name',
+ dataIndex: 'taskName',
},
{
title: '数据库',
align: "center",
- dataIndex: 'dataBaseName',
- },
- {
- title: '调度开始时间',
- align: "center",
- dataIndex: 'startTime'
- },
- {
- title: '调度结束时间',
- align: "center",
- dataIndex: 'endTime',
- },
- {
- title: '表达式',
- align: "center",
- dataIndex: 'larmder',
- },
- {
- title: '调度状态',
- align: "center",
- dataIndex: 'Status',
- scopedSlots: { customRender: 'Status' },
+ dataIndex: 'sourceType',
+ scopedSlots: { customRender: 'sourceType' }
},
{
title: '是否启用',
align: "center",
- dataIndex: 'endisStatus',
- scopedSlots: { customRender: 'endisStatus' },
+ dataIndex: 'backupStatus',
+ scopedSlots: { customRender: 'backupStatus' }
+ },
+ {
+ title: '备注',
+ align: "center",
+ dataIndex: 'remark'
},
{
title: '操作',
dataIndex: 'action',
align: "center",
- width: 180,
+ width: 260,
scopedSlots: { customRender: 'action' },
}
]
@@ -170,7 +159,25 @@ export default {
getAction("/idcDataBackup/list?pageNo=1&pageSize=10").then((res) => {
if (res.success) {
console.log(res)
- this.dataSource = res.result;
+ this.dataSource = res.result.records;
+ } else {
+ this.$message.warning(res.message);
+ }
+ });
+ },
+ handleRun(sourceType) {
+ postAction("/idcDataBackup/dmExportByUserName",{sourceType:sourceType}).then((res) => {
+ if (res.success) {
+ this.$message.success(res.result);
+ } else {
+ this.$message.warning(res.message);
+ }
+ });
+ },
+ handleStartStop(id,backupStatus) {
+ postAction("/idcDataBackup/edit",{id:id,backupStatus:backupStatus}).then((res) => {
+ if (res.success) {
+ this.loadData()
} else {
this.$message.warning(res.message);
}
@@ -191,6 +198,10 @@ export default {
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title = "编辑";
},
+ handleAdd() {
+ this.$refs.modalForm.add();
+ this.$refs.modalForm.title = "新增";
+ },
handleDistribute: function (id) {
var that = this;
taskDistributeTask({ id: id }).then((res) => {
diff --git a/src/views/securityAndBackup/modules/backupModal.vue b/src/views/securityAndBackup/modules/backupModal.vue
new file mode 100644
index 0000000..39af50c
--- /dev/null
+++ b/src/views/securityAndBackup/modules/backupModal.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+ 原始库
+ 标准库
+ 专题库
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/system/OptionLog.vue b/src/views/system/OptionLog.vue
index 8318648..55d8ec6 100644
--- a/src/views/system/OptionLog.vue
+++ b/src/views/system/OptionLog.vue
@@ -75,7 +75,7 @@ export default {
queryParam: {
ipInfo: '',
createTimeRange: [],
- logType: '1',
+ logType: '2',
keyWord: '',
},
tabKey: "1",