| | |
| | | :model="role" |
| | | :rules="createRoleRules" |
| | | label-position="right" |
| | | :disabled="edit" |
| | | > |
| | | <!-- 提醒方式 --> |
| | | <el-form-item class="optionItem" label="提醒方式:" prop="channelCode"> |
| | | <el-form-item class="optionItem" label="提醒方式:" prop="channelCode" > |
| | | <el-radio-group v-model="role.channelCode"> |
| | | <el-radio label="01">站内信</el-radio> |
| | | <el-radio label="03">邮件</el-radio> |
| | |
| | | type="primary" |
| | | @click.native.prevent="handleSubmit(0)" |
| | | class="btn save" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | >保存 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click.native.prevent="handleSubmit(1)" |
| | | class="btn submit" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | >发布 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click.native.prevent="handleView" |
| | | class="btn submit" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | >预览 |
| | | </el-button> |
| | | <el-button class="btn cancel" @click.native.prevent="handleReset" |
| | | <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="this.type=='update'||this.type=='create'" |
| | | >重置</el-button |
| | | > |
| | | </div> |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | edit: false, |
| | | colList: [], |
| | | departList: [], |
| | | typeList: [], |
| | |
| | | this.getColumnList(); |
| | | this.getDepartList(); |
| | | this.getLoginUserInfo(); |
| | | if(this.type=="view"){ |
| | | this.edit=true; |
| | | } |
| | | if (this.type !== "create" && this.myDataRow) { |
| | | getMessageById(this.myDataRow.id) |
| | | .then(res => { |
| | |
| | | if (this.type !== 'create') { |
| | | this.$refs.edit.editor.txt.append(this.myDataRow.body); |
| | | } |
| | | |
| | | }, |
| | | methods: { |
| | | // 关闭弹窗 |
| | |
| | | this.getColumnList(); |
| | | } |
| | | }, |
| | | |
| | | getType(){ |
| | | debugger |
| | | return this.type; |
| | | }, |
| | | // 获取部门树 |
| | | async getDepartList() { |
| | | await this.$axios({ |