Ver Fonte

fix: 7762 设施环境:子表数据带不出和值不对应

johnsen há 1 semana atrás
pai
commit
c91c2bf428

+ 5 - 0
src/business/platform/data/data-template/field-formatter.vue

@@ -95,6 +95,11 @@ export default {
   methods: {
   methods: {
     initData() {
     initData() {
       if (!this.labelKey) return
       if (!this.labelKey) return
+      if (this.fieldType === 'linkdata') {
+        this.label = this.descField.val
+        return
+      }
+
       const value = this.data[this.labelKey]
       const value = this.data[this.labelKey]
       // console.log('value==>', this.data)
       // console.log('value==>', this.data)
       if (this.$utils.isEmpty(value)) {
       if (this.$utils.isEmpty(value)) {