lincl 3 vuotta sitten
vanhempi
commit
7e76744f9b

+ 7 - 7
mini-pro-web/src/views/index/Index.vue

@ -167,7 +167,7 @@ export default {
    computed:{
        selcommunityName(){
            if(this.selcommunity){
                if(this.selcommunity.hospitalCode === ''){
                if(this.selcommunity.hospital === ''){
                    var item = this.townList[this.activeKey]
                    return item.town === ''? "全部" : item.townName
                } else {
@ -216,7 +216,7 @@ export default {
            selcommunity: '',
            activeKey: 0,
            defaultOption: [
                { townName: '全部', town: "", children: [{hospitalCode: '', hospitalName: '全部'}] },
                { townName: '全部', town: "", children: [{hospital: '', hospitalName: '全部'}] },
            ],
            
    	}
@ -402,7 +402,7 @@ export default {
                userId: this.user.id,
            }
            if(this.selcommunity){
                if(this.selcommunity.hospitalCode===''){
                if(this.selcommunity.hospital===''){
                    var item = this.townList[this.activeKey]
                    if(item.town === ''){
                        p.level = ''; 
@ -413,7 +413,7 @@ export default {
                    }
                } else {
                    p.level = 3; //(name = "level", value = "1、市级、2、区级、3、社区", required = false)
                    p.area = this.selcommunity.hospitalCode;
                    p.area = this.selcommunity.hospital
                }
            }
            return p
@ -431,7 +431,7 @@ export default {
                    var g = _.groupBy(userArea, 'town')
                    for(var k in g){
                        var tmp = JSON.parse(JSON.stringify(g[k][0]))
                        tmp.children = g[k]
                        tmp.children = [{hospital: '', hospitalName: '全部'}].concat( g[k])
                        townList.push(tmp)
                    }
                    this.townList = townList
@ -471,9 +471,9 @@ export default {
                        if (res.status == 200) {
                            res.detailModelList.forEach(v=>{
                                v.hospitalName = v.name
                                v.hospitalCode = v.code
                                v.hospital = v.code
                            })
                            item.children = [{hospitalCode: '', hospitalName: '全部'}] .concat (res.detailModelList)
                            item.children = [{hospital: '', hospitalName: '全部'}] .concat (res.detailModelList)
                        }
                    })
                    .catch(err=>{

+ 1 - 1
mini-pro-web/src/views/index/scss/index.scss

@ -34,7 +34,7 @@
            }
            .drop-menu-area{
                background: #f7f8fa;
                margin-top: 10px;
                margin-top: 9px;
                position: absolute;
                width: 100%;
                left: 0;