1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| <template>
| <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";
|
| 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) {
| this.title = data.title
| this.box = true
| this.form = data;
| if (data.isRead == 2) {
| this.updateMessage(data)
| }
| },
| updateMessage(data) {
| // 设置为已读
| updateIsRead(data.id, '1');
| // 刷新列表
| this.$emit('reflushList', '')
| }
| }
| };
| </script>
| <style scoped lang="scss">
| ::v-deep .avue-form__menu--center {
| display: none !important;
| }
| </style>
|
|