Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
816853b3
提交
816853b3
编写于
1月 21, 2019
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码整理
上级
28bd11b4
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
53 行删除
+12
-53
index.vue
src/views/teachers/index.vue
+12
-53
未找到文件。
src/views/teachers/index.vue
浏览文件 @
816853b3
...
@@ -120,37 +120,9 @@ export default {
...
@@ -120,37 +120,9 @@ export default {
created
()
{
created
()
{
let
_this
=
this
;
let
_this
=
this
;
_this
.
initAll
();
_this
.
initAll
();
_this
.
getUserInfo
();
// window.__refresh = function(params){
// }
window
.
__getStatusBarHeight
=
function
(
parm
)
{
// alert(JSON.stringify(parm))
_this
.
statusBarHeight
=
parm
.
statusBarHeight
;
};
// alert("token之前");
window
.
__getUserInfo
=
function
(
parm
)
{
// _this.systemType = parm.systemType;
// _this.appVersion = parm.appVersion;
// _this.token = parm.userToken;
// _this.userToken = parm.userToken;
// _this.userMobile = parm.userMobile;
// _this.initByToken(parm.userToken);
};
// _this.getStatusHight()
// _this.initByToken('593F679F62964076AF1C7489DA3343ED');
// arraySort([1, 1, 1, 2, 2, 1, 1, 3, 4, 2, 5])
},
},
beforeMount
()
{
beforeMount
()
{},
// let appBody = document.getElementById('appBody')
// appBody.style.overflow = 'hidden'
// appBody.style.height = '0'
},
mounted
()
{
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
},
},
...
@@ -161,21 +133,20 @@ export default {
...
@@ -161,21 +133,20 @@ export default {
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
// 排序
// 排序
orderAction
(
orderName
,
isSortUp
)
{
orderAction
(
orderName
,
isSortUp
)
{
let
orderType
=
isSortUp
?
-
1
:
1
;
let
orderType
=
isSortUp
?
-
1
:
1
;
let
orderData
=
this
.
oldParmDataDoctList
.
slice
();
let
orderData
=
this
.
oldParmDataDoctList
.
slice
();
if
(
orderName
===
"doctorFirstNameChar"
)
{
if
(
orderName
===
"doctorFirstNameChar"
)
{
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
,
(
fieldValue
)
=>
{
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
,
fieldValue
=>
{
return
fieldValue
.
charCodeAt
(
0
)
return
fieldValue
.
charCodeAt
(
0
);
})
})
;
}
else
if
(
orderName
===
"newTime"
)
{
}
else
if
(
orderName
===
"newTime"
)
{
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
,
(
fieldValue
)
=>
{
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
,
fieldValue
=>
{
return
new
Date
(
fieldValue
.
replace
(
/-/g
,
"/"
)).
getTime
()
/
1000
return
new
Date
(
fieldValue
.
replace
(
/-/g
,
"/"
)).
getTime
()
/
1000
;
})
})
;
}
else
{
}
else
{
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
)
orderData
=
arraySort
(
orderData
,
isSortUp
,
orderName
)
;
}
}
this
.
parmDataDoctList
=
orderData
;
this
.
parmDataDoctList
=
orderData
;
},
},
...
@@ -195,32 +166,20 @@ export default {
...
@@ -195,32 +166,20 @@ export default {
this
.
selectedLevelName
=
selectedLevelName
;
this
.
selectedLevelName
=
selectedLevelName
;
this
.
selectedDepartName
=
selectedDepartName
;
this
.
selectedDepartName
=
selectedDepartName
;
},
},
// 选择标题组件
// 选择标题组件
selectedTypeFromTitle
(
index
)
{
selectedTypeFromTitle
(
index
)
{
this
.
selectedTypeIndex
=
index
;
this
.
selectedTypeIndex
=
index
;
this
.
$refs
.
lecturerSelContRef
.
selectedType
(
index
);
this
.
$refs
.
lecturerSelContRef
.
selectedType
(
index
);
this
.
$refs
.
lecturerSelContRef
.
show
();
this
.
$refs
.
lecturerSelContRef
.
show
();
},
},
// 请求数据
// 请求数据
initAll
()
{
initAll
()
{
this
.
getSwiper
();
this
.
getSwiper
();
this
.
getYqDoctorDataByCD
();
this
.
getYqDoctorDataByCD
();
},
},
//获取状态栏高度
getStatusHight
()
{
rocNative
.
getStatusBarHeight
({
__funcName
:
"__getStatusBarHeight"
});
},
//获取用户信息及版本号等()
getUserInfo
()
{
rocNative
.
getUserInfo
({
__funcName
:
"__getUserInfo"
});
},
//轮播图跳转
//轮播图跳转
goLinkByswiper
(
itemData
)
{
goLinkByswiper
(
itemData
)
{
this
.
pageBurialPoin
({
this
.
pageBurialPoin
({
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录