This commit is contained in:
ky_gyt
2021-04-20 03:13:00 +00:00
parent 7504c9b75c
commit a155940794
5 changed files with 35 additions and 9 deletions

View File

@@ -5,7 +5,7 @@
@cancel="onCancel" @cancel="onCancel"
:width="1024" :width="1024"
@ok="onOk" @ok="onOk"
:footer="false"
title="日志详情" title="日志详情"
> >
<FormBody ref="form-body" /> <FormBody ref="form-body" />

View File

@@ -1,5 +1,33 @@
<template> <template>
<a-form-model :model="form" class="yo-form" ref="form"> <a-form-model :model="form" class="yo-form" ref="form">
<a-descriptions bordered>
<a-descriptions-item label="方法名称" :span="1">
{{form.methodName}}
</a-descriptions-item>
<a-descriptions-item label="地址" :span="2">
{{form.location}}
</a-descriptions-item>
<a-descriptions-item label="浏览器">
{{form.browser}}
</a-descriptions-item>
<a-descriptions-item label="操作系统" :span="2">
{{form.os}}
</a-descriptions-item>
<a-descriptions-item label="类名称" :span="3">
{{form.className}}
</a-descriptions-item>
<a-descriptions-item label="返回结果" :span="3">
{{form.result}}
</a-descriptions-item>
<a-descriptions-item label="请求参数" :span="3">
{{form.param}}
</a-descriptions-item>
<a-descriptions-item label="具体消息" :span="3">
{{form.message}}
</a-descriptions-item>
</a-descriptions>
</a-form-model>
<!-- <a-form-model :model="form" class="yo-form" ref="form">
<a-row :gutter="16"> <a-row :gutter="16">
<a-col :span="10"> <a-col :span="10">
<div class="yo-form-group"> <div class="yo-form-group">
@@ -34,7 +62,7 @@
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model> -->
</template> </template>
<script> <script>
export default { export default {

View File

@@ -6,6 +6,7 @@
@ok="onOk" @ok="onOk"
class="yo-modal-form" class="yo-modal-form"
title="日志详情" title="日志详情"
:footer="false"
> >
<FormBody ref="form-body" /> <FormBody ref="form-body" />
</a-modal> </a-modal>

View File

@@ -1,11 +1,8 @@
<template> <template>
<a-form-model :model="form" class="yo-form" ref="form"> <a-form-model :model="form" class="yo-form" ref="form">
<div class="yo-form-group">
<a-form-model-item label="具体消息" prop="message"> <a-form-model-item label="具体消息" prop="message">
<a-textarea :rows="4" v-model="form.message" /> <a-textarea :rows="4" v-model="form.message" />
</a-form-model-item> </a-form-model-item>
</div>
</a-form-model> </a-form-model>
</template> </template>
<script> <script>

View File

@@ -58,10 +58,10 @@
<span slot="success" slot-scope="text"> <span slot="success" slot-scope="text">
{{ successFilter(text) }} {{ successFilter(text) }}
</span> </span>
<span slot="action" slot-scope="text"> <span slot="action" slot-scope="text, record">
<yo-table-actions> <span slot="action" >
<a @click="onOpen('details-Form', record)">详情</a> <a @click="onOpen('details-Form', record)">详情</a>
</yo-table-actions> </span>
</span> </span>
</yo-table> </yo-table>
<details-Form ref="details-Form" /> <details-Form ref="details-Form" />