fix: 修改未执行eslint的代码
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<span v-if="item.prop === 'fileName'"> {{ scope.row.fileName }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :resizable="false" fixed="right"
|
||||
<el-table-column :resizable="false" fixed="right"
|
||||
width="165px"
|
||||
>
|
||||
<div
|
||||
@@ -65,11 +65,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { post ,put} from '@/http'
|
||||
import { post, put } from '@/http'
|
||||
import lodash from 'lodash'
|
||||
import bus from '@/libs/bus'
|
||||
|
||||
|
||||
export default {
|
||||
name: 'backupsTable',
|
||||
mixins: [],
|
||||
@@ -79,11 +78,11 @@ export default {
|
||||
customTableTitle: Array,
|
||||
isConfigurations: Boolean,
|
||||
tableData: Array,
|
||||
tableData2: Array,
|
||||
tableData2: Array
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
|
||||
// tableData: [
|
||||
// {
|
||||
// retention: '',
|
||||
@@ -110,34 +109,32 @@ export default {
|
||||
|
||||
computed: {},
|
||||
|
||||
|
||||
|
||||
methods: {
|
||||
Restore(row){
|
||||
put('/sys/backup/restore',{filename:row.fileName}).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.$emit('getTableData','backup')
|
||||
}
|
||||
})
|
||||
},
|
||||
del(item){
|
||||
console.log(item);
|
||||
},
|
||||
changeDate(item){
|
||||
let time =Date.parse(item)
|
||||
let time1 = this.timeFormate(time)
|
||||
return time1
|
||||
},
|
||||
getNum(item){
|
||||
return bus.getNumStr(item)
|
||||
},
|
||||
Restore (row) {
|
||||
put('/sys/backup/restore', { filename: row.fileName }).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$emit('getTableData', 'backup')
|
||||
}
|
||||
})
|
||||
},
|
||||
del (item) {
|
||||
console.log(item)
|
||||
},
|
||||
changeDate (item) {
|
||||
const time = Date.parse(item)
|
||||
const time1 = this.timeFormate(time)
|
||||
return time1
|
||||
},
|
||||
getNum (item) {
|
||||
return bus.getNumStr(item)
|
||||
},
|
||||
backupNow (item) {
|
||||
post('/sys/backup').then((res) => {
|
||||
// console.log(res)
|
||||
})
|
||||
},
|
||||
edit () {
|
||||
this.$emit('edit', this.tableData[0])
|
||||
this.$emit('edit', this.tableData[0])
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user