fix:修改 时间问题

This commit is contained in:
zhangyu
2022-04-08 15:05:10 +08:00
parent 59584ce1b3
commit e081e151bf
3 changed files with 308 additions and 297 deletions

View File

@@ -48,79 +48,78 @@
</template>
<script>
import nzDataList from "@/components/common/table/nzDataList";
import backupsTable from "@/components/common/table/settings/backupsTable";
import nzDataList from '@/components/common/table/nzDataList'
import backupsTable from '@/components/common/table/settings/backupsTable'
import backupsBox from '@/components/common/rightBox/administration/backupsBox'
export default {
name: "backups",
name: 'backups',
mixins: [],
props: [""],
data() {
props: [''],
data () {
return {
url: "/sys/backup/list",
url: '/sys/backup/list',
customTableTitle: [
{ label: "Frequency", prop: "repeat" },
{ label: "Backup Retention", prop: "retention" },
{ label: "Last backup at", prop: "last" },
{ label: "Enable", prop: "state" },
{ label: 'Frequency', prop: 'repeat' },
{ label: 'Backup Retention', prop: 'retention' },
{ label: 'Last backup at', prop: 'last' },
{ label: 'Enable', prop: 'state' }
],
customTableTitle2: [
{ label: "Date", prop: "time" },
{ label: "File", prop: "fileName" },
{ label: "Size", prop: "size" },
{ label: "Description", prop: "Description" },
{ label: 'Date', prop: 'time' },
{ label: 'File', prop: 'fileName' },
{ label: 'Size', prop: 'size' },
{ label: 'Description', prop: 'Description' }
],
tableData: [
{
retention: "",
state: "",
schedule: {},
},
retention: '',
state: '',
schedule: {}
}
],
tableData2: [
{
list: {},
},
list: {}
}
],
rightBoxshow:false,
isState:'',
isRefresh:''
};
rightBoxshow: false,
isState: '',
isRefresh: ''
}
},
components: { nzDataList, backupsTable,backupsBox },
components: { nzDataList, backupsTable, backupsBox },
computed: {},
created() {},
created () {},
mounted() {},
mounted () {},
methods: {
edit(row){
this.object = { ...row }
this.object.name = `Edit backup configurations`
if(this.object.schedule){
for(let i in this.object.schedule){
this.object[i]=this.object.schedule[i]
}
}
this.rightBoxshow = true
},
closeRightBox(refresh){
if(refresh){
this.$refs.backupsTable.$emit('getData')
}
this.rightBoxshow = false
},
statechange(Boolean){
this.isState = Boolean
edit (row) {
this.object = { ...row }
this.object.name = 'Edit backup configurations'
if (this.object.schedule) {
for (const i in this.object.schedule) {
this.object[i] = this.object.schedule[i]
}
}
this.rightBoxshow = true
},
closeRightBox (refresh) {
if (refresh) {
this.$refs.backupsTable.$emit('getData')
}
this.rightBoxshow = false
},
statechange (Boolean) {
this.isState = Boolean
}
},
watch: {},
};
</script>
watch: {}
}
</script>