diff --git a/.env.dev b/.env.dev index b1305aa6..40a1806e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,12 +1,12 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-12-15 16:28:20 + # @LastEditTime: 2023-12-18 13:35:00 # @LastEditors: zhp # @Description: ### # 开发环境配置 -ENV = 'development' +ENV = 'development' # 页面标题 VUE_APP_TITLE = MES系统 diff --git a/src/assets/styles/login.scss b/src/assets/styles/login.scss index 78d18bba..ab43c3a6 100644 --- a/src/assets/styles/login.scss +++ b/src/assets/styles/login.scss @@ -139,7 +139,7 @@ $base1px: 0.15vh; // 1px / 1080px; .title { margin: 0; - margin-left: calc(28 * 0.12vh); + margin-left: calc(18px * 0.12vh); font-weight: 400; user-select: none; color: #000; @@ -148,8 +148,8 @@ $base1px: 0.15vh; // 1px / 1080px; letter-spacing: calc(2 * 0.12vh); .cnbm_logo { - height: calc(144 * 0.12vh); - width: calc(160 * 0.12vh); + height: calc(160 * 0.12vh); + width: calc(182 * 0.12vh); position: relative; top: calc(8 * 0.12vh); right: calc(8 * 0.12vh); diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 3248ce17..ac7e32ac 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -101,7 +101,9 @@ } " v-bind="col.bind"> - + @@ -410,8 +412,26 @@ export default { } if (!promiseList.length) this.formLoading = false; }, + // 上传成功的特殊处理 - beforeUpload() {}, + beforeUpload(file) { + const checkFileSize = () => { + const isLt2M = file.size / 1024 / 1024 < 2; + if (!isLt2M) { + this.$modal.msgError('上传文件大小不能超过 2MB!'); + } + return isLt2M; + }; + const checkFileType = () => { + const isJPG = + file.type === 'image/jpeg' || + file.type === 'image/png' || + file.type === 'image/jpg'; + return isJPG; + }; + return checkFileSize() && checkFileType(); + }, + // 上传前的验证规则可通过 bind 属性传入 handleUploadSuccess(response, file, prop) { console.log('[handleUploadSuccess]', response, file, prop); diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue index 13b9dfec..3127d186 100644 --- a/src/views/OperationalOverview/coldBoard.vue +++ b/src/views/OperationalOverview/coldBoard.vue @@ -7,6 +7,8 @@ }"> 许昌安彩冷端看板 +

单位:河南汇融科技服务有限公司

+

{{ times }}