Przeglądaj źródła

修复推荐服务包

张田田 10 miesięcy temu
rodzic
commit
c2142dadc6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/pages/index/care/issueService.vue

+ 2 - 2
src/pages/index/care/issueService.vue

@@ -91,7 +91,7 @@ async function loadAvailableCw(patientId: string,patientConditioningRecordId:str
   if (res.length > 0) {
   if (res.length > 0) {
     lifeCwData.value = res;
     lifeCwData.value = res;
     // 筛选出可推荐的
     // 筛选出可推荐的
-    suggestCwData.value = lifeCwData.value.filter((item: any) => item.isSuggest);
+    suggestCwData.value = lifeCwData.value.filter((item: any) => item.isSuggest==='Y');
   }
   }
 }
 }
 export interface PatientModel {
 export interface PatientModel {
@@ -976,7 +976,7 @@ function openPatientHealthRecord(row: { id: string }, showType: 'analysis' | 'sc
               </a-select-option>
               </a-select-option>
             </a-select>
             </a-select>
           </template>
           </template>
-          <div v-if="currentPatient?.status === '1' && lifeCwData.length > 0">
+          <div v-if="currentPatient?.status === '1' && suggestCwData.length > 0">
             <span style="margin-left: 16px; color: #1890ff">推荐:</span>
             <span style="margin-left: 16px; color: #1890ff">推荐:</span>
             <a class="suggest-cw" v-for="item in suggestCwData" :key="item.id" @click="selectCw(item)">{{ item.name }}</a>
             <a class="suggest-cw" v-for="item in suggestCwData" :key="item.id" @click="selectCw(item)">{{ item.name }}</a>
           </div>
           </div>