|
@@ -123,6 +123,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ subscribe: {
|
|
|
+ deep: true,
|
|
|
+ handler (val) {
|
|
|
+ // console.log(val)
|
|
|
+ this.getAreaConfig()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ vipSubscribeInfo: {
|
|
|
+ deep: true,
|
|
|
+ handler (val) {
|
|
|
+ this.getAreaConfig()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
async created () {
|
|
|
if (this.userInfo.vipStatus > 0 && !this.isDeleteVipScope) {
|
|
|
await this.getVipInfo()
|
|
@@ -130,7 +145,6 @@ export default {
|
|
|
if (!this.isDeleteAllScope) {
|
|
|
await this.$store.dispatch('user/getKeywordsList')
|
|
|
}
|
|
|
- // this.filters.scope = this.scope
|
|
|
this.hospitalTypeData = this.hospitalType
|
|
|
this.hospitalLevelData = this.hospitalLevel
|
|
|
this.getMedicalFilterItem()
|
|
@@ -156,16 +170,20 @@ export default {
|
|
|
},
|
|
|
getAreaConfig () {
|
|
|
let areaData = {}
|
|
|
- const areaArr = []
|
|
|
if (this.userInfo.memberStatus > 0) {
|
|
|
// 大会员
|
|
|
areaData = this.subscribe.member_jy.o_area || {}
|
|
|
this.subArea = this.subscribe.member_jy.o_area || {}
|
|
|
+ this.formatAreaData(areaData)
|
|
|
} else if (this.userInfo.vipStatus > 0) {
|
|
|
// 超级订阅
|
|
|
areaData = this.vipSubscribeInfo.area || {}
|
|
|
this.subArea = this.vipSubscribeInfo.area || {}
|
|
|
+ this.formatAreaData(areaData)
|
|
|
}
|
|
|
+ },
|
|
|
+ formatAreaData (areaData) {
|
|
|
+ const areaArr = []
|
|
|
for (const key in areaData) {
|
|
|
areaArr.push(key)
|
|
|
}
|
|
@@ -303,7 +321,16 @@ export default {
|
|
|
this.showDrawer = false
|
|
|
})
|
|
|
setTimeout(() => {
|
|
|
- this.$refs.businessScopeSelector.setState(this.selectedScope)
|
|
|
+ const list = this.getScopeKeyList
|
|
|
+ const s = this.selectedScope
|
|
|
+ const arr = []
|
|
|
+ if (s && s.length > 0) {
|
|
|
+ s.forEach(v => {
|
|
|
+ arr.push(list.includes(v))
|
|
|
+ })
|
|
|
+ }
|
|
|
+ const flag = arr.some(v => v)
|
|
|
+ this.$refs.businessScopeSelector.setState(flag ? s : [])
|
|
|
}, 30)
|
|
|
},
|
|
|
goDetail (item) {
|
|
@@ -322,6 +349,8 @@ export default {
|
|
|
padding: 24px;
|
|
|
.filter-container{
|
|
|
background: #fff;
|
|
|
+ border-radius: 8px;
|
|
|
+ overflow: hidden;
|
|
|
.tab-slot-right{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
@@ -413,6 +442,16 @@ export default {
|
|
|
.select-group-container{
|
|
|
margin: 0;
|
|
|
}
|
|
|
+ .ex-line-2{
|
|
|
+ .j-button-item{
|
|
|
+ display: inline-block;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-align: justify;
|
|
|
+ max-width: 14em;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|