Explorar o código

展示排期时间

xuzhancheng hai 3 semanas
pai
achega
6aff9475a4

+ 10 - 18
yudao-ui-admin-vue3/src/views/pressure2/equipboilerscheduling/detail.vue

@@ -205,53 +205,45 @@
           <el-table-column type="selection" width="40" />
           <el-table-column label="下次内检时间" align="center" prop="nextInCheckDate" min-width="140" sortable>
             <template #default="{ row }">
-              <div v-if="row.nextInCheckDate"
-                class="cursor-pointer" 
-                @click.stop="handleSingleSchedule(row, 'in')"
-              >
-                <div class="flex items-center justify-center gap-1 schedule-link">
+              <div>
+                <div
+                @click.stop="handleSingleSchedule(row, 'in')" v-if="row.nextInCheckDate" class="cursor-pointer flex items-center justify-center gap-1 schedule-link">
                   <span class="schedule-date-link" @click.stop="handleSchedule(row,'100')">{{ dayjs(row.nextInCheckDate).format('YYYY-MM-DD') }}</span>
                   <Icon icon="ep:calendar" class="text-xs" />
                 </div>
+                <span v-else>-</span>
                 <div v-if="row.planInCheckDate" class="text-xs text-gray-500 mt-1">
                 (最近排期时间:{{ row.planInCheckDate }})
                 </div>
               </div>
-              <span v-else>-</span>
             </template>
           </el-table-column>
           <el-table-column label="下次外检时间" align="center" prop="nextOutCheckDate" min-width="140" sortable="custom">
             <template #default="{ row }">
-              <div v-if="row.nextOutCheckDate"
-                class="cursor-pointer" 
-                @click.stop="handleSingleSchedule(row, 'out')"
-              >
-                <div class="flex items-center justify-center gap-1 schedule-link">
+              <div>
+                <div @click.stop="handleSingleSchedule(row, 'out')" v-if="row.nextOutCheckDate" class="cursor-pointer flex items-center justify-center gap-1 schedule-link">
                   <span  class="schedule-date-link" @click.stop="handleSchedule(row,'200')">{{ dayjs(row.nextOutCheckDate).format('YYYY-MM-DD') }}</span>
                   <Icon icon="ep:calendar" class="text-xs" />
                 </div>
+                <span v-else>-</span>
                 <div v-if="row.planOutCheckDate" class="text-xs text-gray-500 mt-1">
                 (最近排期时间:{{ row.planOutCheckDate }})
                 </div>
               </div>
-              <span v-else>-</span>
             </template>
           </el-table-column>
           <el-table-column label="下次耐压检验时间" align="center" prop="nextPressureCheckDate" min-width="150" sortable="custom">
             <template #default="{ row }">
-              <div v-if="row.nextPressureCheckDate"
-                class="cursor-pointer"
-                @click.stop="handleSingleSchedule(row, 'pre')"
-              >
-                <div class="flex items-center justify-center gap-1 schedule-link">
+              <div>
+                <div @click.stop="handleSingleSchedule(row, 'pre')" v-if="row.nextPressureCheckDate" class="cursor-pointer flex items-center justify-center gap-1 schedule-link">
                   <span  class="schedule-date-link" @click.stop="handleSchedule(row,'300')">{{ dayjs(row.nextPressureCheckDate).format('YYYY-MM-DD') }}</span>
                   <Icon icon="ep:calendar" class="text-xs" />
                 </div>
+                <span v-else>-</span>
                 <div v-if="row.planPreCheckDate" class="text-xs text-gray-500 mt-1">
                 (最近排期时间:{{ row.planPreCheckDate }})
                 </div>
               </div>
-              <span v-else>-</span>
             </template>
           </el-table-column>
           <!-- 区域 -->