Эх сурвалжийг харах

fix(@six/health-remedy):去除打印,把头像改为图片预览

张田田 2 өдөр өмнө
parent
commit
ae2800a6a5

+ 1 - 1
apps/health-remedy/src/adapter/component/Avatar.vue

@@ -95,7 +95,7 @@ const onRemoveHandle = () => {
     </Upload>
     <Modal
       :open="previewVisible"
-      title="头像"
+      title="图片预览"
       :footer="null"
       @cancel="handleCancel"
     >

+ 0 - 15
apps/health-remedy/src/views/treatment/treatment/components/TreatmentDetail.vue

@@ -218,7 +218,6 @@ onBeforeUnmount(() => {
 });
 
 const remainSeconds = computed(() => {
-  console.warn('props.countdown:', props.countdown);
   if (props.countdown !== undefined) {
     return Math.max(0, props.countdown);
   }
@@ -226,8 +225,6 @@ const remainSeconds = computed(() => {
   // 如果没有父组件倒计时,则使用本地计算
   const d: any = treatmentDetail.value || {};
   const cur: any = d.currentOperate || {};
-  console.warn('cur:', cur);
-  console.warn('d:', d);
   const totalMin = cur.treatmentTime ?? d.treatmentTime;
   const upd = cur.updateTime ?? d.updateTime ?? cur.operateDate;
   const total = Math.max(0, Math.floor(Number(totalMin || 0) * 60));
@@ -240,8 +237,6 @@ const isEndingTreatment = ref(false);
 
 // 计算是否倒计时结束
 const isTimerFinished = computed(() => {
-  console.warn('isInProgress.value:', isInProgress.value);
-  console.warn('remainSeconds.value:', remainSeconds.value);
   return isInProgress.value && remainSeconds.value <= 0;
 });
 
@@ -365,19 +360,12 @@ if (!registerStatusWatchOnce) {
   watch(
     () => props.treatment?.itemState,
     (status) => {
-      console.warn(
-        '治疗状态变化:',
-        status,
-        '当前isInProgress:',
-        isInProgress.value,
-      );
       if (status === 1) {
         isInProgress.value = true;
         treatmentStartTime.value = Date.now();
       } else if (status === 2) {
         isInProgress.value = false;
         treatmentStartTime.value = null;
-        console.warn('治疗已完成,设置isInProgress为false');
       } else {
         isInProgress.value = false;
         treatmentStartTime.value = null;
@@ -395,18 +383,15 @@ watch(
 
     // 防止重复调用
     if (isEndingTreatment.value) {
-      console.warn('治疗结束接口正在调用中,跳过重复调用');
       return;
     }
 
     isEndingTreatment.value = true;
-    console.warn('计时结束,开始调用治疗结束接口:', treatmentDetail.value.id);
     try {
       await endTreatmentMethod([treatmentDetail.value.id]);
       notification.success({ message: $t('treatment.detail.endSuccess') });
       // 刷新页面数据
       emit('refreshData', { treatmentId: treatmentDetail.value.id });
-      console.warn('治疗结束接口调用成功');
     } catch (error) {
       console.error('治疗结束失败:', error);
     } finally {