瀏覽代碼

问题修改

wgl 4 年之前
父節點
當前提交
8bae921f78

+ 1 - 1
config/project.js

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

+ 10 - 16
src/projects/business/views/Master/Company/RegisterExamine.vue

@@ -216,23 +216,17 @@
 			doAction() {
 				this.subForm.ids = this.selectIdList.join(',');
 				if (this.checkForm()) {
-					var btnArray = ['否', '是'];
-					var _this = this;
-					mui.confirm('确认当操作?', '提示', btnArray, function(e) {
-						if (e.index == 1) {
-							_this.isLoading = true;
-							API_Company.doApply(_this.subForm).then(response => {
-								_this.isLoading = false;
+					this.isLoading = true;
+					API_Company.doApply(this.subForm).then(response => {
+						this.isLoading = false;
 
-								_this.openFromVisible = false;
-								_this.listForm.pageIndex = 1;
-								_this.getList();
-							}).catch(error => {
-								_this.isLoading = false;
-								mui.toast(error);
-							})
-						}
-					});
+						this.openFromVisible = false;
+						this.listForm.pageIndex = 1;
+						this.getList();
+					}).catch(error => {
+						this.isLoading = false;
+						mui.toast(error);
+					})
 				}
 			},
 			asynCallBack() {

+ 9 - 15
src/projects/business/views/Master/Company/RegisterInfo.vue

@@ -155,22 +155,16 @@
 			doAction() {
 				this.subForm.ids = this.selectIdList.join(',');
 				if (this.checkForm()) {
-					var btnArray = ['否', '是'];
-					var _this = this;
-					mui.confirm('确认当操作?', '提示', btnArray, function(e) {
-						if (e.index == 1) {
-							_this.isLoading = true;
-							API_Company.doApply(_this.subForm).then(response => {
-								_this.isLoading = false;
+					this.isLoading = true;
+					API_Company.doApply(this.subForm).then(response => {
+						this.isLoading = false;
 
-								_this.openFromVisible = false;
-								_this.getDetail();
-							}).catch(error => {
-								_this.isLoading = false;
-								mui.toast(error);
-							})
-						}
-					});
+						this.openFromVisible = false;
+						this.getDetail();
+					}).catch(error => {
+						this.isLoading = false;
+						mui.toast(error);
+					})
 				}
 			},
 			asynCallBack() {

+ 1 - 1
src/projects/business/views/Master/Mine/Center.vue

@@ -15,7 +15,7 @@
 							</div>
 							<h2>{{wellcomme}}{{person_data.name}}</h2>
 						</div>
-						<h4 v-text="person_data.phone"><span>编号:000000</span></h4>
+						<h4>{{person_data.phone}}<span>编号:{{person_data.id}}</span></h4>
 					</div>
 					<button type="button" class="mui-btn mui-btn-primary mui-btn-outlined" @click="editInfo">
 						编辑资料

+ 2 - 1
src/projects/home/views/User/Login.vue

@@ -187,7 +187,8 @@
 						_this.$router.push({
 							name: 'RegisterHome',
 							query: {
-								telephone: _this.subForm.phone
+								telephone: _this.subForm.phone,
+								project: this.$route.query.project
 							}
 						})
 					}

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

@@ -8,7 +8,7 @@
 				<li class="mui-table-view-cell mui-col-xs-4">
 					<div class="vongi-color-block block-yellow">
 						<span class="vongi-color-unit">mmHg</span>
-						<div class="mui-h1" v-text="healthData.diastolic+'/'+healthData.systolic"></div>
+						<div class="mui-h1" v-text="tolic"></div>
 						<div class="mui-media-body">血压</div>
 					</div>
 				</li>
@@ -97,12 +97,19 @@
 				API_Health.getHeathData().then(response => {
 					this.isLoading = false;
 
-					this.healthData = response;
-					if (response.lbs) {
-						let lbsArr = response.lbs.split(',');
-						//获取定位地址
-						this.getPositionByLonLats(lbsArr[0], lbsArr[1]);
+					if (response) {
+						this.healthData = response;
+						if (response.lbs) {
+							let lbsArr = response.lbs.split(',');
+							//获取定位地址
+							this.getPositionByLonLats(lbsArr[0], lbsArr[1]);
+						}
+					} else {
+						mui.alert('请先绑定智能手表设备,并保持佩戴几分钟以便我们获取最新的监测数据。', '暂无数据', function() {
+
+						});
 					}
+
 				}).catch(error => {
 					this.isLoading = false;
 					mui.toast(error);
@@ -142,6 +149,20 @@
 
 		},
 		computed: {
+			tolic: {
+				// getter
+				get: function() {
+					if (healthData.diastolic) {
+						return healthData.diastolic + '/' + healthData.systolic;
+					} else {
+						return '';
+					}
+				},
+				// setter
+				set: function(newValue) {
+					console.log(newValue)
+				}
+			},
 			...mapGetters({
 				openId: 'wx_openid',
 				token: 'token',

+ 1 - 1
src/projects/pension/views/Master/Mine/Center.vue

@@ -15,7 +15,7 @@
 							</div>
 							<h2>{{wellcomme}}{{person_data.name}}</h2>
 						</div>
-						<h4 v-text="person_data.phone"><span>编号:000000</span></h4>
+						<h4>{{person_data.phone}}<span>编号:{{person_data.id}}</span></h4>
 					</div>
 					<button type="button" class="mui-btn mui-btn-primary mui-btn-outlined" @click="editInfo">
 						编辑资料