|
@@ -6,73 +6,76 @@
|
6
|
6
|
v-on:inspection="inspectionClick()"
|
7
|
7
|
></fast-patients-sidebar>
|
8
|
8
|
<!-- <fast-upload-detail v-if="isShow == 1" :id="patientID" :is-edit='true' :class='panelClass'></fast-upload-detail> -->
|
9
|
|
- <!-- <one></one> -->
|
10
|
|
- <two></two>
|
11
|
|
- <fast-upload-inspectiton-detail
|
12
|
|
- v-if="isShow == 2"
|
13
|
|
- :id="patientID"
|
14
|
|
- :is-edit="true"
|
15
|
|
- :class="panelClass"
|
16
|
|
- ></fast-upload-inspectiton-detail>
|
|
9
|
+ <one v-if="isShow == 1" :id="patientID" :is-edit='true' :class='panelClass'></one>
|
|
10
|
+ <two v-if="isShow == 2"
|
|
11
|
+ :id="patientID"
|
|
12
|
+ :is-edit="true"
|
|
13
|
+ :class="panelClass"></two>
|
|
14
|
+ <!--<fast-upload-inspectiton-detail-->
|
|
15
|
+ <!--v-if="isShow == 2"-->
|
|
16
|
+ <!--:id="patientID"-->
|
|
17
|
+ <!--:is-edit="true"-->
|
|
18
|
+ <!--:class="panelClass"-->
|
|
19
|
+ <!--></fast-upload-inspectiton-detail>-->
|
17
|
20
|
</div>
|
18
|
21
|
</template>
|
19
|
22
|
|
20
|
23
|
<script>
|
21
|
|
-import FastUploadDetail from "./FastUploadDetail";
|
22
|
|
-import { fetchAllList } from "@/api/patient";
|
23
|
|
-import FastPatientsSidebar from "./FastPatientsSidebar";
|
24
|
|
-import FastUploadInspectitonDetail from "./FastUploadInspectitonDetail";
|
25
|
|
-import One from "./One";
|
26
|
|
-import Two from "./Two";
|
27
|
|
-
|
28
|
|
-export default {
|
29
|
|
- name: "FastPatientsDetail",
|
30
|
|
- components: {
|
31
|
|
- FastUploadInspectitonDetail,
|
32
|
|
- FastPatientsSidebar,
|
33
|
|
- FastUploadDetail,
|
34
|
|
- One,
|
35
|
|
- Two
|
36
|
|
- },
|
37
|
|
- data() {
|
38
|
|
- return {
|
39
|
|
- patientID: 1,
|
40
|
|
- panelClass: "patient-app-container",
|
41
|
|
- patientInfo: {
|
42
|
|
- id: 0
|
43
|
|
- },
|
44
|
|
- isShow: 1
|
45
|
|
- };
|
46
|
|
- },
|
47
|
|
- created() {
|
48
|
|
- const id = this.$route.query && this.$route.query.id;
|
49
|
|
- this.patientID = parseInt(id);
|
|
24
|
+ import FastUploadDetail from './FastUploadDetail'
|
|
25
|
+ import { fetchAllList } from '@/api/patient'
|
|
26
|
+ import FastPatientsSidebar from './FastPatientsSidebar'
|
|
27
|
+ import FastUploadInspectitonDetail from './FastUploadInspectitonDetail'
|
|
28
|
+ import One from './One'
|
|
29
|
+ import Two from './Two'
|
50
|
30
|
|
51
|
|
- if (isNaN(this.patientID) || this.patientID <= 0) {
|
52
|
|
- this.getList(1);
|
53
|
|
- } else {
|
54
|
|
- this.getList(2);
|
55
|
|
- }
|
56
|
|
- },
|
57
|
|
- methods: {
|
58
|
|
- getList(type) {
|
59
|
|
- fetchAllList().then(response => {
|
60
|
|
- if (response.data.state == 1) {
|
61
|
|
- this.patientsList = response.data.data.patients;
|
62
|
|
- if (type == 1) {
|
63
|
|
- this.patientID = this.patientsList[0].id;
|
64
|
|
- } else {
|
65
|
|
- this.patientID = this.$route.query.id;
|
66
|
|
- }
|
67
|
|
- }
|
68
|
|
- });
|
|
31
|
+ export default {
|
|
32
|
+ name: 'FastPatientsDetail',
|
|
33
|
+ components: {
|
|
34
|
+ FastUploadInspectitonDetail,
|
|
35
|
+ FastPatientsSidebar,
|
|
36
|
+ FastUploadDetail,
|
|
37
|
+ One,
|
|
38
|
+ Two
|
69
|
39
|
},
|
70
|
|
- patientInfoClick: function() {
|
71
|
|
- this.isShow = 1;
|
|
40
|
+ data() {
|
|
41
|
+ return {
|
|
42
|
+ patientID: 1,
|
|
43
|
+ panelClass: 'patient-app-container',
|
|
44
|
+ patientInfo: {
|
|
45
|
+ id: 0
|
|
46
|
+ },
|
|
47
|
+ isShow: 1
|
|
48
|
+ }
|
72
|
49
|
},
|
73
|
|
- inspectionClick: function() {
|
74
|
|
- this.isShow = 2;
|
|
50
|
+ created() {
|
|
51
|
+ const id = this.$route.query && this.$route.query.id
|
|
52
|
+ this.patientID = parseInt(id)
|
|
53
|
+
|
|
54
|
+ if (isNaN(this.patientID) || this.patientID <= 0) {
|
|
55
|
+ this.getList(1)
|
|
56
|
+ } else {
|
|
57
|
+ this.getList(2)
|
|
58
|
+ }
|
|
59
|
+ },
|
|
60
|
+ methods: {
|
|
61
|
+ getList(type) {
|
|
62
|
+ fetchAllList().then(response => {
|
|
63
|
+ if (response.data.state == 1) {
|
|
64
|
+ this.patientsList = response.data.data.patients
|
|
65
|
+ if (type == 1) {
|
|
66
|
+ this.patientID = this.patientsList[0].id
|
|
67
|
+ } else {
|
|
68
|
+ this.patientID = this.$route.query.id
|
|
69
|
+ }
|
|
70
|
+ }
|
|
71
|
+ })
|
|
72
|
+ },
|
|
73
|
+ patientInfoClick: function() {
|
|
74
|
+ this.isShow = 1
|
|
75
|
+ },
|
|
76
|
+ inspectionClick: function() {
|
|
77
|
+ this.isShow = 2
|
|
78
|
+ }
|
75
|
79
|
}
|
76
|
80
|
}
|
77
|
|
-};
|
78
|
81
|
</script>
|