| | |
| | | import "./permission"; // permission control |
| | | |
| | | import { useDict } from "@/utils/dict"; |
| | | import { dateOnlyFormatter, dateOnlyTextMixin } from "@/utils/dateFormat"; |
| | | import { |
| | | parseTime, |
| | | resetForm, |
| | |
| | | }); |
| | | app._context.components.ElDialog.props.closeOnClickModal.default = false; |
| | | |
| | | // --------------------------------------------------------------------------- |
| | | // 时间只显示年月日(客户口径:所有页面不显示时分秒) |
| | | // 1) 所有「没有自定义插槽」的表格列走默认 formatter,自动截断成 YYYY-MM-DD |
| | | // 2) 全局 mixin 兜住其余插值(详情弹窗 / el-descriptions / span / 带插槽的单元格) |
| | | // 只改 DOM 文本,不动数据 —— 表单、日期选择器、导出、接口参数都不受影响 |
| | | // --------------------------------------------------------------------------- |
| | | const tableColumn = app._context.components.ElTableColumn; |
| | | if (tableColumn && tableColumn.props && tableColumn.props.formatter) { |
| | | tableColumn.props.formatter = { type: Function, default: dateOnlyFormatter }; |
| | | } |
| | | app.mixin(dateOnlyTextMixin); |
| | | |
| | | app.mount("#app"); |