SoilAcidReductionIterativeEvolution.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div id="app">
  3. <ModelIterationVisualization
  4. :showLineChart="showLineChart"
  5. :showInitScatterChart="showInitScatterChart"
  6. :showMidScatterChart="showMidScatterChart"
  7. :showFinalScatterChart="showFinalScatterChart"
  8. :lineChartPathParam="lineChartPathParam"
  9. :initScatterModelId="initScatterModelId"
  10. :midScatterModelId="midScatterModelId"
  11. :finalScatterModelId="finalScatterModelId"
  12. />
  13. </div>
  14. </template>
  15. <script setup lang='ts'>
  16. import { ref } from 'vue';
  17. import ModelIterationVisualization from './ModelIterationVisualization.vue';
  18. const showLineChart = ref(true);
  19. const showInitScatterChart = ref(true);
  20. const showMidScatterChart = ref(true);
  21. const showFinalScatterChart = ref(true);
  22. // 直接在代码里定义好参数
  23. const lineChartPathParam = ref('reduce');
  24. const initScatterModelId = ref(24);
  25. const midScatterModelId = ref(25);
  26. const finalScatterModelId = ref(26);
  27. </script>
  28. <style scoped>
  29. #app {
  30. font-family: Avenir, Helvetica, Arial, sans-serif;
  31. -webkit-font-smoothing: antialiased;
  32. -moz-osx-font-smoothing: grayscale;
  33. text-align: center;
  34. color: #2c3e50;
  35. margin-top: 60px;
  36. }
  37. </style>