diff --git a/src/views/dataService/otherData/index.vue b/src/views/dataService/otherData/index.vue index a25a857..d324a51 100644 --- a/src/views/dataService/otherData/index.vue +++ b/src/views/dataService/otherData/index.vue @@ -6,7 +6,7 @@
- + @@ -166,6 +166,10 @@ const getDisasterData = () => { state.disasterData.loading = true; getDisasterPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, {}).then(res => { state.disasterData.data = res.records; + state.disasterData.data.forEach(item=>{ + let date = item.disasterTime.slice(0,10); + item.disasterTime = date; + }) state.disasterData.total = res.total; state.disasterData.loading = false; }) diff --git a/src/views/dataService/pictureInfo/index.vue b/src/views/dataService/pictureInfo/index.vue index 7ea3e5f..39b678e 100644 --- a/src/views/dataService/pictureInfo/index.vue +++ b/src/views/dataService/pictureInfo/index.vue @@ -6,7 +6,7 @@
- + @@ -198,6 +198,10 @@ const getDisasterData = () => { state.disasterData.loading = true; getDisasterPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, {}).then((res) => { state.disasterData.data = res.records; + state.disasterData.data.forEach(item=>{ + let date = item.disasterTime.slice(0,10); + item.disasterTime = date; + }) state.disasterData.total = res.total; state.disasterData.loading = false; }); diff --git a/src/views/dataService/visualData/index.vue b/src/views/dataService/visualData/index.vue index dd4eafd..f1ab4e6 100644 --- a/src/views/dataService/visualData/index.vue +++ b/src/views/dataService/visualData/index.vue @@ -6,7 +6,7 @@
- + @@ -212,6 +212,10 @@ const getDisasterData = () => { state.disasterData.loading = true; getDisasterPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, {}).then(res => { state.disasterData.data = res.records; + state.disasterData.data.forEach(item=>{ + let date = item.disasterTime.slice(0,10); + item.disasterTime = date; + }) state.disasterData.total = res.total; state.disasterData.loading = false; }) diff --git a/src/views/responseManagement/dataUpload/index.vue b/src/views/responseManagement/dataUpload/index.vue index 2137be6..299fb65 100644 --- a/src/views/responseManagement/dataUpload/index.vue +++ b/src/views/responseManagement/dataUpload/index.vue @@ -6,7 +6,7 @@
- + @@ -159,6 +159,10 @@ const getDisasterData = () => { state.disasterData.loading = true; getDisasterPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, {}).then(res => { state.disasterData.data = res.records; + state.disasterData.data.forEach(item=>{ + let date = item.disasterTime.slice(0,10); + item.disasterTime = date; + }) state.disasterData.total = res.total; state.disasterData.loading = false; })