Pārlūkot izejas kodu

格式化时间

lex-xin 4 gadi atpakaļ
vecāks
revīzija
c09407e659

+ 3 - 0
src/views/HumanResources/form.vue

@@ -483,6 +483,9 @@
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column align="center" prop="nextVisitDate" label="下次沟通时间">
         <el-table-column align="center" prop="nextVisitDate" label="下次沟通时间">
+          <template slot-scope="scope">
+              {{ scope.row.nextVisitDate | dayjsFormat }}
+            </template>
         </el-table-column>
         </el-table-column>
       </el-table>
       </el-table>
     </div>
     </div>

+ 5 - 1
src/views/HumanResources/index.vue

@@ -258,7 +258,11 @@
             prop="nextVisitDate"
             prop="nextVisitDate"
             label="下次沟通时间"
             label="下次沟通时间"
             width="150px"
             width="150px"
-          ></el-table-column>
+          >
+            <template slot-scope="scope">
+              {{ scope.row.nextVisitDate | dayjsFormat }}
+            </template>
+          </el-table-column>
           <el-table-column
           <el-table-column
             align="center"
             align="center"
             prop="entryDate"
             prop="entryDate"