kuaifan 5 rokov pred
rodič
commit
ef37136c87

+ 1 - 43
resources/assets/js/_modules/language/global/en.js

@@ -1,45 +1,3 @@
 export default {
-    "请填写用户名!": null,
-    "请填写登录密码!": null,
-    "密码长度不能少于6位!": null,
-    "轻量级的团队在线协作": null,
-    "酷团队协作工具就从这里开始": null,
-    "立即登陆": null,
-    "待办四象限": null,
-    "项目管理": null,
-    "在线知识库": null,
-    "日程管理": null,
-    "待办四象限:突出事情优先级,帮助员工合理安排时间,提高工作效率。": null,
-    "项目管理:自定义项目看板,可视化任务安排。": null,
-    "在线知识库:在线流程图,在线文档,以及可视化的目录编排,文档管理无忧。": null,
-    "日程管理:可视化日程管理,快速搞定工作计划,了解工作宏观安排。": null,
-    "用户登录": null,
-    "用户名": null,
-    "密码": null,
-    "取消": null,
-    "登录": null,
-    "登录成功": null,
-    "待办": null,
-    "我的待办": null,
-    "待办日程": null,
-    "已完成的任务": null,
-    "我关注的任务": null,
-    "周报/日报": null,
-    "重要且紧急": null,
-    "恭喜你!已完成了所有待办": "Praise you! All to-do completed.",
-    "重要不紧急": null,
-    "紧急不重要": null,
-    "不重要不紧急": null,
-    "项目": null,
-    "知识库": null,
-    "团队": null,
-    "欢迎您": null,
-    "个人中心": null,
-    "退出登录": null,
-    "新建项目": null,
-    "收藏的项目": null,
-    "参与的项目": null,
-    "我创建的项目": null,
-    "新建知识库": null,
-    "尊敬的会员": null,
+
 }

+ 8 - 5
resources/assets/js/main/components/ImgUpload.vue

@@ -415,7 +415,7 @@
                 }else{
                     this.$Modal.warning({
                         title: this.$L('上传失败'),
-                        content: this.$L('文件')+ ' ' + file.name + ' ' + this.$L('上传失败') + ', ' + res.msg
+                        content: this.$L('文件 % 上传失败 %', file.name, res.msg)
                     });
                     this.$refs.upload.fileList.pop();
                 }
@@ -425,21 +425,24 @@
                 //上传类型错误
                 this.$Modal.warning({
                     title: this.$L('文件格式不正确'),
-                    content: this.$L('文件') + ' ' + file.name + ' ' + this.$L('格式不正确,请上传') + ' jpg、jpeg、gif、png ' + this.$L('格式的图片')
+                    content: this.$L('文件 % 格式不正确,请上传 jpg、jpeg、gif、png 格式的图片。', file.name)
                 });
             },
             handleMaxSize (file) {
                 //上传大小错误
                 this.$Modal.warning({
                     title: this.$L('超出文件大小限制'),
-                    content: this.$L('文件') + ' ' + file.name + ' ' + this.$L('太大,不能超过') + ' 2M'
+                    content: this.$L('文件 % 太大,不能超过2M。', file.name)
                 });
             },
             handleBeforeUpload () {
                 //上传前判断
                 let check = this.uploadList.length < this.maxNum;
                 if (!check) {
-                    this.$Modal.warning({ title: this.$L('温馨提示'), content: this.$L('最多只能上传') + ' ' + this.maxNum + ' ' + this.$L('张图片') });
+                    this.$Modal.warning({
+                        title: this.$L('温馨提示'),
+                        content: this.$L('最多只能上传 % 张图片。', this.maxNum)
+                    });
                 }
                 return check;
             },
@@ -515,7 +518,7 @@
                         }
                         let check = this.uploadList.length < this.maxNum;
                         if (!check) {
-                            this.$Modal.warning({ title: this.$L('温馨提示'), content: this.$L('最多只能选择') + ' ' + this.maxNum + ' ' + this.$L('张图片') });
+                            this.$Modal.warning({ title: this.$L('温馨提示'), content: this.$L('最多只能选择 % 张图片。', this.maxNum) });
                             return;
                         }
                         item.active = true;

+ 6 - 6
resources/assets/js/main/components/project/task/detail/detail.vue

@@ -240,13 +240,13 @@
             levelFormt(p) {
                 switch (parseInt(p)) {
                     case 1:
-                        return this.$L("重要且紧急") + " (P1)";
+                        return this.$L("重要且紧急 (P1)");
                     case 2:
-                        return this.$L("重要不紧急") + " (P2)";
+                        return this.$L("重要不紧急 (P2)");
                     case 3:
-                        return this.$L("紧急不重要") + " (P3)";
+                        return this.$L("紧急不重要 (P3)");
                     case 4:
-                        return this.$L("不重要不紧急") + " (P4)";
+                        return this.$L("不重要不紧急 (P4)");
                 }
             },
 
@@ -404,7 +404,7 @@
                         }
                         this.$Modal.confirm({
                             title: this.$L('修改负责人'),
-                            content: this.$L('你确定修改负责人设置为“') + (eve.nickname || eve.username) + this.$L('”吗?'),
+                            content: this.$L('你确定修改负责人设置为“%”吗?', (eve.nickname || eve.username)),
                             onOk: () => {
                                 this.handleTask('username', eve);
                             }
@@ -441,7 +441,7 @@
                         let temp = $A.date2string(this.timeValue, "Y-m-d H:i");
                         this.$Modal.confirm({
                             title: this.$L('修改计划时间'),
-                            content: this.$L('你确定将任务计划时间设置为“') + temp[0] + "~" + temp[1] + this.$L('”吗?'),
+                            content: this.$L('你确定将任务计划时间设置为“%”吗?', temp[0] + "~" + temp[1]),
                             onOk: () => {
                                 this.handleTask('plannedtime');
                             }

+ 3 - 3
resources/assets/js/main/components/project/task/files.vue

@@ -487,7 +487,7 @@
                 } else {
                     this.$Modal.warning({
                         title: this.$L('上传失败'),
-                        content: this.$L('文件') + ' ' + file.name + ' ' + this.$L('上传失败,') + res.msg
+                        content: this.$L('文件 % 上传失败,%', file.name, res.msg)
                     });
                     this.$refs.upload.fileList.pop();
                     this.lists.some((item, index) => {
@@ -505,7 +505,7 @@
                 //上传类型错误
                 this.$Modal.warning({
                     title: this.$L('文件格式不正确'),
-                    content: this.$L('文件') + ' ' + file.name + ' ' + this.$L('格式不正确,仅支持上传:') + this.uploadFormat.join(',')
+                    content: this.$L('文件 % 格式不正确,仅支持上传:%', file.name, this.uploadFormat.join(','))
                 });
             },
 
@@ -513,7 +513,7 @@
                 //上传大小错误
                 this.$Modal.warning({
                     title: this.$L('超出文件大小限制'),
-                    content: this.$L('文件') + ' ' + file.name + ' ' + this.$L('太大,不能超过') + ' 2M'
+                    content: this.$L('文件 % 太大,不能超过2M。', file.name)
                 });
             },
         }

+ 1 - 1
resources/assets/js/main/pages/index.vue

@@ -338,7 +338,7 @@
                 ],
                 userpass: [
                     { required: true, message: this.$L('请填写登录密码!'), trigger: 'change' },
-                    { type: 'string', min: 6, message: this.$L('用户名长度至少6位!'), trigger: 'change' }
+                    { type: 'string', min: 6, message: this.$L('密码错长度至少6位!'), trigger: 'change' }
                 ]
             };
         },