zhangwencui
4 天以前 1999e8cff956c8da795ea4433c4f0a9e4909b891
生产时间格式化
已修改1个文件
7 ■■■■■ 文件已修改
src/views/productionManagement/productionReporting/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productionManagement/productionReporting/index.vue
@@ -246,6 +246,13 @@
      label: "生产时间",
      prop: "createTime",
      width: 120,
      formatData: params => {
        const date = new Date(params);
        return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(
          2,
          "0"
        )}-${String(date.getDate()).padStart(2, "0")}`;
      },
    },
    {
      dataType: "action",