hd 3 месяцев назад
Родитель
Сommit
1757c2087f

+ 1 - 1
app/rehabilitation/html/guide_the_message.html

@ -176,7 +176,7 @@
              style="width: auto">
              记录随访表单
            </button>
            <button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1 && service.isMyTask==1" @click="openFollowRecordForm" style="width: auto">查看随访结果</button>
            <button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="openFollowRecordForm" style="width: auto">查看随访结果</button>
            <button
              class="btn btn-yuyue"
              v-if="service.type==7 && service.status!=1 && selectCheckTyperadio!=1 && !service.appointmentTime && service.isMyTask==1"

+ 1 - 1
app/statistics/html/home.html

@ -128,6 +128,6 @@
        <script src="../../../api/statistics-api.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../../component/common/event-bus.js"></script>
        <script src="../js/common.js" type="text/javascript" charset="utf-8"></script>
        <script src="../js/home.js?v=1.0.0" type="text/javascript" charset="utf-8"></script>
        <script src="../js/home.js" type="text/javascript" charset="utf-8"></script>
    </body>
</html>

+ 6 - 6
app/statistics/js/home.js

@ -121,7 +121,6 @@ new Vue({
		paramValue:'',
		paramType:'',
		isGugan: false,
		docInfo: null
	},
	methods: {
		open: function() {
@ -148,6 +147,9 @@ new Vue({
			    httpRequest.getDoctorInfo().then(function(res){
			        var docInfo = res.data,
			        userRole = docInfo.userRole;
							if(docInfo.expandLevelName){
								vm.isGugan = docInfo.expandLevelName.indexOf("慢病骨干")>-1
							}
			        _.each(userRole,function(item,index){
						if(item.areas!="350200"){
							item.roleType='2'
@ -174,9 +176,9 @@ new Vue({
			        }else if(vm.isGugan){
								window.sessionStorage.setItem("docInfo", JSON.stringify(docInfo));
								var selected = {
									code: vm.docInfo.town,
									areas: vm.docInfo.town,
									name: vm.docInfo.hospitalName
									code: docInfo.town,
									areas: docInfo.town,
									name: docInfo.hospitalName
								}
								window.sessionStorage.setItem("selectedRole", JSON.stringify(selected));
								$("#main").removeClass("c-hide")
@ -258,8 +260,6 @@ new Vue({
		}
	},
	mounted: function() {
		this.docInfo = JSON.parse(window.localStorage.getItem('docInfo'))
		this.isGugan = this.docInfo.expandLevelName.indexOf("慢病骨干")>-1
	    //获取缓存里面的userRole
		this.userRoleData()
				//TODO 发布删除这个

+ 3 - 1
component/statistics/CopdPatientRecord/index.js

@ -106,8 +106,10 @@ Vue.component('copd-patient-record', {
    vm.userRoleCode = JSON.parse(userRole).code
    this.initTime(vm)
    this.initScope(3)
    if(this.docInfo.expandLevelName){
      this.isGuGan = this.docInfo.expandLevelName.indexOf('慢病骨干') > -1
    }
    this.isGuGan = this.docInfo.expandLevelName.indexOf('慢病骨干') > -1
    if(this.isGuGan&&JSON.parse(window.sessionStorage.getItem('userRole')).length == 0){
      // 是慢病骨干并且没有给任何权限时
      this.rangeList = [