Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
e905a5f5
提交
e905a5f5
authored
4月 28, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
6d83ad83
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
10 行删除
+19
-10
api.js
src/modules/market-tools/api.js
+7
-3
Mail.vue
src/modules/market-tools/views/Mail.vue
+12
-7
没有找到文件。
src/modules/market-tools/api.js
浏览文件 @
e905a5f5
...
@@ -28,7 +28,11 @@ export function getReportDetail(id) {
...
@@ -28,7 +28,11 @@ export function getReportDetail(id) {
// 验证是否有未完成的答题记录
// 验证是否有未完成的答题记录
export
function
checkRecord
(
id
,
type
)
{
export
function
checkRecord
(
id
,
type
)
{
return
httpRequest
.
post
(
`/api/xtraining/api/v1/answer/
${
id
}
/check-record/
${
type
}
`
,
{},
{
return
httpRequest
.
post
(
headers
:
{
'Content-Type'
:
'application/json'
}
`/api/xtraining/api/v1/answer/
${
id
}
/check-record/
${
type
}
`
,
})
{},
{
headers
:
{
'Content-Type'
:
'application/json'
}
}
)
}
}
src/modules/market-tools/views/Mail.vue
浏览文件 @
e905a5f5
<
template
>
<
template
>
<div>
<div>
<ToolCard
class=
"main_content"
>
<ToolCard
class=
"main_content"
>
<Step
:activeStep=
"activeStep"
class=
"pt50-pl60"
/>
<Step
:activeStep=
"activeStep"
class=
"pt50-pl60"
/>
<div>
<div>
<MailStepOne
v-if=
"activeStep === 0"
class=
"pt-50"
/>
<MailStepOne
v-if=
"activeStep === 0"
class=
"pt-50"
/>
<MailStepTwo
v-if=
"activeStep === 1"
class=
"pt-50"
/>
<MailStepTwo
v-if=
"activeStep === 1"
class=
"pt-50"
/>
<div
class=
"main_content_btn"
>
<div
class=
"main_content_btn"
>
<div
class=
"step_prev step_btn"
@
click=
"handlePrev"
v-if=
"activeStep > 0"
>
上一步
</div>
<div
class=
"step_prev step_btn"
@
click=
"handlePrev"
v-if=
"activeStep > 0"
>
上一步
</div>
<div
class=
"step_next step_btn"
@
click=
"handleNext"
v-if=
"activeStep >=
1 ||
activeStep
<
3
"
>
下一步
</div>
<div
class=
"step_next step_btn"
@
click=
"handleNext"
v-if=
"activeStep >=
0 &&
activeStep
<
3
"
>
下一步
</div>
<div
class=
"step_finished step_btn"
@
click=
"handlePreview"
v-if=
"activeStep === 3"
>
点击生成预览
</div>
<div
class=
"step_finished step_btn"
@
click=
"handlePreview"
v-if=
"activeStep === 3"
>
点击生成预览
</div>
</div>
</div>
</div>
</div>
...
@@ -20,6 +20,7 @@ import ToolCard from '@/components/base/ToolCard.vue'
...
@@ -20,6 +20,7 @@ import ToolCard from '@/components/base/ToolCard.vue'
import
MailStepOne
from
'../components/mail/MailStepOne.vue'
import
MailStepOne
from
'../components/mail/MailStepOne.vue'
import
Step
from
'@/components/base/Step.vue'
import
Step
from
'@/components/base/Step.vue'
import
MailStepTwo
from
'../components/mail/MailStepTwo.vue'
import
MailStepTwo
from
'../components/mail/MailStepTwo.vue'
import
{
cacheReport
}
from
'../api'
export
default
{
export
default
{
components
:
{
components
:
{
ToolCard
,
ToolCard
,
...
@@ -39,6 +40,10 @@ export default {
...
@@ -39,6 +40,10 @@ export default {
},
},
// 下一步
// 下一步
handleNext
()
{
handleNext
()
{
const
reports
=
{
type
:
1
,
commit_report
:
[{
1
:
1
}]
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
console
.
log
(
res
,
'res111'
)
})
this
.
activeStep
++
this
.
activeStep
++
},
},
// 点击生成预览
// 点击生成预览
...
@@ -55,7 +60,7 @@ export default {
...
@@ -55,7 +60,7 @@ export default {
.main_content_btn
{
.main_content_btn
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
padding-bottom
:
70px
;
padding-bottom
:
70px
;
.step_btn
{
.step_btn
{
width
:
119px
;
width
:
119px
;
height
:
32px
;
height
:
32px
;
...
@@ -82,10 +87,10 @@ export default {
...
@@ -82,10 +87,10 @@ export default {
}
}
}
}
}
}
.pt50-pl60
{
.pt50-pl60
{
padding
:
50px
0
0
60px
;
padding
:
50px
0
0
60px
;
}
}
.pt-50
{
.pt-50
{
padding-top
:
50px
;
padding-top
:
50px
;
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论