Commit ca8aa07c authored by chengcaixia's avatar chengcaixia

轨迹时间格式处理

parent 75b19e4c
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
if (response.data.data) { if (response.data.data) {
response.data.data.forEach((val) => { response.data.data.forEach((val) => {
val.status = val.status == 1 ? '正常' : (val.status == 2 ? '异常' : '新增'); val.status = val.status == 1 ? '正常' : (val.status == 2 ? '异常' : '新增');
val.imageTime = moment(parseInt(val.imageTime)).format("YYYY-MM-DD HH:MM:SS"); val.imageTime = moment(parseInt(val.imageTime)).format("YYYY-MM-DD HH:mm:ss");
this.capitalOptions.forEach((item) => { this.capitalOptions.forEach((item) => {
if(item.value == val.type2) { if(item.value == val.type2) {
val.type2 = item.label; val.type2 = item.label;
...@@ -436,7 +436,7 @@ export default { ...@@ -436,7 +436,7 @@ export default {
if (response.data.data) { if (response.data.data) {
response.data.data.forEach((val) => { response.data.data.forEach((val) => {
val.status = val.status == 1 ? '正常' : (val.status == 2 ? '异常' : '新增'); val.status = val.status == 1 ? '正常' : (val.status == 2 ? '异常' : '新增');
val.imageTime = moment(parseInt(val.imageTime)).format("YYYY-MM-DD HH:MM:SS"); val.imageTime = moment(parseInt(val.imageTime)).format("YYYY-MM-DD HH:mm:ss");
this.capitalOptions.forEach((item) => { this.capitalOptions.forEach((item) => {
if(item.value == val.type2) { if(item.value == val.type2) {
val.type2 = item.label; val.type2 = item.label;
......
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