luyanan vor 6 Jahren
Ursprung
Commit
3b789e7a31

+ 3 - 1
src/components/bench-views/abutmentService/ExpertAdvisor.vue

@ -92,7 +92,9 @@
92 92
            const $info = res.data;
93 93
            let arr = [];
94 94
            for (let j = 0; j < $info.length; j++) {
95
              arr.push($info[j].caption);
95
              if ($info[j].caption) {
96
                arr.push($info[j].caption);
97
              };
96 98
              if (j === $info.length - 1) {
97 99
                $data[i].reserachs = arr.join(',');
98 100
                this.$forceUpdate();

+ 3 - 7
src/components/sub-component/BaseExpert.vue

@ -71,17 +71,13 @@
71 71
                    $data[i].offt = '';
72 72
                  }
73 73
                }
74
                $data[i].className = util.autho($data[i].authType, $data[i].orgAuth, $data[i].authStatus);
75
                if ($data[i].hasHeadImage) {
76
                  $data[i].image = util.ImageUrl('head/' + $data[i].id + '_l.jpg', true);
77
                } else {
78
                  $data[i].image = util.defaultSet.expert;
79
                }
80 74
                this.$axios.get(httpUrl.utilUrl + '/researchArea/' + $data[i].id).then(res => {
81 75
                  const $info = res.data;
82 76
                  let arr = [];
83 77
                  for (let j = 0; j < $info.length; j++) {
84
                    arr.push($info[j].caption);
78
                    if ($info[j].caption) {
79
                      arr.push($info[j].caption);
80
                    };
85 81
                    if (j === $info.length - 1) {
86 82
                      $data[i].reserachs = arr.join(',');
87 83
                      this.$forceUpdate();