Browse Source

修改居民信息

yingzhou 6 years ago
parent
commit
f9106c6fa2
2 changed files with 21 additions and 3 deletions
  1. 14 0
      api/temp-api.js
  2. 7 3
      app/temporary/html/userInfo.html

+ 14 - 0
api/temp-api.js

@ -0,0 +1,14 @@
(function(exports) {
    var tempAPI = {
		getPatient: function(data) {
			return httpRequest.get("doctor/patient_label_info/patient",{data:data})
		},
		getDoctorTeam: function(uid) {
			return httpRequest.get('doctor/admin-teams/team/'+uid+'/teams')
		},
		patientLabel: function(data) {
			return httpRequest.post("doctor/patient_label_info/patient_label", {data: data})
		},
	}
    exports.tempAPI = tempAPI;
})(window)

+ 7 - 3
app/temporary/html/userInfo.html

@ -13,7 +13,7 @@
		<link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
		<link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
		<link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
		<link rel="stylesheet" href="../css/index.css" />
		<link rel="stylesheet" href="../css/userInfo.css" />
	</head>
	<body>
@ -210,7 +210,11 @@
						tdbq:[],//团队标签
					},
					mounted: function(){
						this.getPatient();
						if(!this.patient){
							layer.msg('未传入居民code(参数:patient)', {icon: 5})
						}else{							
							this.getPatient();
						}
					},
					methods: {
						getPatient:function(){
@ -245,7 +249,7 @@
									layer.msg(res.msg, {icon: 5})
								}
							})
							var wlyyAgentForDoc=JSON.parse(localStorage.getItem('wlyyAgentForDoc'));
							var wlyyAgentForDoc=JSON.parse(localStorage.getItem(httpRequest.agentName));
							var uid=wlyyAgentForDoc.uid;
							tempAPI.getDoctorTeam(uid).then(function(res){
								console.log(res)