detail.html 756 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <el-table :data="detail" stripe border style="width: 100%">
  3. <el-table-column prop="title" label="{:__('标题')}" width="180"></el-table-column>
  4. <el-table-column prop="content" label="{:__('内容')}"></el-table-column>
  5. </el-table>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. detail:[]
  12. }
  13. },
  14. onShow:function () {
  15. let detail=[];
  16. let row=Yunqi.data.row;
  17. for(let k in row){
  18. detail.push({
  19. title:k,
  20. content:row[k]
  21. });
  22. }
  23. this.detail=detail;
  24. },
  25. methods: {
  26. }
  27. }
  28. </script>
  29. <style>
  30. </style>