Browse Source

时间展现去掉补8小时时差

dev_web_online
陈薪名 2 years ago
parent
commit
b0a231f9c5
  1. 7
      fe/PC/src/components/currenDescriptions/index.vue
  2. 4
      fe/PC/src/components/currenTable/index.vue
  3. 7
      fe/PC/src/components/umyTable/index.vue

7
fe/PC/src/components/currenDescriptions/index.vue

@ -66,7 +66,7 @@
</template>
<script>
import { parseTime } from "@/utils/index"
import { formatDateTime } from "@/utils/formatTime"
import { formatTimeStrToStr } from "@/utils/formatTime"
import { fileStorage } from "@/api/wms-api"
let that
@ -84,7 +84,10 @@ export default {
},
filters: {
formatDate (time) {
return formatDateTime(time)
if (time == null) {
return '-'
}
return formatTimeStrToStr(time)
},
formatOnlyDate (time) {
var date = new Date(time);

4
fe/PC/src/components/currenTable/index.vue

@ -307,7 +307,7 @@
</template>
<script>
import Sortable from "sortablejs";
import { formatDateTime } from "@/utils/formatTime";
import { formatTimeStrToStr } from "@/utils/formatTime";
import { getMatchRegConformValue } from "@/utils/index"
import _ from "lodash";
export default {
@ -317,7 +317,7 @@ export default {
if (time == null) {
return '-'
}
return formatDateTime(time)
return formatTimeStrToStr(time)
},
},
props: {

7
fe/PC/src/components/umyTable/index.vue

@ -320,14 +320,17 @@
</u-table>
</template>
<script>
import { formatDateTime } from "@/utils/formatTime";
import { formatTimeStrToStr } from "@/utils/formatTime";
import _ from "lodash";
import { getMatchRegConformValue } from "@/utils/index"
export default {
name: "currenTable",
filters: {
formatDate(time) {
return formatDateTime(time)
if (time == null) {
return '-'
}
return formatTimeStrToStr(time)
},
},
props: {

Loading…
Cancel
Save