Ver código fonte

调整任务动态发布不显示文字的bug

Lijy 2 anos atrás
pai
commit
722d0e1026

+ 8 - 5
fhKeeper/formulahousekeeper/timesheet/src/views/project/projectInside.vue

@@ -2457,11 +2457,14 @@
                                 }
                                 res.data[i].content = obj
                             } else {
-                                // let obj = {
-                                //     name: '',
-                                //     con: res.data[i].content
-                                // }
-                                // res.data[i].content = obj
+                                if(this.user.userNameNeedTranslate == 1) {
+                                    let obj = {
+                                        msg1: res.data[i].content,
+                                        msg2: '',
+                                        msg3: ''
+                                    }
+                                    res.data[i].content = obj
+                                }
                             }
                         }
                         this.commentList = res.data

+ 8 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/task/list.vue

@@ -1332,6 +1332,14 @@ import { error } from 'dingtalk-jsapi';
                                 }
                                 res.data[i].content = obj
                             } else {
+                                if(this.user.userNameNeedTranslate == 1) {
+                                    let obj = {
+                                        msg1: res.data[i].content,
+                                        msg2: '',
+                                        msg3: ''
+                                    }
+                                    res.data[i].content = obj
+                                }
                                 // let obj = {
                                 //     name: '',
                                 //     con: res.data[i].content