fix : 备份页面请求方式更改
This commit is contained in:
@@ -146,8 +146,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeDate (item) {
|
changeDate (item) {
|
||||||
const time = Date.parse(item)
|
const time = this.utcTimeToTimezoneStr(item)
|
||||||
const time1 = this.timeFormate(time)
|
const time1 = this.timeFormate(Date.parse(time))
|
||||||
return time1
|
return time1
|
||||||
},
|
},
|
||||||
getNum (item) {
|
getNum (item) {
|
||||||
@@ -157,6 +157,7 @@ export default {
|
|||||||
post('/sys/backup').then((res) => {
|
post('/sys/backup').then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success(this.$t('backup.backupNow'))
|
this.$message.success(this.$t('backup.backupNow'))
|
||||||
|
bus.$emit('backupNow')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg)
|
this.$message.error(res.msg)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
import nzDataList from '@/components/common/table/nzDataList'
|
import nzDataList from '@/components/common/table/nzDataList'
|
||||||
import backupsTable from '@/components/common/table/settings/backupsTable'
|
import backupsTable from '@/components/common/table/settings/backupsTable'
|
||||||
import backupsBox from '@/components/common/rightBox/administration/backupsBox'
|
import backupsBox from '@/components/common/rightBox/administration/backupsBox'
|
||||||
|
import bus from '@/libs/bus'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'backups',
|
name: 'backups',
|
||||||
@@ -106,6 +107,9 @@ export default {
|
|||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
|
bus.$on('backupNow', () => {
|
||||||
|
this.getTableData()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -123,7 +127,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$post('/sys/backup/list').then((res) => {
|
this.$get('/sys/backup/list').then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.tableData2 = res.data
|
this.tableData2 = res.data
|
||||||
@@ -143,7 +147,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$post('/sys/backup/list').then((res) => {
|
this.$get('/sys/backup/list').then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.tableData2 = res.data
|
this.tableData2 = res.data
|
||||||
@@ -151,7 +155,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if (item == 'recent') {
|
} else if (item == 'recent') {
|
||||||
this.$post('/sys/backup/list').then((res) => {
|
this.$get('/sys/backup/list').then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.tableData2 = res.data
|
this.tableData2 = res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user