浏览代码

指导留言bug

yht2016 4 年之前
父节点
当前提交
9f7a92f5b0
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      app/consulting/js/consulting.js
  2. 1 1
      component/rehabilitation/server-items-detail.js

+ 2 - 1
app/consulting/js/consulting.js

@ -196,7 +196,8 @@ new Vue({
		    consultingAPI.sendMessage(vm.sessionId, {data: params}).then(function(res){
		        console.log(res);
		        vm.count++;
		        if(vm.count==1 && JSON.parse(window.localStorage.getItem('wlyyAgent')).doctorType==1 && vm.planDetailId && vm.planDetailId!="undefined"){//level:1 专科医生 (只记录第一条数据)
				var doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
		        if(vm.count==1 && doctorInfo.doctorType==1 && vm.planDetailId && vm.planDetailId!="undefined"){//level:1 专科医生 (只记录第一条数据)
			        var messages = res.messages[0];
			        var guidanceParams = {
			        	messageId:messages.id,//消息id

+ 1 - 1
component/rehabilitation/server-items-detail.js

@ -684,7 +684,7 @@ Vue.component('server-items-detail', {
		zdly: function(data) {
			var vm = this
			var otherCode, otherName;
			var planDetailId = data.planDetaiId;
			var planDetailId = vm.plandetailid;
			if(vm.docInfo.doctorType == 1) {
				otherCode = data.familyDoctorCode;
				otherName = data.familyDoctorName;