|
|
@@ -115,7 +115,7 @@
|
|
115
|
115
|
</el-tab-pane>
|
|
116
|
116
|
<el-tab-pane label="患者列表" name="second">
|
|
117
|
117
|
<div class="tabList">
|
|
118
|
|
- <patient-list :planId="planId"></patient-list>
|
|
|
118
|
+ <patient-list :planId="planId" :btnFlag="isdetilBtn"></patient-list>
|
|
119
|
119
|
</div>
|
|
120
|
120
|
</el-tab-pane>
|
|
121
|
121
|
<el-tab-pane label="计划详情" name="third">
|
|
|
@@ -144,13 +144,18 @@ import patientList from './cpns/patientFileList/patientFileList';
|
|
144
|
144
|
import projectDetails from '../addFollowUpPlan/addFollowUpPlan';
|
|
145
|
145
|
import operationLog from './cpns/operationLog';
|
|
146
|
146
|
import { editPageData,getPageListData,getPageDetail } from '@/api/main/system/system';
|
|
147
|
|
-import { useRouter } from 'vue-router';
|
|
|
147
|
+import { useRouter} from 'vue-router';
|
|
148
|
148
|
import { followType,followWay } from "@/utils/commonDic.js";
|
|
149
|
149
|
import moment from 'moment';
|
|
150
|
150
|
const { proxy } = getCurrentInstance();
|
|
151
|
151
|
|
|
|
152
|
+
|
|
152
|
153
|
const activeName = ref('first')
|
|
153
|
154
|
const router = useRouter();
|
|
|
155
|
+router.afterEach((to,from)=>{
|
|
|
156
|
+ // 记录用户的浏览记录
|
|
|
157
|
+ console.log(to,from);
|
|
|
158
|
+})
|
|
154
|
159
|
const planParams = ref({
|
|
155
|
160
|
pageNum:1,
|
|
156
|
161
|
pageSize:10
|
|
|
@@ -164,13 +169,14 @@ const form = ref({
|
|
164
|
169
|
endEffective:''
|
|
165
|
170
|
})
|
|
166
|
171
|
const borderIndex = ref(0)
|
|
|
172
|
+const isdetilBtn = ref(false)
|
|
167
|
173
|
const iconFlag = ref(true)
|
|
168
|
174
|
const contentData = ref([])
|
|
169
|
175
|
const planData = ref([])
|
|
170
|
176
|
const planDetail = ref({})
|
|
171
|
177
|
const planId = ref()
|
|
172
|
178
|
const seatData = ref([])
|
|
173
|
|
-
|
|
|
179
|
+const activatedFlag = ref(false)
|
|
174
|
180
|
const handleClick = (tab, event) => {
|
|
175
|
181
|
console.log(tab, event)
|
|
176
|
182
|
}
|
|
|
@@ -179,7 +185,10 @@ function iconHandle() {
|
|
179
|
185
|
iconFlag.value = !iconFlag.value
|
|
180
|
186
|
}
|
|
181
|
187
|
const cardListRef = ref(null)
|
|
182
|
|
-
|
|
|
188
|
+onActivated(() => {
|
|
|
189
|
+ activatedFlag.value = true
|
|
|
190
|
+ geFollowUpList();
|
|
|
191
|
+})
|
|
183
|
192
|
onMounted(() => {
|
|
184
|
193
|
geFollowUpList()
|
|
185
|
194
|
});
|
|
|
@@ -189,6 +198,12 @@ function handleKeyUpEnter() {
|
|
189
|
198
|
planData.value = []
|
|
190
|
199
|
geFollowUpList()
|
|
191
|
200
|
}
|
|
|
201
|
+// beforeRouteEnter((to, from, next)=> {
|
|
|
202
|
+// beforeRouteUpdate((to, from, next) => {
|
|
|
203
|
+// console.log(to, from, next);
|
|
|
204
|
+// })
|
|
|
205
|
+// })
|
|
|
206
|
+
|
|
192
|
207
|
function handleSearch() {
|
|
193
|
208
|
iconFlag.value = !iconFlag.value
|
|
194
|
209
|
console.log('搜索');
|
|
|
@@ -216,8 +231,21 @@ function geFollowUpList() {
|
|
216
|
231
|
planDetail.value = res.data[0]
|
|
217
|
232
|
getPlanSeatList(planId.value)
|
|
218
|
233
|
}
|
|
|
234
|
+ if (activatedFlag.value) {
|
|
|
235
|
+ planData.value = []
|
|
|
236
|
+ console.log(planDetail.value);
|
|
|
237
|
+ console.log(res.data[0]);
|
|
|
238
|
+ setTimeout(()=>{
|
|
|
239
|
+ handleItem(planDetail.value,0)
|
|
|
240
|
+ },50)
|
|
|
241
|
+ }
|
|
219
|
242
|
contentData.value = res.data
|
|
220
|
243
|
planData.value = planData.value.concat(contentData.value);
|
|
|
244
|
+ if (planData.value.state === 2) {
|
|
|
245
|
+ isdetilBtn.value = false
|
|
|
246
|
+ } else{
|
|
|
247
|
+ isdetilBtn.value = true
|
|
|
248
|
+ }
|
|
221
|
249
|
})
|
|
222
|
250
|
}
|
|
223
|
251
|
|
|
|
@@ -279,8 +307,8 @@ function handleClose(planId) {
|
|
279
|
307
|
|
|
280
|
308
|
function getPlanDetail(planId) {
|
|
281
|
309
|
getPageDetail("/SfPlan/sfPlan/"+planId).then((res)=>{
|
|
282
|
|
- console.log(res.data)
|
|
283
|
310
|
planDetail.value = res.data
|
|
|
311
|
+
|
|
284
|
312
|
})
|
|
285
|
313
|
}
|
|
286
|
314
|
|
|
|
@@ -290,6 +318,11 @@ function handleItem(item,index) {
|
|
290
|
318
|
planDetail.value = item
|
|
291
|
319
|
planId.value = item.plId
|
|
292
|
320
|
getPlanSeatList(item.plId)
|
|
|
321
|
+ if (planDetail.value.state === 2) {
|
|
|
322
|
+ isdetilBtn.value = false
|
|
|
323
|
+ } else{
|
|
|
324
|
+ isdetilBtn.value = true
|
|
|
325
|
+ }
|
|
293
|
326
|
}
|
|
294
|
327
|
|
|
295
|
328
|
function getPlanState(value) {
|