Detail.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <detail
  3. :data="data"
  4. :showDesc="!isDirect"
  5. :onManager="onManager"
  6. :base-info="baseInfo" />
  7. </template>
  8. <script>
  9. import {
  10. getCopyWithContentTableColumn,
  11. getPublicScopeTableColumn,
  12. } from '@/utils/common/tableColumn'
  13. export default {
  14. name: 'ProxysettingDetail',
  15. props: {
  16. data: {
  17. type: Object,
  18. required: true,
  19. },
  20. onManager: {
  21. type: Function,
  22. required: true,
  23. },
  24. },
  25. data () {
  26. return {
  27. baseInfo: [
  28. getPublicScopeTableColumn({ vm: this, resource: 'proxysettings' }),
  29. getCopyWithContentTableColumn({
  30. field: 'https_proxy',
  31. title: this.$t('cloudenv.text_395'),
  32. }),
  33. getCopyWithContentTableColumn({
  34. field: 'http_proxy',
  35. title: this.$t('cloudenv.text_398'),
  36. }),
  37. getCopyWithContentTableColumn({
  38. field: 'no_proxy',
  39. title: this.$t('cloudenv.text_401'),
  40. }),
  41. ],
  42. }
  43. },
  44. computed: {
  45. isDirect () {
  46. return this.data.id === 'DIRECT'
  47. },
  48. },
  49. }
  50. </script>