|
@@ -215,6 +215,7 @@ import DeathText from './components/DeathText.vue';
|
|
import VueDragResize from 'vue-drag-resize';
|
|
import VueDragResize from 'vue-drag-resize';
|
|
import Axios from 'axios'
|
|
import Axios from 'axios'
|
|
import { Loading } from 'element-ui';
|
|
import { Loading } from 'element-ui';
|
|
|
|
+import { getHomeData } from '@/api/qc'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -521,12 +522,15 @@ export default {
|
|
const params = {
|
|
const params = {
|
|
id: this.valData,
|
|
id: this.valData,
|
|
};
|
|
};
|
|
- if (this.is_tm_path.includes(this.$route.path)) {
|
|
|
|
- params.is_tm = 1;
|
|
|
|
- }
|
|
|
|
- this.$axios.post('/medical_record', params).then(res => {
|
|
|
|
- this.mainHomeData = res.data;
|
|
|
|
- });
|
|
|
|
|
|
+ // if (this.is_tm_path.includes(this.$route.path)) {
|
|
|
|
+ // params.is_tm = 1;
|
|
|
|
+ // }
|
|
|
|
+ // this.$axios.post('/medical_record', params).then(res => {
|
|
|
|
+ // this.mainHomeData = res.data;
|
|
|
|
+ // });
|
|
|
|
+ getHomeData(params).then(res => {
|
|
|
|
+ this.mainHomeData = res.data
|
|
|
|
+ })
|
|
},
|
|
},
|
|
|
|
|
|
getTree() {
|
|
getTree() {
|