ProductionDonuts.vue 859 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-10-11 14:56:37
  4. * @LastEditTime: 2021-12-22 10:30:13
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \hyyfClient\src\views\PdcData\analysis\ProductionDonuts.vue
  8. -->
  9. <template>
  10. <div class="production-donuts">
  11. <production-donut v-for="item in datas" :key="item.id" v-bind="item">
  12. </production-donut>
  13. </div>
  14. </template>
  15. <script>
  16. import ProductionDonut from "components/erp/ProductionDonut";
  17. export default {
  18. props: {
  19. data: {
  20. type: Array,
  21. required: true,
  22. },
  23. },
  24. data() {
  25. return {
  26. datas: [],
  27. };
  28. },
  29. watch: {
  30. data: {
  31. handler(newValue) {
  32. this.datas = newValue;
  33. },
  34. },
  35. },
  36. components: {
  37. ProductionDonut,
  38. },
  39. };
  40. </script>
  41. <style scoped>
  42. .production-donuts {
  43. padding-left: 70px;
  44. }
  45. </style>