1
This commit is contained in:
parent
5bc3aab522
commit
269087c324
@ -34,13 +34,17 @@
|
||||
<el-form-item style="margin-bottom: 30px;" label="附件:">
|
||||
<el-input v-model="postForm.attachments" type="textarea" :rows="6" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<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)
|
||||
</MDinput>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom: 40px;" prop="to" label="收件人列表:">
|
||||
<el-input v-show="dialogToVisible" v-model="postForm.to" type="textarea" :rows="6" required />
|
||||
<el-form-item v-show="groupMailVisible" style="margin-bottom: 40px;" prop="to" label="收件人列表:">
|
||||
<el-input v-model="postForm.to" type="textarea" :rows="6" required />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<div class="postInfo-container">
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user