Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-discuss
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-discuss
提交
88d25b7a
提交
88d25b7a
编写于
12月 26, 2018
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
返回刷新
上级
2a54d4cf
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
21 行增加
和
5 行删除
+21
-5
course-adjust.vue
src/components/business/course-adjust.vue
+8
-1
getters.js
src/store/getters.js
+2
-1
sousuo.js
src/store/modules/sousuo.js
+8
-2
result.vue
src/views/result.vue
+3
-1
未找到文件。
src/components/business/course-adjust.vue
浏览文件 @
88d25b7a
...
@@ -120,7 +120,8 @@ export default {
...
@@ -120,7 +120,8 @@ export default {
},
},
computed
:
{
computed
:
{
...
mapGetters
({
...
mapGetters
({
userInfo
:
'userInfo'
userInfo
:
'userInfo'
,
refreshNum
:
'refreshNum'
}),
}),
cParamData
()
{
cParamData
()
{
if
(
this
.
list
&&
this
.
list
.
length
){
if
(
this
.
list
&&
this
.
list
.
length
){
...
@@ -130,6 +131,12 @@ export default {
...
@@ -130,6 +131,12 @@ export default {
}
}
}
}
},
},
watch
:
{
refreshNum
(
val
)
{
alert
(
'refreshNum: '
+
refreshNum
)
this
.
getData
()
}
},
components
:
{
components
:
{
GroupTitle
GroupTitle
},
},
...
...
src/store/getters.js
浏览文件 @
88d25b7a
const
getters
=
{
const
getters
=
{
userInfo
:
state
=>
state
.
sousuo
.
userInfo
,
userInfo
:
state
=>
state
.
sousuo
.
userInfo
,
statusBarHeight
:
state
=>
state
.
sousuo
.
statusBarHeight
,
statusBarHeight
:
state
=>
state
.
sousuo
.
statusBarHeight
,
cSearchText
:
state
=>
state
.
sousuo
.
cSearchText
cSearchText
:
state
=>
state
.
sousuo
.
cSearchText
,
refreshNum
:
state
=>
state
.
sousuo
.
refreshNum
}
}
export
default
getters
export
default
getters
src/store/modules/sousuo.js
浏览文件 @
88d25b7a
...
@@ -2,7 +2,8 @@ const sousuo = {
...
@@ -2,7 +2,8 @@ const sousuo = {
state
:
{
state
:
{
userInfo
:
{},
userInfo
:
{},
statusBarHeight
:
{},
statusBarHeight
:
{},
cSearchText
:
''
cSearchText
:
''
,
refreshNum
:
1
},
},
mutations
:
{
mutations
:
{
SET_USER_INFO
:
(
state
,
userInfo
)
=>
{
SET_USER_INFO
:
(
state
,
userInfo
)
=>
{
...
@@ -13,6 +14,9 @@ const sousuo = {
...
@@ -13,6 +14,9 @@ const sousuo = {
},
},
SET_C_SEARCH_TEXT
:
(
state
,
cSearchText
)
=>
{
SET_C_SEARCH_TEXT
:
(
state
,
cSearchText
)
=>
{
state
.
cSearchText
=
cSearchText
state
.
cSearchText
=
cSearchText
},
SET_REFRESH_NUM
:
(
state
,
refreshNum
)
=>
{
state
.
refreshNum
=
refreshNum
}
}
},
},
actions
:
{
actions
:
{
...
@@ -23,9 +27,11 @@ const sousuo = {
...
@@ -23,9 +27,11 @@ const sousuo = {
commit
(
'SET_STATUS_BAR_HEIGHT'
,
statusBarHeight
)
commit
(
'SET_STATUS_BAR_HEIGHT'
,
statusBarHeight
)
},
},
setCSearchText
({
commit
},
cSearchText
)
{
setCSearchText
({
commit
},
cSearchText
)
{
console
.
log
(
'setCSearchText cSearchText'
,
cSearchText
)
commit
(
'SET_C_SEARCH_TEXT'
,
cSearchText
)
commit
(
'SET_C_SEARCH_TEXT'
,
cSearchText
)
},
},
setRefreshNum
({
commit
},
refreshNum
)
{
commit
(
'SET_REFRESH_NUM'
,
refreshNum
)
},
}
}
}
}
...
...
src/views/result.vue
浏览文件 @
88d25b7a
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
_this
.
search
()
_this
.
search
()
}
}
window
.
__refresh
=
function
(){
window
.
__refresh
=
function
(){
_this
.
setRefreshNum
(
++
this
.
refreshNum
)
_this
.
getUserInfo
()
_this
.
getUserInfo
()
}
}
if
(
window
.
__isWeb
){
if
(
window
.
__isWeb
){
...
@@ -184,7 +185,8 @@ export default {
...
@@ -184,7 +185,8 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapActions
({
...
mapActions
({
setCSearchText
:
'setCSearchText'
setCSearchText
:
'setCSearchText'
,
setRefreshNum
:
'setRefreshNum'
}),
}),
showAllItem
(
index
)
{
showAllItem
(
index
)
{
console
.
log
(
typeof
index
)
console
.
log
(
typeof
index
)
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录