-
+
+
@@ -83,7 +87,6 @@ export default {
sendtime: '',
expiretime: '',
subject: '',
- mailsubtype: '',
to: '',
from: '',
usertype: 0,
@@ -97,10 +100,8 @@ export default {
content: [{ required: true, message: 'content is required', trigger: 'blur' }]
},
dialogUserTypeVisible: false,
- dialogToVisible: true,
- dialogFromVisible: true,
+ personalMailVisible: true,
dialogEmailTypeVisible: true,
- dialogEmailSubTypeVisible: true,
dialogStatus: 'create'
}
},
@@ -108,24 +109,27 @@ export default {
'postForm.mailtype'(val) {
switch (val) {
case MAIL_TYPE_PERSONAL:
- {
+ {
+ this.personalMailVisible = true
+ this.groupMailVisible = false
+
this.dialogUserTypeVisible = false
- this.dialogToVisible = true
- this.dialogFromVisible = true
}
break
case MAIL_TYPE_GROUP:
- {
+ {
+ this.personalMailVisible = false
+ this.groupMailVisible = true
+
this.dialogUserTypeVisible = true
- this.dialogToVisible = false
- this.dialogFromVisible = false
}
break
case MAIL_TYPE_ALL:
- {
+ {
+ this.personalMailVisible = false
+ this.groupMailVisible = false
+
this.dialogUserTypeVisible = true
- this.dialogToVisible = false
- this.dialogFromVisible = false
}
break
}
@@ -138,10 +142,8 @@ export default {
const mailid = this.$route.params.mailid
if (mailid) {
this.dialogUserTypeVisible = false
- this.dialogToVisible = false
- this.dialogFromVisible = false
+ this.personalMailVisible = false
this.dialogEmailTypeVisible = false
- this.dialogEmailSubTypeVisible = false
this.dialogStatus = 'update'
const editEmail = JSON.parse(sessionStorage.getItem('editEmail' + mailid))
this.postForm = editEmail