Bläddra i källkod

新增组件及页面

liuqiwen 4 år sedan
förälder
incheckning
9455aba4ac
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      dgtis-ui/src/views/system/userInfo/index.vue

+ 5 - 5
dgtis-ui/src/views/system/userInfo/index.vue

@@ -100,7 +100,7 @@
             <habit :data="habitData"></habit>
           </el-tab-pane>
           <el-tab-pane label="健康状况" name="jsgl">
-            <health :data="healthData"></health>
+            <health :data="healthData" v-if="healthData.height != undefined"></health>
           </el-tab-pane>
           <el-tab-pane label="关系信息" name="gxxx">
             <relationship :data="relationshipData"></relationship>
@@ -199,10 +199,10 @@ export default {
                   response.data.custInfo.hobby2 != undefined ? response.data.custInfo.hobby2 = response.data.custInfo.hobby2+'、' : response.data.custInfo.hobby2 ='';
                   response.data.custInfo.hobby3 != undefined ? response.data.custInfo.hobby3 = response.data.custInfo.hobby3 : response.data.custInfo.hobby3 ='';
                   that.habitData.hobby = response.data.custInfo.hobby1 + response.data.custInfo.hobby2 +response.data.custInfo.hobby3;
-                  response.data.custInfo.evadate != undefined ? that.healthData.evadate = response.data.custInfo.evadate : '';
-                  response.data.custInfo.height != undefined ? that.healthData.height = response.data.custInfo.height : '';
-                  response.data.custInfo.weight != undefined ? that.healthData.weight = response.data.custInfo.weight : '';
-                  response.data.custInfo.bmi != undefined ? that.healthData.bmi = response.data.custInfo.bmi : '';
+                  response.data.custInfo.evadate != undefined ? that.healthData.evadate = response.data.custInfo.evadate : that.healthData.evadate ='';
+                  response.data.custInfo.height != undefined ? that.healthData.height = response.data.custInfo.height : that.healthData.height ='';
+                  response.data.custInfo.weight != undefined ? that.healthData.weight = response.data.custInfo.weight : that.healthData.weight ='';
+                  response.data.custInfo.bmi != undefined ? that.healthData.bmi = response.data.custInfo.bmi : that.healthData.bmi = '';
                   console.log(that.healthData)
                   that.labelAll();
                   that.labelHy();