Переглянути джерело

修改缓存从wlyyAgentForDoc获取

zhangyanfang 4 роки тому
батько
коміт
65c7056bd1

+ 3 - 3
app/rehabilitation/js/health_control.js

@ -246,8 +246,8 @@ layui.use('element', function () {
            },
            getDoctorTeam:function(){
                var vm=this
                var wlyyAgent=JSON.parse(window.localStorage.getItem('wlyyAgent'));
                var uid=wlyyAgent && wlyyAgent.uid;
                var wlyyAgentForDoc=JSON.parse(window.localStorage.getItem('wlyyAgentForDoc'));
                var uid=wlyyAgentForDoc && wlyyAgentForDoc.uid;
                healthAPI.getDoctorTeam(uid).then(function(res){
                    if(res.status==200){
                        vm.doctorTeamList=res.data;
@ -276,7 +276,7 @@ layui.use('element', function () {
                        if (vm.tablelist.length == 0) {
                            vm.wujilu = true
                        }
                        vm.docInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
                        vm.docInfo = JSON.parse(window.localStorage.getItem('wlyyAgentForDoc'))
                        vm.doctorType = vm.docInfo.doctorType
                        if (vm.doctorType != 1) {
                            $(".neironglef>button:nth-child(1)").attr('disabled', "true")

+ 2 - 2
component/rehabilitation/template-list.js

@ -57,8 +57,8 @@ var TemplateList = {
		},
		getDoctorTeam:function(){
			var vm=this
			var wlyyAgent=JSON.parse(window.localStorage.getItem('wlyyAgent'));
			var uid=wlyyAgent && wlyyAgent.uid;
			var wlyyAgentForDoc=JSON.parse(window.localStorage.getItem('wlyyAgentForDoc'));
			var uid=wlyyAgentForDoc && wlyyAgentForDoc.uid;
			return new Promise(function(resolve, reject) {
				rehaAPI.getDoctorTeam(uid).then(function(res){
					if(res.status==200){