| | |
| | | <template> |
| | | <el-dialog |
| | | :title="title" |
| | | append-to-body |
| | | :visible.sync="box" |
| | | width="60%" |
| | | > |
| | | <el-dialog :title="title" append-to-body :visible.sync="box" width="60%"> |
| | | <avue-form :option="option" v-model="form"> </avue-form> |
| | | <!-- <sapn>{{ form.content }}</sapn> --> |
| | | </el-dialog> |
| | | </template> |
| | | <script> |
| | | import {updateIsRead} from "@/api/messageRecord/messageUser"; |
| | | import { |
| | | updateIsRead |
| | | } from "@/api/messageRecord/messageUser"; |
| | | |
| | | export default { |
| | | name: "messsageContent", |
| | | data() { |
| | | return { |
| | | title:"", |
| | | box: false, |
| | | form: {}, |
| | | option: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | // { |
| | | // label: "主題", |
| | | // prop: "theme", |
| | | // disabled:true, |
| | | // span:24 |
| | | // }, |
| | | { |
| | | label: "", |
| | | labelWidth:1, |
| | | prop: "content", |
| | | type: "textarea", |
| | | // disabled:true, |
| | | span:24 |
| | | }, |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created(){ |
| | | export default { |
| | | name: "messsageContent", |
| | | data() { |
| | | return { |
| | | title: "", |
| | | box: false, |
| | | form: {}, |
| | | option: { |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | column: [ |
| | | // { |
| | | // label: "主題", |
| | | // prop: "theme", |
| | | // disabled:true, |
| | | // span:24 |
| | | // }, |
| | | { |
| | | label: "", |
| | | labelWidth: 1, |
| | | prop: "content", |
| | | type: "textarea", |
| | | // disabled:true, |
| | | span: 24 |
| | | }, |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | methods:{ |
| | | // 初始化 |
| | | init(data){ |
| | | }, |
| | | methods: { |
| | | // 初始化 |
| | | init(data) { |
| | | this.title = data.title |
| | | this.box = true |
| | | this.form = data; |
| | | if(data.isRead ==2){ |
| | | this.updateMessage(data) |
| | | if (data.isRead == 2) { |
| | | this.updateMessage(data) |
| | | } |
| | | }, |
| | | updateMessage(data){ |
| | | }, |
| | | updateMessage(data) { |
| | | // 设置为已读 |
| | | updateIsRead(data.id,'1'); |
| | | updateIsRead(data.id, '1'); |
| | | // 刷新列表 |
| | | this.$emit('reflushList','') |
| | | this.$emit('reflushList', '') |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | }; |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | ::v-deep(.avue-form__menu--center){ |
| | | display: none !important; |
| | | } |
| | | </style> |
| | | ::v-deep .avue-form__menu--center { |
| | | display: none !important; |
| | | } |
| | | </style> |