Browse Source

修改bug

yingzhou 6 years ago
parent
commit
ac35bd693d

+ 1 - 1
app/sign/html/modify-the-label.html

@ -97,7 +97,7 @@
			<div class="clear-fixed-bottom">
				<div class="text-center btn-box mb10">
					<button class="btn btn-success mr20" @click="determine">确定</button>
					<button class="btn btn-default" @click="closeSelect">取消</button>
					<button class="btn btn-default" @click="close">取消</button>
				</div>
			</div>
		</div>

+ 1 - 2
app/sign/html/sign_manage.html

@ -80,9 +80,8 @@
		<script src="../../../api/http-request.js" type="text/javascript"></script>
		<script src="../../../api/sign_api.js" type="text/javascript"></script>
		<script type="text/javascript">
			var doctorType = JSON.parse(window.localStorage.getItem('wlyyAgent')).doctorType
			var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
			var httpData=GetRequest()
			
			function showSuccessMessage(msg) {
				layer.msg(msg, {
					icon: 1

+ 0 - 1
app/sign/html/userInfo.html

@ -15,7 +15,6 @@
		<link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
		<link rel="stylesheet" href="../css/userInfo.css" />
	</head>
	<body>
		<div id="app" v-cloak>
			<div class="c-container flex-box">

+ 28 - 9
app/sign/js/modify.js

@ -24,10 +24,11 @@ var httpData=GetRequest();
		},
		methods:{
			initPage:function(){
				this.serverTypes=this.catchArr.server;
				this.jkqkSelect=this.catchArr.heath
				this.jblxSelect=this.catchArr.disease
				this.tdbqSelect=this.catchArr.team
				console.log('我华北')
				this.serverTypes=JSON.parse(JSON.stringify(this.catchArr.server));
				this.jkqkSelect=JSON.parse(JSON.stringify(this.catchArr.heath));
				this.jblxSelect=JSON.parse(JSON.stringify(this.catchArr.disease));
				this.tdbqSelect=JSON.parse(JSON.stringify(this.catchArr.team));
			},
			determine:function(){
				var vm=this
@ -37,10 +38,19 @@ var httpData=GetRequest();
					disease:this.jblxSelect,
					team:this.tdbqSelect
				}
				vm.catchArr=res
				vm.catchArr=JSON.parse(JSON.stringify(res));
				top.handleVue.acceptanceRes(res);
				this.closeSelect()
			},
			close:function(){
				console.log(this.catchArr)
				console.log('我进来了')
				this.serverTypes=JSON.parse(JSON.stringify(this.catchArr.server))
				this.jkqkSelect=JSON.parse(JSON.stringify(this.catchArr.heath))
				this.jblxSelect=JSON.parse(JSON.stringify(this.catchArr.disease))
				this.tdbqSelect=JSON.parse(JSON.stringify(this.catchArr.team))
				this.closeSelect()
			},
			closeSelect:function(){
				top.$('#layui-layer-shade'+top.changeTypeIndex).hide()
				top.$('#layui-layer'+top.changeTypeIndex).hide()
@ -51,9 +61,10 @@ var httpData=GetRequest();
					signCode:vm.signCode
				}
				signAPI.findPatientSignServerBySignCode(params).then(function(res){
					if(res.status==200){						
					if(res.status==200){					
						var _typss=_.pluck(res.data || [],'serverType')
						vm.serverTypes=_typss
						vm.catchArr.server=_typss
					}
				})
			},
@ -83,6 +94,7 @@ var httpData=GetRequest();
				if(!cls || cls.indexOf('luck')!==-1) return ;
				var types=JSON.parse(JSON.stringify(vm.serverTypes));
				var _index=types.indexOf(code)
				console.log(code)
				if(_index===-1){
					vm.serverTypes.push(code);
					vm.fwlx[idx].className='active';
@ -111,6 +123,7 @@ var httpData=GetRequest();
	                }
					vm.fwlx[idx].className='optional';
				}
				console.log(vm.catchArr)
			},
//						健康状况改变
			changeJK:function(cls,code,idx){
@ -223,9 +236,9 @@ var httpData=GetRequest();
							vm.jkqkSelect=_.pluck(jkqkSelect,'label')
							vm.jblxSelect=_.pluck(jblxSelect,'label')
							vm.tdbqSelect=_.pluck(tdbqSelect,'label')
							vm.catchArr.heath=vm.jkqkSelect;
							vm.catchArr.disease=vm.jblxSelect;
							vm.catchArr.team=vm.tdbqSelect;
							vm.catchArr.heath=JSON.parse(JSON.stringify(vm.jkqkSelect));
							vm.catchArr.disease=JSON.parse(JSON.stringify(vm.jblxSelect));
							vm.catchArr.team=JSON.parse(JSON.stringify(vm.tdbqSelect));
							vm.findPatientSignServerBySignCode();
						}
					}else{
@ -380,6 +393,12 @@ var httpData=GetRequest();
        	},
        	tdbqSelect:function(){
        		this.filterTea()
        	},
        	catchArr:{
        		handler(val, oldVal){
	                console.log(val);//但是这两个值打印出来却都是一样的
	            },
	            deep:true
        	}
        }
	})