DialogDetail.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <el-dialog
  3. v-if="visible"
  4. width="900px"
  5. :title="currentDetail.title+'['+currentDetail.method+':'+currentDetail.version+']'"
  6. :visible.sync="visible"
  7. >
  8. <el-table
  9. :data="currentDetail.listFields"
  10. border
  11. highlight-current-row
  12. >
  13. <el-table-column label="参数名" prop="name" width="150"/>
  14. <el-table-column label="类型" prop="type" width="100"/>
  15. <el-table-column label="必须">
  16. <template slot-scope="scope">
  17. {{ scope.row.required ? '是' : '否' }}
  18. </template>
  19. </el-table-column>
  20. <el-table-column label="说明" prop="describe"/>
  21. </el-table>
  22. <div slot="footer" class="dialog-footer">
  23. <el-button @click="visible = false">关 闭</el-button>
  24. </div>
  25. </el-dialog>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. visible: false,
  32. isLoading: false,
  33. currentDetail: undefined
  34. }
  35. },
  36. created() {
  37. },
  38. methods: {
  39. open(data) {
  40. this.visible = true
  41. this.currentDetail = data
  42. }
  43. }
  44. }
  45. </script>