| | |
| | | <div class="mainContent"> |
| | | <el-form ref="user" label-width="140px" autoComplete="on" :model="role" :rules="createRoleRules" |
| | | label-position="right"> |
| | | <!-- 提醒方式 --> |
| | | <el-form-item class="optionItem" label="提醒方式:" prop="channelCode"> |
| | | <el-radio-group v-model="role.channelCode"> |
| | | <el-radio label="01">站内信</el-radio> |
| | | <el-radio label="02">邮件</el-radio> |
| | | </el-radio-group> |
| | | <span class="message-tip">(短信可用数: 1000条)</span> |
| | | </el-form-item> |
| | | <!-- 消息栏目 --> |
| | | <el-form-item class="optionItem" label="消息栏目:" prop="messageType"> |
| | | <el-form-item v-if="role.channelCode === '01'" class="optionItem" label="消息栏目:" prop="messageType"> |
| | | <div class="message-item"> |
| | | <div class="message-item__left"> |
| | | <el-select v-model="role.messageType" placeholder="请选择消息栏目"> |
| | |
| | | <!-- 消息内容 --> |
| | | <el-form-item class="optionItem" label="消息内容:" prop="body"> |
| | | <MyEditor ref="edit" @getMyBody="getMyBody"></MyEditor> |
| | | </el-form-item> |
| | | <!-- 提醒方式 --> |
| | | <el-form-item class="optionItem" label="提醒方式:" prop="channelCode"> |
| | | <el-radio-group v-model="role.channelCode"> |
| | | <el-radio label="01">站内信</el-radio> |
| | | <el-radio label="02">邮件</el-radio> |
| | | <el-radio label="03">短信</el-radio> |
| | | </el-radio-group> |
| | | <span class="message-tip">(短信可用数: 1000条)</span> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <div class="optionBtn"> |
| | |
| | | { required: true, trigger: ['blur', 'change'], message: '请输入消息栏目' }, |
| | | ], |
| | | head: [ |
| | | { required: false, trigger: "blur" }, |
| | | { required: true, trigger: "blur", message: '请选择消息标题'} |
| | | ], |
| | | targetTo: [ |
| | | { required: false, trigger: "blur" }, |
| | | { required: true, trigger: "blur", message: '请选择接受对象' }, |
| | | ], |
| | | body: [ |
| | | { required: true, trigger: ['blue','change'], message: '请输入消息内容' } |
| | | ] |
| | | }, |
| | | colList: [], |
| | | departList: [], |