<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">chat_id:</td>
|
<td>
|
{{form.chat_id}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">消息内容:</td>
|
<td>
|
{{form.content}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">role:</td>
|
<td>
|
{{form.role}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">openai_api_id:</td>
|
<td>
|
{{form.openai_api_id}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">finish_reason:</td>
|
<td>
|
{{form.finish_reason}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">创建时间:</td>
|
<td>
|
{{parseTime(form.create_time)}}
|
</td>
|
</tr>
|
<tr>
|
<td class="title" width="100">status:</td>
|
<td>
|
<span v-if="form.status == '1'">正常</span>
|
<span v-if="form.status == '0'">失败</span>
|
<span v-if="form.status == '2'">回复中</span>
|
</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/Message/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>
|