|
@@ -83,7 +83,8 @@ export default {
|
83
|
83
|
activeTwo: 0,
|
84
|
84
|
patientid: 0,
|
85
|
85
|
data: [],
|
86
|
|
- projectName: []
|
|
86
|
+ projectName: [],
|
|
87
|
+ restatus: 0
|
87
|
88
|
};
|
88
|
89
|
},
|
89
|
90
|
methods: {
|
|
@@ -130,7 +131,7 @@ export default {
|
130
|
131
|
getInspectionDetail(patientid, date, this.project_id).then(response => {
|
131
|
132
|
if (response.data.state === 1) {
|
132
|
133
|
var InspectionDetail = response.data.data.InspectionDetail;
|
133
|
|
- //console.log("数据是", InspectionDetail);
|
|
134
|
+ // console.log("数据是", InspectionDetail);
|
134
|
135
|
this.InspectionDetail = InspectionDetail;
|
135
|
136
|
}
|
136
|
137
|
});
|
|
@@ -150,12 +151,23 @@ export default {
|
150
|
151
|
return uParseTime(time, "{y}-{m}-{d}");
|
151
|
152
|
},
|
152
|
153
|
toReturn() {
|
153
|
|
- this.$router.push(
|
154
|
|
- "/patientdetail?patientid=" +
|
155
|
|
- this.patientid +
|
156
|
|
- "&active=" +
|
157
|
|
- this.activeTwo
|
158
|
|
- );
|
|
154
|
+ if (this.restatus == 1) {
|
|
155
|
+ this.$router.push(
|
|
156
|
+ "/patientdetail?patientid=" +
|
|
157
|
+ this.patientid +
|
|
158
|
+ "&active=" +
|
|
159
|
+ this.activeTwo +
|
|
160
|
+ "&restatus=" +
|
|
161
|
+ this.restatus
|
|
162
|
+ );
|
|
163
|
+ } else {
|
|
164
|
+ this.$router.push(
|
|
165
|
+ "/patientdetail?patientid=" +
|
|
166
|
+ this.patientid +
|
|
167
|
+ "&active=" +
|
|
168
|
+ this.activeTwo
|
|
169
|
+ );
|
|
170
|
+ }
|
159
|
171
|
}
|
160
|
172
|
},
|
161
|
173
|
created() {
|
|
@@ -170,6 +182,8 @@ export default {
|
170
|
182
|
this.GetAllProjectNameByDate(date, patientid);
|
171
|
183
|
this.getAllInspection();
|
172
|
184
|
this.getPatientName(patientid);
|
|
185
|
+ var restatus = this.$route.query.restatus;
|
|
186
|
+ this.restatus = restatus;
|
173
|
187
|
}
|
174
|
188
|
};
|
175
|
189
|
</script>
|
|
@@ -277,7 +291,7 @@ export default {
|
277
|
291
|
font-weight: bold;
|
278
|
292
|
flex-basis: 26% !important;
|
279
|
293
|
}
|
280
|
|
- .van-tabs__wrap{
|
|
294
|
+ .van-tabs__wrap {
|
281
|
295
|
overflow: inherit;
|
282
|
296
|
}
|
283
|
297
|
}
|