diff --git a/src/views/email/create.vue b/src/views/email/create.vue
index 128d0db..2cafcbc 100644
--- a/src/views/email/create.vue
+++ b/src/views/email/create.vue
@@ -18,22 +18,22 @@
-
+
-
+
-
+
-
+
@@ -72,7 +72,7 @@ import { CommentDropdown } from '@/views/example/components/Dropdown'
import Sticky from '@/components/Sticky/index.vue'
import MDinput from '@/components/MDinput/index.vue'
import { addMail, updateEmail } from '@/api/mail'
-import { parseTime } from '@/utils'
+import { parseUTCTime } from '@/utils'
import { MAIL_TYPE_GROUP, MAIL_TYPE_ALL } from '@/constant/constant'
import { ItemList } from '@/constant/itemids'
@@ -133,6 +133,36 @@ export default {
isupdate: false
}
},
+ computed: {
+ formattedUTCSendDate() {
+ if (!this.postForm.sendtime) {
+ return ''
+ }
+
+ return 'UTC:' + parseUTCTime(this.postForm.sendtime / 1000)
+ },
+ formattedUTCExpireDate() {
+ if (!this.postForm.expiretime) {
+ return ''
+ }
+
+ return 'UTC: ' + parseUTCTime(this.postForm.expiretime / 1000)
+ },
+ formattedUTCRegStartDate() {
+ if (!this.postForm.user_reg_start_time) {
+ return ''
+ }
+
+ return 'UTC: ' + parseUTCTime(this.postForm.user_reg_start_time / 1000)
+ },
+ formattedUTCRegEndDate() {
+ if (!this.postForm.user_reg_end_time) {
+ return ''
+ }
+
+ return 'UTC: ' + parseUTCTime(this.postForm.user_reg_end_time / 1000)
+ }
+ },
watch: {
'postForm.mailtype'(val) {
switch (val) {
@@ -179,7 +209,7 @@ export default {
}
},
methods: {
- parseTime,
+ parseUTCTime,
submitForm() {
const data = JSON.parse(JSON.stringify(this.postForm))
data.sendtime = data.sendtime / 1000
diff --git a/src/views/email/list.vue b/src/views/email/list.vue
index 937989c..08ce895 100644
--- a/src/views/email/list.vue
+++ b/src/views/email/list.vue
@@ -22,25 +22,25 @@
-
+
-
+
-
+
-
+
-
+
查询
@@ -84,23 +84,23 @@
/>
- {{ parseTime(row.sendtime) }}
+ {{ parseUTCTime(row.sendtime) }}
- {{ parseTime(row.expiretime) }}
+ {{ parseUTCTime(row.expiretime) }}
@@ -144,7 +144,7 @@