Kaynağa Gözat

提交初步的转译组件代码

Lijy 1 yıl önce
ebeveyn
işleme
2aecb6686b

+ 13 - 3
fhKeeper/formulahousekeeper/timesheet/src/components/translationOpenData.vue

@@ -85,10 +85,20 @@ export default {
             const { openType, openId, renderIndex = 0 } = value
             this.configuration = { openType, openId, renderIndex }
             const type = this.renderType[renderIndex]
-            if(type === 'text') {
-                this.translationValue = openId
+
+            switch (type) {
+                case 'text':
+                    this.translationValue = openId
+                    break;
+                case 'array':
+                    this.translationValArray = openId.split(',')
+                    break;
+                case 'object':
+                    this.translationValObject = openId
+                    break;
+                default:
+                    break;
             }
-            console.log(this.translationValue, '<==== this.translationValue')
         }
     },
 }