|
@ -59,7 +59,7 @@ |
|
|
<div> |
|
|
<div> |
|
|
<el-popover placement="top-start" trigger="hover" v-if="scope.row.body"> |
|
|
<el-popover placement="top-start" trigger="hover" v-if="scope.row.body"> |
|
|
<div class="popover-box"> |
|
|
<div class="popover-box"> |
|
|
<pre>{{JSON.parse(scope.row.body)}}</pre> |
|
|
|
|
|
|
|
|
<pre>{{fmtBody(scope.row.body)}}</pre> |
|
|
</div> |
|
|
</div> |
|
|
<i class="el-icon-view" slot="reference"></i> |
|
|
<i class="el-icon-view" slot="reference"></i> |
|
|
</el-popover> |
|
|
</el-popover> |
|
@ -73,7 +73,7 @@ |
|
|
<div> |
|
|
<div> |
|
|
<el-popover placement="top-start" trigger="hover" v-if="scope.row.resp"> |
|
|
<el-popover placement="top-start" trigger="hover" v-if="scope.row.resp"> |
|
|
<div class="popover-box"> |
|
|
<div class="popover-box"> |
|
|
<pre>{{JSON.parse(scope.row.resp)}}</pre> |
|
|
|
|
|
|
|
|
<pre>{{fmtBody(scope.row.resp)}}</pre> |
|
|
</div> |
|
|
</div> |
|
|
<i class="el-icon-view" slot="reference"></i> |
|
|
<i class="el-icon-view" slot="reference"></i> |
|
|
</el-popover> |
|
|
</el-popover> |
|
@ -192,6 +192,13 @@ export default { |
|
|
}) |
|
|
}) |
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
fmtBody(value){ |
|
|
|
|
|
try{ |
|
|
|
|
|
return JSON.parse(value) |
|
|
|
|
|
}catch (err){ |
|
|
|
|
|
return value |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|