Commit da30bfc7 authored by xhx's avatar xhx

调整

parent 316dbac2
import dayjs from "dayjs"
export const getDateTime = function(s: string) {
const str = Number(s + '000')
const year = new Date(str).getFullYear()
const month = new Date(str).getMonth() >= 10 ? new Date(str).getMonth() + 1 : '0' + (new Date(str).getMonth() + 1)
const day = new Date(str).getDate() >= 10 ? new Date(str).getDate() : '0' + new Date(str).getDate()
const hours = new Date(str).getHours() >= 10 ? new Date(str).getHours() : '0' + new Date(str).getHours()
const min = new Date(str).getMinutes() >= 10 ? new Date(str).getMinutes() : '0' + new Date(str).getMinutes()
const sec = new Date(str).getSeconds() >= 10 ? new Date(str).getSeconds() : '0' + new Date(str).getSeconds()
return year + '-' + month + '-' + day + ' ' + hours + ':' + min + ":" + sec
return dayjs(str).format('YYYY-MM-DD HH:mm:ss')
}
\ No newline at end of file
......@@ -285,7 +285,6 @@ export default Vue.extend({
this.getList()
}
})
console.log('toTop')
},
statusClick(item: any) {
console.log(item)
......@@ -311,7 +310,6 @@ export default Vue.extend({
},
makeSureDel() {
removePool({id: this.id}).then((res: any) => {
// if (res.code === 200) {
if (res.data.isSucc) {
this.delVisible = false
this.$message.success('删除成功')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment