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 @@ + + + + + +