Browse Source

格式化时间

lex-xin 3 years ago
parent
commit
c09407e659
2 changed files with 8 additions and 1 deletions
  1. 3 0
      src/views/HumanResources/form.vue
  2. 5 1
      src/views/HumanResources/index.vue

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

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

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

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