fixed inconsistency of timestamp issue

This commit is contained in:
Marvin Zhang
2019-03-12 20:28:50 +08:00
parent 5b190e5b2b
commit ce5e5d8f1d
19 changed files with 73 additions and 62 deletions

View File

@@ -42,13 +42,13 @@ export default {
},
methods: {
onClickSpider (row) {
this.$router.push(`/spiders/${row.spider_id.$oid}`)
this.$router.push(`/spiders/${row.spider_id}`)
},
onClickNode (row) {
this.$router.push(`/nodes/${row.node_id}`)
},
onRefresh () {
this.$store.dispatch('deploy/getDeployList', this.spiderForm._id.$oid)
this.$store.dispatch('deploy/getDeployList', this.spiderForm._id)
}
}
}

View File

@@ -54,8 +54,8 @@ export default {
if (d.hasOwnProperty(k)) {
if (d[k] === undefined || d[k] === null) continue
if (typeof d[k] === 'object') {
if (d[k].$oid) {
d[k] = d[k].$oid
if (d[k]) {
d[k] = d[k]
}
}
}

View File

@@ -56,7 +56,7 @@ export default {
},
methods: {
onClickSpider (row) {
this.$router.push(`/spiders/${row.spider_id.$oid}`)
this.$router.push(`/spiders/${row.spider_id}`)
},
onClickNode (row) {
this.$router.push(`/nodes/${row.node_id}`)