Zimo преди 11 часа
родител
ревизия
08c5af98b2

+ 1 - 1
src/views/pms/iotrydailyreport/index.vue

@@ -196,7 +196,7 @@ function handleOpenForm(id: number, type: 'edit' | 'readonly') {
           plain
           @click="handleExport"
           :loading="exportLoading"
-          v-hasPermi="['pms:iot-rh-daily-report:export']"
+          v-hasPermi="['pms:iot-ry-daily-report:export']"
         >
           <Icon icon="ep:download" class="mr-5px" /> 导出
         </el-button>

+ 2 - 2
src/views/pms/iotrydailyreport/ry-table.vue

@@ -268,7 +268,7 @@ function handleCurrentChange(val: number) {
                             <div class="flex items-center">
                               <div class="i-carbon-calendar mr-1 -translate-y-[0.5px]"></div>
                               <div class="font-medium mr-2">{{
-                                dayjs(row.createTime).format('YYYY-MM-DD')
+                                dayjs(row.reportDetails[0].reportDate).format('YYYY-MM-DD')
                               }}</div>
                               <div class="flex items-center">
                                 <span>{{ formatT(row.reportDetails[0].startTime) }}</span>
@@ -334,7 +334,7 @@ function handleCurrentChange(val: number) {
                           <div class="flex items-center">
                             <div class="i-carbon-calendar mr-1 -translate-y-[0.5px]"></div>
                             <div class="font-medium mr-2">{{
-                              dayjs(row.createTime).format('YYYY-MM-DD')
+                              dayjs(item.reportDate).format('YYYY-MM-DD')
                             }}</div>
                             <div class="flex items-center">
                               <span>{{ formatT(item.startTime) }}</span>

+ 2 - 2
src/views/pms/iotrydailyreport/ry-xj-table.vue

@@ -329,7 +329,7 @@ function handleCurrentChange(val: number) {
                             <div class="flex items-center">
                               <div class="i-carbon-calendar mr-1 -translate-y-[0.5px]"></div>
                               <div class="font-medium mr-2">{{
-                                dayjs(row.createTime).format('YYYY-MM-DD')
+                                dayjs(row.reportDetails[0].reportDate).format('YYYY-MM-DD')
                               }}</div>
                               <div class="flex items-center">
                                 <span>{{ formatT(row.reportDetails[0].startTime) }}</span>
@@ -395,7 +395,7 @@ function handleCurrentChange(val: number) {
                           <div class="flex items-center">
                             <div class="i-carbon-calendar mr-1 -translate-y-[0.5px]"></div>
                             <div class="font-medium mr-2">{{
-                              dayjs(row.createTime).format('YYYY-MM-DD')
+                              dayjs(item.reportDate).format('YYYY-MM-DD')
                             }}</div>
                             <div class="flex items-center">
                               <span>{{ formatT(item.startTime) }}</span>

+ 1 - 1
src/views/pms/iotrydailyreport/xjindex.vue

@@ -195,7 +195,7 @@ function handleOpenForm(id: number, type: 'edit' | 'readonly') {
           plain
           @click="handleExport"
           :loading="exportLoading"
-          v-hasPermi="['pms:iot-rh-daily-report:export']"
+          v-hasPermi="['pms:iot-ry-daily-report:export']"
         >
           <Icon icon="ep:download" class="mr-5px" /> 导出
         </el-button>