Procházet zdrojové kódy

优化调养记录详情不显示

张田田 před 9 měsíci
rodič
revize
627fe42b9b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/service/ServicePackageDetail.vue

+ 2 - 2
src/service/ServicePackageDetail.vue

@@ -19,7 +19,7 @@ let tableData = ref<any>({});
 async function getRecordDetail() {
   try {
     const res: any = await getConditioningRecordDetailMethod(props.data);
-    if(res && res.length > 0){
+    if(res){
       tableData.value = res;
     }
   } catch (error) {
@@ -36,6 +36,7 @@ watch(tableData, (newValue, oldValue) => {
 });
 onMounted(async () => {
   await getRecordDetail();
+  console.log('tableDat111111',props.data);
 });
 
 // 转方案
@@ -102,7 +103,6 @@ const progressTextMap: Record<string, string> = {
 };
 
 const progressText = computed(() => {
-  console.log(tableData.value,"tableData.value");
   return progressTextMap[tableData.value?.progress] || '';
 });