Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
9ce72377
提交
9ce72377
编写于
1月 12, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dev ok
上级
85142b4a
变更
3
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
111 行增加
和
419 行删除
+111
-419
yqy-lecturer-select-content.vue
src/componentsn/business/yqy-lecturer-select-content.vue
+101
-228
index.js
src/utils/index.js
+2
-2
index.vue
src/views/index.vue
+8
-189
未找到文件。
src/componentsn/business/yqy-lecturer-select-content.vue
浏览文件 @
9ce72377
此差异已折叠。
点击以展开。
src/utils/index.js
浏览文件 @
9ce72377
...
...
@@ -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/'
...
...
src/views/index.vue
浏览文件 @
9ce72377
...
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录