BottomBar.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <page-footer>
  3. <template v-slot:right>
  4. <price-fetcher :values="values" :cloudAccountId="cloudAccountId" />
  5. <div class="btns-wrapper d-flex align-items-center">
  6. <a-button
  7. class="ml-3"
  8. type="primary"
  9. native-type="submit"
  10. html-type="submit"
  11. @click="handleConfirm"
  12. :loading="loading">{{ $t('common_258') }}</a-button>
  13. <a-button class="ml-3" @click="handleCancel">{{$t('common.cancel')}}</a-button>
  14. </div>
  15. </template>
  16. </page-footer>
  17. </template>
  18. <script>
  19. import { mapGetters } from 'vuex'
  20. import PriceFetcher from '@/components/PriceFetcher'
  21. export default {
  22. name: 'BottomBar',
  23. components: {
  24. PriceFetcher,
  25. },
  26. inject: ['form'],
  27. props: {
  28. values: {
  29. type: Object,
  30. },
  31. cloudAccountId: String,
  32. loading: Boolean,
  33. },
  34. data () {
  35. return {}
  36. },
  37. computed: {
  38. ...mapGetters(['userInfo']),
  39. },
  40. methods: {
  41. async handleConfirm () {
  42. this.$emit('submit')
  43. },
  44. handleCancel () {
  45. this.$emit('cancel')
  46. },
  47. },
  48. }
  49. </script>
  50. <style lang="less" scoped>
  51. @import '../../../../../../src/styles/less/theme';
  52. .prices {
  53. .hour {
  54. color: @error-color;
  55. font-size: 24px;
  56. }
  57. .tips {
  58. color: #999;
  59. font-size: 12px;
  60. }
  61. }
  62. </style>