| | |
| | | }) |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | update(row).then(() => { |
| | | this.$message.success('修改成功') |
| | | done() |
| | | this.getList(); |
| | | }).catch(() => { |
| | | loading() |
| | | }) |
| | | console.log(row); |
| | | const date = new Date(row.ts); |
| | | const formattedDate = `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}:${date.getSeconds().toString().padStart(2, '0')}.${date.getMilliseconds().toString().padStart(3, '0')}`; |
| | | row.ts = formattedDate; |
| | | update(row) |
| | | .then(() => { |
| | | this.$message.success('修改成功'); |
| | | done(); |
| | | this.getList(); |
| | | }) |
| | | .catch(() => { |
| | | loading(); |
| | | }); |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm('此操作将永久删除, 是否继续?', '提示', { |