提交 9ce72377 编写于 作者: guangjun.yang's avatar guangjun.yang

dev ok

上级 85142b4a
......@@ -83,9 +83,9 @@ export function jumpEvaluatPage(){
// dev地址
// const baseUrl = 'http://10.177.10.149:8080/'
const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const baseUrl = 'http://10.177.15.180:10202/'
// const baseUrl = 'http://192.168.140.14:10201/'
const baseUrl = 'http://192.168.140.14:10201/'
const apiUrl = 'https://dev-api.yunqueyi.com/'
const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
export const jumpWebPageUrl = 'https://dev-phome.yunqueyi.com/'
......
......@@ -32,101 +32,13 @@
<!-- 全部讲师列表 -->
<YqyTeacherList :parmData="parmDataDoctList"/>
<YqyLecturerSelectContent ref="lecturerSelContRef" :isShowSelectionB="showSelectedPage"/>
<YqyLecturerSelectContent
ref="lecturerSelContRef"
:isShowSelectionB="showSelectedPage"
/>
<!--返回顶部-->
<BackTop v-if="searchFix"/>
<!-- 全部讲师选择页面 -->
<!-- <mt-popup
v-model="showSelectedPage"
position="top"
> -->
<!-- <section >
<article class="lect-selection">
<div class="lect-selection-content-mask"></div>
<section class="lect-selection-title">
<img @click="closeSelectedPage" src="../images/lecturer/select-delete.png"/>
<span>{{selectedTitle}}</span>
<span class="no-content"></span>
</section>
<article class="group-title">
<section class="group-title-order">
<div @click="selectedType(1)" class="group-title-order-item">
<span :class="{'active': selectedTypeIndex === 1}">全国</span>
<img v-show="selectedTypeIndex === 1" src="../images/lecturer/select-up.png"/>
<img v-show="selectedTypeIndex !== 1" src="../images/lecturer/select-down.png"/>
</div>
<div @click="selectedType(2)" class="group-title-order-item">
<span :class="{'active': selectedTypeIndex === 2}">全部等级</span>
<img v-show="selectedTypeIndex === 2" src="../images/lecturer/select-up.png"/>
<img v-show="selectedTypeIndex !== 2" src="../images/lecturer/select-down.png"/>
</div>
<div @click="selectedType(3)" class="group-title-order-item">
<span :class="{'active': selectedTypeIndex === 3}">全部科室</span>
<img v-show="selectedTypeIndex === 3" src="../images/lecturer/select-up.png"/>
<img v-show="selectedTypeIndex !== 3" src="../images/lecturer/select-down.png"/>
</div>
</section>
</article>
</article>
<section class="lect-selection-content">
<article class="lect-selection-content-region" v-show="selectedTypeIndex === 1">
<table class="lect-selection-content-rp-tb">
<tr>
<td style="width: 40%" >
<table class="lect-selection-content-rp-tb-left">
<tr v-for="(item, index) in allAreaList" :class="{'bg-white': selectedAreaIndex === index}" @click="selectAreaAction(item, index)" :key="index">
<td >{{item.name}}</td>
</tr>
</table>
</td>
<td style="width: 4%"></td>
<td class="lect-selection-content-rp-tb-tb" style="width: 55%" >
<table >
<tr v-for="(item, index) in allAreaSubList"
@click="selectAreaSubAction(item, index)" :key="index"
>
<td >{{item.name}}</td>
<td style="text-align: right;"><img v-show="item.name && selectedAreaSubIndex === index" src="../images/lecturer/select-selected.png"/></td>
</tr>
</table>
</td>
</tr>
</table>
</article>
<article class="lect-selection-content-level" v-show="selectedTypeIndex === 2">
<table class="lect-selection-content-rp-tb">
<tr>
<td class="lect-selection-content-rp-tb-tb-2" >
<table>
<tr @click="selectLevelAction(item, index)" v-for="(item, index) in allLevelList" :key="index">
<td >{{item.value}}</td>
<td style="text-align: right;"><img v-show="selectedLevelIndex === index" src="../images/lecturer/select-selected.png"/></td>
</tr>
</table>
</td>
</tr>
</table>
</article>
<article class="lect-selection-content-region" v-show="selectedTypeIndex === 3">
<table class="lect-selection-content-rp-tb">
<tr>
<td class="lect-selection-content-rp-tb-tb-2">
<table>
<tr @click="selectDepartAction(item, index)" v-for="(item, index) in allDepartList" :key="index">
<td >{{item.name}}</td>
<td style="text-align: right;"><img v-show="selectedDepartIndex === index" src="../images/lecturer/select-selected.png"/></td>
</tr>
</table>
</td>
</tr>
</table>
</article>
</section>
</section> -->
<!-- </mt-popup> -->
</div>
</template>
......@@ -252,12 +164,11 @@ export default {
// }),
selectedTypeFromTitle(index) {
this.selectedTypeIndex = index
this.showSelectedPage = true
// commit
this.$refs.lecturerSelContRef.selectedType(index)
this.$refs.lecturerSelContRef.show()
// this.showSelectedPage = true
},
// closeSelectedPage() {
// this.showSelectedPage = false
// },
selectedType(index) {
this.selectedTypeIndex = index
// this.$emit('selectedType', index)
......@@ -358,99 +269,7 @@ export default {
_this.isFailSwiper = _this.listSwiper.length == 0 ? 2 : 1 ;
})
},
// 获取所有区域数据
getAreas() {
let param = {
setEntry: 'headers'
}
this.GET('contents/courseDoctor/listAreas', param).then(res => {
if(res.code == '000000'){
this.allAreaList = this.handleAreaData(res.data && res.data.list || [])
this.allAreaSubList = this.allAreaList[0].cities
}
})
},
// 处理区域数据
handleAreaData (orginAreaList) {
let handleList = []
orginAreaList.forEach(element => {
handleList.push({id: element.id, name: element.name,
cities: this.decorateCitiesData({id: 0, name: '全部', provinceId: ''}, element.cities)})
});
console.log(handleList)
return handleList
},
// 装饰城市数据
decorateCitiesData(appendInitData, cities, dataNum = 31) {
let appendCities = [], appendLength = dataNum - cities.length;
appendCities.unshift(appendInitData)
appendCities = appendCities.concat(cities)
for(let i = 0; i < appendLength; i ++){
appendCities.push({id: '', name: '', provinceId: ''})
}
return appendCities
},
// 获取医院等级
getLevels() {
let param = {
setEntry: 'headers'
}
this.GET('contents/courseDoctor/listLevels', param).then(res => {
if(res.code == '000000'){
this.allLevelList = res.data && res.data.list || []
}
})
},
// 获取医院科室
getDeparts() {
let param = {
setEntry: 'headers'
}
this.GET('contents/courseDoctor/listDeparts', param).then(res => {
if(res.code == '000000'){
this.allDepartList = res.data && res.data.list || []
}
})
},
// 选中省或直辖市
selectAreaAction(item, index) {
this.selectedAreaIndex = index
this.allAreaSubList = item.cities
this.selectedAreaName = item.name
},
// 选中市或区
selectAreaSubAction(item, index) {
// this.selectedAreaIndex = index
// this.allAreaSubList = item.cities
if(item.name){
this.selectedAreaSubIndex = index
this.selectedAreaSubName = item.name
// this.closeSelectedPage()
}
},
// 选中医院等级
selectLevelAction(item, index) {
this.selectedLevelIndex = index
this.selectedLevelName = item.value
// this.closeSelectedPage()
},
// 选中医院科室
selectDepartAction(item, index) {
this.selectedDepartIndex = index
this.selectedDepartName = item.name
// this.closeSelectedPage()
}
},
}
}
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册