Browse Source

问题修改

wgl 4 years ago
parent
commit
781da5e678

+ 1 - 1
config/project.js

@@ -1 +1 @@
-exports.name = 'business'
+exports.name = 'pension'

+ 6 - 0
src/projects/home/views/User/Login.vue

@@ -41,6 +41,7 @@
 </template>
 
 <script>
+	import * as Dictionaries from '$project/utils/dictionaries'
 	import * as API_Person from '@/apis/person'
 	import * as API_Common from '@/apis/common'
 	import Common from '$project/components/Common.vue'
@@ -84,6 +85,11 @@
 				this.subForm.name = this.person_temp.name;
 				this.subForm.phone = this.person_temp.phone;
 			}
+
+			if (!this.project) {
+				this.project = Dictionaries.getProject(0);
+			}
+
 		},
 		methods: {
 			//表单检测

+ 3 - 3
src/projects/pension/views/Master/Health/Archives.vue

@@ -97,7 +97,7 @@
 				API_Health.getHeathData().then(response => {
 					this.isLoading = false;
 
-					if (response) {
+					if (JSON.stringify(response) != "{}") {
 						this.healthData = response;
 						if (response.lbs) {
 							let lbsArr = response.lbs.split(',');
@@ -152,8 +152,8 @@
 			tolic: {
 				// getter
 				get: function() {
-					if (healthData.diastolic) {
-						return healthData.diastolic + '/' + healthData.systolic;
+					if (this.healthData.diastolic) {
+						return this.healthData.diastolic + '/' + this.healthData.systolic;
 					} else {
 						return '';
 					}