| | |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:notice:remove']" |
| | | >删除</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-share" |
| | | @click="handledetails(scope.row)" |
| | | v-hasPermi="['system:notice:remove']" |
| | | >详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!--通知公告详情 --> |
| | | <el-dialog :title="formIn.noticeTitle" :visible.sync="openDetail" width="800px" append-to-body> |
| | | <div style="margin-top:-20px;margin-bottom:10px;"> |
| | | <el-tag size="mini" effect="dark" type="warning" v-if="form.noticeType==2">公告</el-tag> |
| | | <el-tag size="mini" effect="dark" v-else>通知</el-tag> |
| | | <span style="margin-left:20px;">{{formIn.createTime}}</span> |
| | | </div> |
| | | <div class="content"> |
| | | <div v-html="formIn.noticeContent" style="margin-left:0px;margin-right:76px" class="ql-editor"></div> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="cancel"> 关 闭 </el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | openDetail:false, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | |
| | | createBy: undefined, |
| | | status: undefined |
| | | }, |
| | | formIn:{}, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.openDetail = false, |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | |
| | | this.title = "修改公告"; |
| | | }); |
| | | }, |
| | | |
| | | handledetails(row){ |
| | | this.formIn = row; |
| | | this.openDetail = true; |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm: function() { |
| | | this.$refs["form"].validate(valid => { |