From c7afec3ad75b22bc8b96d8129956913c2b473d9b Mon Sep 17 00:00:00 2001 From: 张诺 <zhang_12370@163.com> Date: 星期四, 19 六月 2025 16:11:36 +0800 Subject: [PATCH] 优化生产管理接口及表格字段 --- src/main.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 0994583..5fb87f2 100644 --- a/src/main.js +++ b/src/main.js @@ -6,6 +6,7 @@ import 'element-plus/dist/index.css' import 'element-plus/theme-chalk/dark/css-vars.css' import locale from 'element-plus/es/locale/lang/zh-cn' +import "default-passive-events"; import '@/assets/styles/index.scss' // global css @@ -42,6 +43,9 @@ import ImagePreview from "@/components/ImagePreview" // 瀛楀吀鏍囩缁勪欢 import DictTag from '@/components/DictTag' +import {summarizeTable} from "@/utils/summarizeTable.js"; +import {getCurrentDate} from "@/utils/getCurrentDate.js"; +import VueQrcode from '@chenfengyuan/vue-qrcode'; const app = createApp(App) @@ -54,6 +58,8 @@ app.config.globalProperties.addDateRange = addDateRange app.config.globalProperties.selectDictLabel = selectDictLabel app.config.globalProperties.selectDictLabels = selectDictLabels +app.config.globalProperties.summarizeTable = summarizeTable +app.config.globalProperties.getCurrentDate = getCurrentDate // 鍏ㄥ眬缁勪欢鎸傝浇 app.component('DictTag', DictTag) @@ -63,6 +69,7 @@ app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar) app.component('Editor', Editor) +app.component('vue-qrcode', VueQrcode) app.use(router) app.use(store) @@ -78,5 +85,6 @@ // 鏀寔 large銆乨efault銆乻mall size: Cookies.get('size') || 'default' }) +app._context.components.ElDialog.props.closeOnClickModal.default = false app.mount('#app') -- Gitblit v1.9.3