qualityResults.vue 807 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div ref="box" class="box" :class="{'nocopy': $route.meta.nocopy}">
  3. <CaseQualityBox v-if="data.data" :data="data" />
  4. </div>
  5. </template>
  6. <script>
  7. import CaseQualityBox from './components/CaseQualityBox.vue';
  8. export default {
  9. components: {
  10. CaseQualityBox
  11. },
  12. data() {
  13. return {
  14. data: {}
  15. }
  16. },
  17. created() {
  18. if(this.$route.query.id) {
  19. this.getCaseQualityResults()
  20. }
  21. },
  22. methods: {
  23. // 获取新病案指控结果
  24. getCaseQualityResults() {
  25. const params = {
  26. id: Number(this.$route.query.id),
  27. };
  28. this.$axios2.post('/home_quality/getQualityResult', params).then(res => {
  29. this.data = res.data;
  30. });
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. </style>