Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
2ed2496d
提交
2ed2496d
authored
4月 29, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码优化
上级
10ecd10e
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
43 行删除
+19
-43
App.vue
src/modules/market-tools/views/App.vue
+5
-13
Mail.vue
src/modules/market-tools/views/Mail.vue
+9
-15
MobileSms.vue
src/modules/market-tools/views/MobileSms.vue
+5
-14
WeChat.vue
src/modules/market-tools/views/WeChat.vue
+0
-1
没有找到文件。
src/modules/market-tools/views/App.vue
浏览文件 @
2ed2496d
...
@@ -67,19 +67,7 @@ export default {
...
@@ -67,19 +67,7 @@ export default {
// 上一步
// 上一步
handlePrev
()
{
handlePrev
()
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
const
reports
=
{
this
.
handleStep
(
2
)
activeStep
:
this
.
activeStep
,
type
:
3
,
commit_report
:
[
{
stepOneList
:
this
.
stepOneList
},
{
form
:
this
.
stepTwoList
},
{
time
:
this
.
time
,
time2
:
this
.
time2
}
]
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
activeStep
--
})
}
}
},
},
// 下一步
// 下一步
...
@@ -107,7 +95,11 @@ export default {
...
@@ -107,7 +95,11 @@ export default {
}
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
caseId
=
res
.
data
.
id
if
(
val
===
2
)
{
this
.
activeStep
--
}
else
{
this
.
activeStep
++
this
.
activeStep
++
}
})
})
},
},
// 预览
// 预览
...
...
src/modules/market-tools/views/Mail.vue
浏览文件 @
2ed2496d
...
@@ -70,20 +70,7 @@ export default {
...
@@ -70,20 +70,7 @@ export default {
// 上一步
// 上一步
handlePrev
()
{
handlePrev
()
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
const
reports
=
{
this
.
handleStep
(
2
)
activeStep
:
this
.
activeStep
,
type
:
2
,
commit_report
:
[
{
stepOneList
:
this
.
stepOneList
},
{
form
:
this
.
stepTwoList
},
{
time
:
this
.
time
,
time2
:
this
.
time2
}
]
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
activeStep
--
})
console
.
log
(
this
.
stepOneList
,
'this.stepOneList'
)
}
}
},
},
// 下一步
// 下一步
...
@@ -99,6 +86,8 @@ export default {
...
@@ -99,6 +86,8 @@ export default {
}
}
}
}
},
},
//
// 保存步骤信息
handleStep
(
val
)
{
handleStep
(
val
)
{
const
reports
=
{
const
reports
=
{
activeStep
:
parseInt
(
val
),
activeStep
:
parseInt
(
val
),
...
@@ -106,12 +95,16 @@ export default {
...
@@ -106,12 +95,16 @@ export default {
commit_report
:
[
commit_report
:
[
{
stepOneList
:
this
.
stepOneList
},
{
stepOneList
:
this
.
stepOneList
},
{
form
:
this
.
stepTwoList
},
{
form
:
this
.
stepTwoList
},
{
time
:
this
.
time
s
,
time2
:
this
.
times
2
}
{
time
:
this
.
time
,
time2
:
this
.
time
2
}
]
]
}
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
caseId
=
res
.
data
.
id
if
(
val
===
2
)
{
this
.
activeStep
--
}
else
{
this
.
activeStep
++
this
.
activeStep
++
}
})
})
},
},
// 预览
// 预览
...
@@ -166,6 +159,7 @@ export default {
...
@@ -166,6 +159,7 @@ export default {
if
(
this
.
$route
.
query
.
type
)
{
if
(
this
.
$route
.
query
.
type
)
{
this
.
getReportDetail
(
this
.
$route
.
query
.
id
)
this
.
getReportDetail
(
this
.
$route
.
query
.
id
)
}
else
{
}
else
{
this
.
initStepList
()
this
.
checkRecord
()
this
.
checkRecord
()
}
}
}
}
...
...
src/modules/market-tools/views/MobileSms.vue
浏览文件 @
2ed2496d
...
@@ -67,20 +67,7 @@ export default {
...
@@ -67,20 +67,7 @@ export default {
// 上一步
// 上一步
handlePrev
()
{
handlePrev
()
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
if
(
this
.
$refs
.
mailStepTwo
.
handleStepTwo
())
{
const
reports
=
{
this
.
handleStep
(
2
)
activeStep
:
this
.
activeStep
,
type
:
4
,
commit_report
:
[
{
stepOneList
:
this
.
stepOneList
},
{
form
:
this
.
stepTwoList
},
{
time
:
this
.
time
,
time2
:
this
.
time2
}
]
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
activeStep
--
})
console
.
log
(
this
.
stepOneList
,
'this.stepOneList'
)
}
}
},
},
// 下一步
// 下一步
...
@@ -109,7 +96,11 @@ export default {
...
@@ -109,7 +96,11 @@ export default {
}
}
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
cacheReport
(
this
.
$store
.
state
.
case
.
id
,
{
reports
:
JSON
.
stringify
(
reports
)
}).
then
(
res
=>
{
this
.
caseId
=
res
.
data
.
id
this
.
caseId
=
res
.
data
.
id
if
(
val
===
2
)
{
this
.
activeStep
--
}
else
{
this
.
activeStep
++
this
.
activeStep
++
}
})
})
},
},
// 预览
// 预览
...
...
src/modules/market-tools/views/WeChat.vue
浏览文件 @
2ed2496d
...
@@ -104,7 +104,6 @@ export default {
...
@@ -104,7 +104,6 @@ export default {
const
answerList
=
res
.
data
.
items
.
filter
(
item
=>
item
.
type
===
5
)
const
answerList
=
res
.
data
.
items
.
filter
(
item
=>
item
.
type
===
5
)
if
(
res
.
data
.
items
.
length
&&
answerList
.
length
)
{
if
(
res
.
data
.
items
.
length
&&
answerList
.
length
)
{
this
.
activeStep
=
answerList
[
0
].
answer
.
activeStep
this
.
activeStep
=
answerList
[
0
].
answer
.
activeStep
this
.
stepOneList
=
answerList
[
0
].
answer
.
commit_report
[
0
].
stepOneList
this
.
stepOneList
=
answerList
[
0
].
answer
.
commit_report
[
0
].
stepOneList
}
else
{
}
else
{
this
.
initStepList
()
this
.
initStepList
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论