1
This commit is contained in:
parent
5bc3aab522
commit
269087c324
@ -34,13 +34,17 @@
|
|||||||
<el-form-item style="margin-bottom: 30px;" label="附件:">
|
<el-form-item style="margin-bottom: 30px;" label="附件:">
|
||||||
<el-input v-model="postForm.attachments" type="textarea" :rows="6" />
|
<el-input v-model="postForm.attachments" type="textarea" :rows="6" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
<el-form-item style="margin-bottom: 40px;" prop="to">
|
<el-form-item style="margin-bottom: 40px;" prop="to">
|
||||||
<MDinput v-show="dialogToVisible" v-model="postForm.to" :maxlength="100" name="to" required>
|
<MDinput v-show="personalMailVisible" v-model="postForm.to" :maxlength="100" name="to" required>
|
||||||
收件人(account_id)
|
收件人(account_id)
|
||||||
</MDinput>
|
</MDinput>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="margin-bottom: 40px;" prop="to" label="收件人列表:">
|
<el-form-item v-show="groupMailVisible" style="margin-bottom: 40px;" prop="to" label="收件人列表:">
|
||||||
<el-input v-show="dialogToVisible" v-model="postForm.to" type="textarea" :rows="6" required />
|
<el-input v-model="postForm.to" type="textarea" :rows="6" required />
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div class="postInfo-container">
|
<div class="postInfo-container">
|
||||||
@ -83,7 +87,6 @@ export default {
|
|||||||
sendtime: '',
|
sendtime: '',
|
||||||
expiretime: '',
|
expiretime: '',
|
||||||
subject: '',
|
subject: '',
|
||||||
mailsubtype: '',
|
|
||||||
to: '',
|
to: '',
|
||||||
from: '',
|
from: '',
|
||||||
usertype: 0,
|
usertype: 0,
|
||||||
@ -97,10 +100,8 @@ export default {
|
|||||||
content: [{ required: true, message: 'content is required', trigger: 'blur' }]
|
content: [{ required: true, message: 'content is required', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
dialogUserTypeVisible: false,
|
dialogUserTypeVisible: false,
|
||||||
dialogToVisible: true,
|
personalMailVisible: true,
|
||||||
dialogFromVisible: true,
|
|
||||||
dialogEmailTypeVisible: true,
|
dialogEmailTypeVisible: true,
|
||||||
dialogEmailSubTypeVisible: true,
|
|
||||||
dialogStatus: 'create'
|
dialogStatus: 'create'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -108,24 +109,27 @@ export default {
|
|||||||
'postForm.mailtype'(val) {
|
'postForm.mailtype'(val) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case MAIL_TYPE_PERSONAL:
|
case MAIL_TYPE_PERSONAL:
|
||||||
{
|
{
|
||||||
|
this.personalMailVisible = true
|
||||||
|
this.groupMailVisible = false
|
||||||
|
|
||||||
this.dialogUserTypeVisible = false
|
this.dialogUserTypeVisible = false
|
||||||
this.dialogToVisible = true
|
|
||||||
this.dialogFromVisible = true
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case MAIL_TYPE_GROUP:
|
case MAIL_TYPE_GROUP:
|
||||||
{
|
{
|
||||||
|
this.personalMailVisible = false
|
||||||
|
this.groupMailVisible = true
|
||||||
|
|
||||||
this.dialogUserTypeVisible = true
|
this.dialogUserTypeVisible = true
|
||||||
this.dialogToVisible = false
|
|
||||||
this.dialogFromVisible = false
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case MAIL_TYPE_ALL:
|
case MAIL_TYPE_ALL:
|
||||||
{
|
{
|
||||||
|
this.personalMailVisible = false
|
||||||
|
this.groupMailVisible = false
|
||||||
|
|
||||||
this.dialogUserTypeVisible = true
|
this.dialogUserTypeVisible = true
|
||||||
this.dialogToVisible = false
|
|
||||||
this.dialogFromVisible = false
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -138,10 +142,8 @@ export default {
|
|||||||
const mailid = this.$route.params.mailid
|
const mailid = this.$route.params.mailid
|
||||||
if (mailid) {
|
if (mailid) {
|
||||||
this.dialogUserTypeVisible = false
|
this.dialogUserTypeVisible = false
|
||||||
this.dialogToVisible = false
|
this.personalMailVisible = false
|
||||||
this.dialogFromVisible = false
|
|
||||||
this.dialogEmailTypeVisible = false
|
this.dialogEmailTypeVisible = false
|
||||||
this.dialogEmailSubTypeVisible = false
|
|
||||||
this.dialogStatus = 'update'
|
this.dialogStatus = 'update'
|
||||||
const editEmail = JSON.parse(sessionStorage.getItem('editEmail' + mailid))
|
const editEmail = JSON.parse(sessionStorage.getItem('editEmail' + mailid))
|
||||||
this.postForm = editEmail
|
this.postForm = editEmail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user