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"
:width="1024"
@ok="onOk"
:footer="false"
title="日志详情"
>
<FormBody ref="form-body" />

View File

@@ -1,5 +1,33 @@
<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-col :span="10">
<div class="yo-form-group">
@@ -34,7 +62,7 @@
</div>
</a-col>
</a-row>
</a-form-model>
</a-form-model> -->
</template>
<script>
export default {

View File

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

View File

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

View File

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