1
This commit is contained in:
parent
761d54964a
commit
5bc3aab522
@ -1,8 +1,3 @@
|
||||
export const MAIL_TYPE_PERSONAL = 1
|
||||
export const MAIL_TYPE_GROUP = 2
|
||||
export const MAIL_TYPE_ALL = 3
|
||||
/*
|
||||
exports.MAIL_TYPE_PERSONAL = MAIL_TYPE_PERSONAL
|
||||
exports.MAIL_TYPE_GROUP = MAIL_TYPE_GROUP
|
||||
exports.MAIL_TYPE_ALL = MAIL_TYPE_ALL*
|
||||
*/
|
||||
|
@ -25,23 +25,23 @@
|
||||
<el-col :span="24">
|
||||
<el-form-item style="margin-bottom: 40px;" prop="subject">
|
||||
<MDinput v-model="postForm.subject" :maxlength="100" name="subject" required>
|
||||
邮件主题
|
||||
邮件标题
|
||||
</MDinput>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom: 40px;" prop="mailsubtype">
|
||||
<MDinput v-show="dialogEmailSubTypeVisible" v-model.number="postForm.mailsubtype" :maxlength="100" name="mailsubtype" type="number" required>
|
||||
邮件子类型(自定义)
|
||||
</MDinput>
|
||||
<el-form-item prop="content" style="margin-bottom: 30px;" label="邮件正文:">
|
||||
<el-input v-model="postForm.content" type="textarea" :rows="6" />
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom: 30px;" label="附件:">
|
||||
<el-input v-model="postForm.attachments" type="textarea" :rows="6" />
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom: 40px;" prop="to">
|
||||
<MDinput v-show="dialogToVisible" v-model="postForm.to" :maxlength="100" name="to" required>
|
||||
To(群发忽略)
|
||||
收件人(account_id)
|
||||
</MDinput>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-bottom: 40px;" prop="from">
|
||||
<MDinput v-show="dialogFromVisible" v-model="postForm.from" :maxlength="100" name="from" required>
|
||||
From(群发忽略)
|
||||
</MDinput>
|
||||
<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-input>
|
||||
</el-form-item>
|
||||
<div class="postInfo-container">
|
||||
<el-row>
|
||||
@ -56,16 +56,6 @@
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-form-item prop="content" style="margin-bottom: 30px;" label="邮件正文:">
|
||||
<el-input v-model="postForm.content" type="textarea" :rows="6" />
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-form-item style="margin-bottom: 40px;" label-width="70px" label="附件:">
|
||||
<el-input v-model="postForm.attachments" :rows="1" type="textarea" class="article-textarea" autosize placeholder="例 itemid:num|itemid2:num" />
|
||||
<!-- <span v-show="contentShortLength" class="word-counter">{{ contentShortLength }}words</span>-->
|
||||
</el-form-item>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@ -81,6 +71,7 @@ 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 { MAIL_TYPE_PERSONAL, MAIL_TYPE_GROUP, MAIL_TYPE_ALL } from '@/constant/constant'
|
||||
|
||||
export default {
|
||||
name: 'Email',
|
||||
@ -88,7 +79,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
postForm: {
|
||||
mailtype: 1,
|
||||
mailtype: MAIL_TYPE_PERSONAL,
|
||||
sendtime: '',
|
||||
expiretime: '',
|
||||
subject: '',
|
||||
@ -115,16 +106,32 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
'postForm.mailtype'(val) {
|
||||
if (val === 1) {
|
||||
this.dialogUserTypeVisible = false
|
||||
this.dialogToVisible = true
|
||||
this.dialogFromVisible = true
|
||||
switch (val) {
|
||||
case MAIL_TYPE_PERSONAL:
|
||||
{
|
||||
this.dialogUserTypeVisible = false
|
||||
this.dialogToVisible = true
|
||||
this.dialogFromVisible = true
|
||||
}
|
||||
break
|
||||
case MAIL_TYPE_GROUP:
|
||||
{
|
||||
this.dialogUserTypeVisible = true
|
||||
this.dialogToVisible = false
|
||||
this.dialogFromVisible = false
|
||||
}
|
||||
break
|
||||
case MAIL_TYPE_ALL:
|
||||
{
|
||||
this.dialogUserTypeVisible = true
|
||||
this.dialogToVisible = false
|
||||
this.dialogFromVisible = false
|
||||
}
|
||||
break
|
||||
}
|
||||
/*
|
||||
if (this.dialogStatus === 'create' && val === 2) {
|
||||
this.dialogUserTypeVisible = true
|
||||
this.dialogToVisible = false
|
||||
this.dialogFromVisible = false
|
||||
}
|
||||
}*/
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user