wr1207
2023-04-17 32e4bad2cff2793052effcd2d59cdd8923702b22
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
<template>
    <div>
        <el-dialog title="查看详情" width="600px" class="icon-dialog" :visible.sync="show" @open="open" :before-close="closeForm" append-to-body>
            <table cellpadding="0" cellspacing="0" class="table table-bordered" align="center" width="100%" style="word-break:break-all; margin-bottom:30px;  font-size:13px;">
                <tbody>
                    <tr>
                        <td class="title" width="100">用户id:</td>
                        <td>
                            {{form.member_id}}
                        </td>
                    </tr>
                    <tr>
                        <td class="title" width="100">聊天摘要:</td>
                        <td>
                            {{form.title}}
                        </td>
                    </tr>
                    <tr>
                        <td class="title" width="100">创建时间:</td>
                        <td>
                            {{parseTime(form.create_time)}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </el-dialog>
    </div>
</template>
 
<script>
export default {
    props: {
        show: {
            type: Boolean,
            default: true
        },
        size: {
            type: String,
            default: 'mini'
        },
        info: {
            type: Object,
        },
    },
    data() {
        return {
            form:{
            },
        }
    },
    methods: {
        open(){
            this.$axios.post('/admin/Chat/detail',this.info).then(res => {
                this.form = res.data.data
            })
        },
        closeForm(){
            this.$emit('update:show', false)
        }
    }
}
</script>
 
<style  lang="scss">
@import '@/assets/scss/common.scss'
</style>