Browse Source

接口调用信息管理返回结果\错误信息 展示形式改成请求参数一样

hella_online_20240911
yufei_wang 2 months ago
parent
commit
0702dbc580
  1. 25
      src/views/wms/agvManage/interfaceInfo/index.vue

25
src/views/wms/agvManage/interfaceInfo/index.vue

@ -28,6 +28,7 @@
v-model:currentPage="tableObject.currentPage" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort" v-model:sort="tableObject.sort"
> >
<!-- 请求参数 -->
<template #reqBody="{row}"> <template #reqBody="{row}">
<el-tooltip> <el-tooltip>
<template #content> <template #content>
@ -38,6 +39,30 @@
<span class="ellipsis">{{row.reqBody}}</span> <span class="ellipsis">{{row.reqBody}}</span>
</el-tooltip> </el-tooltip>
</template> </template>
<!-- 返回结果 -->
<template #respBody="{row}">
<el-tooltip>
<template #content>
<div class="toolContent">
<pre>{{ JSON.parse(row.respBody.replace(/[\\]/g, '')) }}</pre>
</div>
</template>
<span class="ellipsis">{{row.respBody}}</span>
</el-tooltip>
</template>
<!-- 错误信息 -->
<template #errorMsg="{row}">
<el-tooltip>
<template #content>
<div class="toolContent">
<pre>{{ row.errorMsg }}</pre>
</div>
</template>
<span class="ellipsis">{{row.errorMsg}}</span>
</el-tooltip>
</template>
<template #number="{row}"> <template #number="{row}">
<el-button type="primary" link @click="openDetail(row, '序号', row.number)"> <el-button type="primary" link @click="openDetail(row, '序号', row.number)">
<span>{{ row.number }}</span> <span>{{ row.number }}</span>

Loading…
Cancel
Save