From 15459e8bb8d990c34a55904c2ad3c1fd7d72ef2f Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Tue, 11 Jul 2023 15:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=BA=8FV4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/components/FileUpload/index.vue | 9 ++++---- src/views/mes/pro/process/content.vue | 1 + src/views/mes/pro/process/index.vue | 31 ++++++++++++++++++++------- 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.env.production b/.env.production index 27e4fe17..0426983e 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = Open Platform +VUE_APP_TITLE = 榄菊生产管理系统 # 生产环境配置 ENV = 'production' diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 8be095c9..1e1534ec 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -60,7 +60,7 @@ export default { // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "xls", "ppt", "txt", "pdf",'png', 'jpg', 'jpeg'], + default: () => ["doc", "xls", "docx", "xlsx","ppt", "txt", "pdf",'png', 'jpg', 'jpeg'], }, // 是否显示提示 isShowTip: { @@ -163,7 +163,6 @@ export default { }, // 上传结束处理 uploadedSuccessfully() { - debugger if (this.number > 0 && this.uploadList.length === this.number) { this.fileList = this.fileList.concat(this.uploadList); this.uploadList = []; @@ -174,10 +173,10 @@ export default { }, // 获取文件名称 getFileName(name) { - if (name.lastIndexOf("/") > -1) { - return name.slice(name.lastIndexOf("/") + 1); + if (name.lastIndexOf("&") > -1) { + return name.slice(name.lastIndexOf("&") + 1); } else { - return ""; + return name; } }, // 对象转成指定字符串分隔 diff --git a/src/views/mes/pro/process/content.vue b/src/views/mes/pro/process/content.vue index e13f66a8..9c6ea327 100644 --- a/src/views/mes/pro/process/content.vue +++ b/src/views/mes/pro/process/content.vue @@ -252,6 +252,7 @@ export default { }, /** 提交按钮 */ submitForm() { + debugger this.$refs["form"].validate(valid => { if (valid) { if (this.form.contentId != null) { diff --git a/src/views/mes/pro/process/index.vue b/src/views/mes/pro/process/index.vue index 6ec6ab4d..67d4582e 100644 --- a/src/views/mes/pro/process/index.vue +++ b/src/views/mes/pro/process/index.vue @@ -89,6 +89,14 @@ + + + + + +