Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
3534d9a2
提交
3534d9a2
authored
10月 12, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/webapp/x-training-new
上级
2f216f54
e98d5fd2
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
41 行增加
和
20 行删除
+41
-20
List.vue
src/modules/works-show/views/List.vue
+41
-20
没有找到文件。
src/modules/works-show/views/List.vue
浏览文件 @
3534d9a2
...
...
@@ -54,6 +54,7 @@
</template>
<
script
>
import
{
getProdRecords
,
getUserRecords
,
getToolRecords
}
from
'../api'
import
{
selectCase
}
from
'@/api/base'
export
default
{
data
()
{
return
{
...
...
@@ -78,15 +79,14 @@ export default {
page
:
1
,
limit
:
10
,
tableIndex
:
1
},
navMap
:
{
1
:
'/product-analysis/report'
,
2
:
'/product-analysis/result'
,
3
:
'/user-study'
,
4
:
'/market-tools/tool'
}
}
},
computed
:
{
case
()
{
return
this
.
$store
.
state
.
case
}
},
created
()
{
this
.
tabActive
=
this
.
$route
.
query
.
type
this
.
fetchProdRecords
()
...
...
@@ -97,21 +97,17 @@ export default {
handleTabClick
()
{
},
handleClick
(
val
)
{
switch
(
this
.
tabActive
)
{
case
'1'
:
if
(
val
.
is_complete
===
1
)
{
this
.
$router
.
push
({
path
:
'/product-analysis/report'
,
query
:
{
id
:
val
.
id
}
})
}
else
this
.
$router
.
push
({
path
:
'/product-analysis/result'
,
query
:
{
id
:
val
.
id
}
})
break
case
'2'
:
const
type
=
val
.
is_complete
===
1
?
'3'
:
'1'
this
.
$router
.
push
({
path
:
'/user-study'
,
query
:
{
id
:
val
.
id
,
type
}
})
break
case
'3'
:
const
_type
=
val
.
is_complete
===
1
?
'1'
:
'0'
this
.
$router
.
push
({
path
:
'/market-tools/tool'
,
query
:
{
id
:
val
.
id
,
type
:
_type
}
})
break
if
(
this
.
case
.
id
===
val
.
case_info
.
id
)
{
this
.
handleNav
(
val
)
return
}
this
.
$confirm
(
'此操作将会切换当前选定的案例,确认继续执行?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
fetchSelectCase
(
val
)
})
},
fetchProdRecords
()
{
const
params
=
{
...
...
@@ -151,6 +147,31 @@ export default {
this
.
tool
.
total
=
res
.
data
.
total
}
})
},
fetchSelectCase
(
val
)
{
selectCase
(
val
.
case_info
.
id
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$store
.
commit
(
'setCase'
,
val
.
case_info
)
this
.
handleNav
(
val
)
}
})
},
handleNav
(
val
)
{
switch
(
this
.
tabActive
)
{
case
'1'
:
let
path
=
'/product-analysis/report'
if
(
val
.
is_complete
===
1
)
path
=
'/product-analysis/result'
this
.
$router
.
push
({
path
,
query
:
{
id
:
val
.
id
}
})
break
case
'2'
:
const
type
=
val
.
is_complete
===
1
?
'3'
:
'1'
this
.
$router
.
push
({
path
:
'/user-study'
,
query
:
{
id
:
val
.
id
,
type
}
})
break
case
'3'
:
const
_type
=
val
.
is_complete
===
1
?
'1'
:
'0'
this
.
$router
.
push
({
path
:
'/market-tools/tool'
,
query
:
{
id
:
val
.
id
,
type
:
_type
}
})
break
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论