Browse Source

解bug 签约居民类型页面无法打开

chenyue 5 years ago
parent
commit
f822a5edf3
3 changed files with 19 additions and 15 deletions
  1. 1 1
      app/sign/css/sign_handle.css
  2. 7 7
      app/sign/js/modify.js
  3. 11 7
      app/sign/js/sign_handle.js

+ 1 - 1
app/sign/css/sign_handle.css

@ -22,7 +22,7 @@ ul {list-style: none;}
.w-100 {width: 100%;}
.pull-list {top: 41px;width: 100%;}
.pull-list li {padding-left: 20px;}
.set-bg {background: url(../../../images/tiaozhuan_xia_icon.png) no-repeat no-repeat calc(100% - 10px) center;}
.set-bg {background: url(../../../images/tiaozhuan_xia_icon.png) no-repeat no-repeat calc(100% - 10px) center;background-position: 95%;}
.right-arrow {background: url(../../../images/tiaozhuan_icon.png) no-repeat no-repeat calc(100% - 10px) center; background-size: 8px 15px;}
.reason_list span {height: 24px; padding: 0 10px; background-color: #fff; line-height: 24px; border-radius: 12px; border: 1px solid #12b7f5; color: #12B7F5;}
.reason_list span.active {background-color: #12b7f5; color: #fff;}

+ 7 - 7
app/sign/js/modify.js

@ -283,7 +283,7 @@ var httpData=GetRequest();
				})
			},
			 // 普通1 老年3 高血4 糖尿5 孕妇6 儿童7 贫困8 计生9 重性10 残疾11 结核12
	        filterSer() {
	        filterSer:function(){
	            var vm=this
	            var fwlx=JSON.parse(JSON.stringify(vm.fwlx||{}))
	            vm.jkqk[0] && (vm.jkqk[0].className='optional');
@ -326,7 +326,7 @@ var httpData=GetRequest();
				vm.filterHea()
	        },
	        // 健康1 患病2 高危3 恢复4 未标注0
	        filterHea() {
	        filterHea:function(){
	            var vm=this
	            var jkqk=JSON.parse(JSON.stringify(vm.jkqk||{}))
	            _.map(vm.jkqkSelect, function(item, index) {
@ -366,7 +366,7 @@ var httpData=GetRequest();
        		vm.filterDea()
	        },
	        // 疾病类型
	        filterDea() {
	        filterDea:function(){
	            var vm=this
	            var jblx=JSON.parse(JSON.stringify(vm.jblx||{}))
	            _.map(vm.serverTypes, function(item, index) {
@ -436,10 +436,10 @@ var httpData=GetRequest();
        	tdbqSelect:function(){
        		this.filterTea()
        	},
        	catchArr:{
        		handler(val, oldVal){
	                console.log(val);//但是这两个值打印出来却都是一样的
	            },
        	catchArr:function(){
//      		handler:function(val, oldVal){
//	                console.log(val);//但是这两个值打印出来却都是一样的
//	            },
	            deep:true
        	}
        }

+ 11 - 7
app/sign/js/sign_handle.js

@ -249,6 +249,8 @@ methods: {
		})
	},
	selectServer:function(){
        var localurl=window.location.href;
        var useUrl=localurl.split("html/")[0]
		var vm=this
		if(!this.signInfo.adminTeamCode) {
			showWarningMessage("请先选择签约团队");
@ -266,7 +268,7 @@ methods: {
				shadeClose: false,
				closeBtn: 0,
				shift: 2,
				content: '../html/modify-the-label.html?patient=' + httpData.patientCode+'&teamCode='+vm.signInfo.adminTeamCode+"&signCode="+httpData.signCode
				content: useUrl+'html/modify-the-label.html?patient=' + httpData.patientCode+'&teamCode='+vm.signInfo.adminTeamCode+"&signCode="+httpData.signCode
			});
		}
	},
@ -529,21 +531,21 @@ methods: {
		})
	   },
	   handleSelect(item) {
	   handleSelect:function(item) {
        console.log(item);
      },
      handleIconClick(ev) {
      handleIconClick:function(ev) {
        console.log(ev);
	  },
	  querySearch(queryString, cb) {
	  querySearch:function(queryString, cb) {
		var doctorList = this.doctorList;
		debugger
        var results = queryString ? doctorList.filter(this.createFilter(queryString)) : doctorList;
        // 调用 callback 返回建议列表的数据
        cb(results);
      },
      createFilter(queryString) {
        return (restaurant) => {
      createFilter:function(queryString) {
        return function(restaurant){
          return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
        };
      },
@ -669,6 +671,8 @@ methods: {
		}
	},
	lookPhoto: function(data) {
        var localurl=window.location.href;
        var useUrl=localurl.split("html/")[0]
		parent.photoLayerIndex = parent.layer.open({
			type: 2,
			area: ['70%', '600px'],
@ -676,7 +680,7 @@ methods: {
			shade: 0.5,
			shadeClose: true,
			shift: 2,
			content: '../html/photo_show.html?serverType=' + data.serverType + '&patientCode=' + httpData.patientCode
			content: useUrl+'html/photo_show.html?serverType=' + data.serverType + '&patientCode=' + httpData.patientCode
		})
	},
	refuse: function() {