| | |
| | | :model="role" |
| | | :rules="createRoleRules" |
| | | label-position="right" |
| | | :disabled="edit" |
| | | :disabled="type === 'view'" |
| | | > |
| | | <!-- 提醒方式 --> |
| | | <el-form-item class="optionItem" label="提醒方式:" prop="channelCode" > |
| | |
| | | type="primary" |
| | | @click.native.prevent="handleSubmit(0)" |
| | | class="btn save" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | v-if="type !== 'view'" |
| | | >保存 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click.native.prevent="handleSubmit(1)" |
| | | class="btn submit" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | v-if="type !== 'view'" |
| | | >发布 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click.native.prevent="handleView" |
| | | class="btn submit" |
| | | v-if="this.type=='update'||this.type=='create'" |
| | | v-if="type !== 'view'" |
| | | >预览 |
| | | </el-button> |
| | | <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="this.type=='update'||this.type=='create'" |
| | | <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="type !== 'view'" |
| | | >重置</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 => { |
| | | this.role = res; |
| | | if (res.targetTo) { |
| | | this.checkedList = res.targetTo.split(','); |
| | | this.role.targetTo = `${this.checkedList}人`; |
| | | this.role.targetTo = `${this.checkedList.length}人`; |
| | | } |
| | | }) |
| | | .catch(err => this.$message.error(`${err}`)) |