Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
84cade2b
提交
84cade2b
authored
9月 18, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 优化更新
上级
24b0b1ff
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
43 行增加
和
10 行删除
+43
-10
DouYin.vue
src/modules/market-tools/components/DouYin.vue
+29
-4
Compares.vue
src/modules/product-analysis/components/Compares.vue
+0
-1
Report.vue
src/modules/product-analysis/views/Report.vue
+14
-5
没有找到文件。
src/modules/market-tools/components/DouYin.vue
浏览文件 @
84cade2b
...
@@ -59,8 +59,9 @@
...
@@ -59,8 +59,9 @@
</div>
</div>
<div
class=
"mian-btn"
>
<div
class=
"mian-btn"
>
<el-button
type=
"primary"
@
click=
"stepsIndex--"
v-if=
"stepsIndex != 0"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"stepsIndex--"
v-if=
"stepsIndex != 0"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"stepsIndex++"
v-if=
"stepsIndex != 2"
>
下一步
</el-button>
<el-button
v-if=
"stepsIndex == 0"
type=
"primary"
@
click=
"registerNextBtn"
>
下一步
</el-button>
<el-button
type=
"primary"
@
click=
"submitReport"
v-else
>
完成
</el-button>
<el-button
v-if=
"stepsIndex == 1"
type=
"primary"
@
click=
"formNextBtn"
>
下一步
</el-button>
<el-button
type=
"primary"
@
click=
"submitReport"
v-if=
"stepsIndex == 2"
>
完成
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -89,11 +90,31 @@ export default {
...
@@ -89,11 +90,31 @@ export default {
this
.
getReport
()
this
.
getReport
()
},
},
methods
:
{
methods
:
{
registerNextBtn
()
{
if
(
this
.
registerIndex
===
4
)
{
this
.
stepsIndex
++
}
else
{
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
}
},
formNextBtn
()
{
const
isNull
=
Object
.
values
(
this
.
form
).
findIndex
(
item
=>
{
return
item
===
''
})
if
(
isNull
===
-
1
)
{
this
.
stepsIndex
++
}
else
{
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
}
},
// 提交报告
// 提交报告
submitReport
()
{
submitReport
()
{
const
isNull
=
Object
.
values
(
this
.
form
).
findIndex
(
item
=>
{
return
item
===
''
})
const
isNull
=
Object
.
values
(
this
.
form
).
findIndex
(
item
=>
{
return
item
===
''
})
if
(
isNull
!==
-
1
)
{
if
(
isNull
!==
-
1
)
{
this
.
$message
(
'请在发布视频完善信息'
)
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
return
false
}
console
.
log
(
this
.
dataIndex
,
'123'
)
if
(
this
.
dataIndex
!==
4
)
{
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
return
false
return
false
}
}
const
params
=
[{
type
:
1
,
commit_report
:
this
.
form
}]
const
params
=
[{
type
:
1
,
commit_report
:
this
.
form
}]
...
@@ -105,6 +126,8 @@ export default {
...
@@ -105,6 +126,8 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
'/works-show'
})
this
.
$router
.
push
({
path
:
'/works-show'
})
},
3000
)
},
3000
)
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
.
message
||
'稍后再试'
)
})
})
},
},
// 获取报告
// 获取报告
...
@@ -118,7 +141,8 @@ export default {
...
@@ -118,7 +141,8 @@ export default {
const
styles
=
{
const
styles
=
{
1
:
{
w
:
'50px'
,
t
:
'30px'
,
l
:
'320px'
,
text
:
'第二步:点击右上角,进入菜单'
},
1
:
{
w
:
'50px'
,
t
:
'30px'
,
l
:
'320px'
,
text
:
'第二步:点击右上角,进入菜单'
},
2
:
{
w
:
'200px'
,
t
:
'300px'
,
l
:
'100px'
,
text
:
'第三步:点击”创作者服务中心“'
},
2
:
{
w
:
'200px'
,
t
:
'300px'
,
l
:
'100px'
,
text
:
'第三步:点击”创作者服务中心“'
},
3
:
{
w
:
'50px'
,
t
:
'190px'
,
l
:
'290px'
,
text
:
'第四步:点击”数据中心“'
}
3
:
{
w
:
'50px'
,
t
:
'190px'
,
l
:
'290px'
,
text
:
'第四步:点击”数据中心“'
},
4
:
{
w
:
'0px'
,
t
:
'0px'
,
l
:
'0px'
,
text
:
'完成'
}
}
}
if
(
this
.
dataIndex
<
4
)
this
.
dataIndex
++
if
(
this
.
dataIndex
<
4
)
this
.
dataIndex
++
const
getStyle
=
styles
[
this
.
dataIndex
]
const
getStyle
=
styles
[
this
.
dataIndex
]
...
@@ -179,6 +203,7 @@ export default {
...
@@ -179,6 +203,7 @@ export default {
color
:
#000
;
color
:
#000
;
margin-left
:
30px
;
margin-left
:
30px
;
max-width
:
300px
;
max-width
:
300px
;
min-width
:
300px
;
}
}
.dy-box
{
.dy-box
{
min-width
:
375px
;
min-width
:
375px
;
...
...
src/modules/product-analysis/components/Compares.vue
浏览文件 @
84cade2b
...
@@ -46,7 +46,6 @@ export default {
...
@@ -46,7 +46,6 @@ export default {
}
}
},
},
created
()
{
created
()
{
console
.
log
(
this
.
data
.
completions
[
0
])
if
(
this
.
data
.
completions
[
0
].
commit_answer
!==
''
)
{
if
(
this
.
data
.
completions
[
0
].
commit_answer
!==
''
)
{
this
.
inputList
=
[]
this
.
inputList
=
[]
this
.
data
.
completions
[
0
].
commit_answer
.
split
(
';'
).
forEach
(
item
=>
{
this
.
data
.
completions
[
0
].
commit_answer
.
split
(
';'
).
forEach
(
item
=>
{
...
...
src/modules/product-analysis/views/Report.vue
浏览文件 @
84cade2b
<
template
>
<
template
>
<div
class=
"product-analysis-report"
>
<div
class=
"product-analysis-report"
>
<div
class=
"page-mian"
>
<div
class=
"page-mian"
>
<div
class=
"pdf-left"
>
<div
class=
"pdf-left"
ref=
"pdf"
>
<embed
class=
"embed"
width=
"100%"
height=
"100%"
:src=
"cases.pdf_uris[0]"
/>
<embed
class=
"embed"
width=
"100%"
height=
"100%"
:src=
"cases.pdf_uris[0]"
/>
</div>
</div>
<div
class=
"right-content"
>
<div
class=
"right-content"
>
...
@@ -54,6 +54,8 @@ export default {
...
@@ -54,6 +54,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
pdf
.
style
.
height
=
`
${
document
.
documentElement
.
clientHeight
-
40
}
px`
console
.
log
(
this
.
$refs
.
pdf
)
this
.
getCommitCase
()
this
.
getCommitCase
()
},
},
methods
:
{
methods
:
{
...
@@ -96,12 +98,13 @@ export default {
...
@@ -96,12 +98,13 @@ export default {
// 业绩比较基准数据
// 业绩比较基准数据
const
comparesCount
=
[]
const
comparesCount
=
[]
this
.
$refs
.
compares
[
0
].
inputList
.
forEach
(
item
=>
{
this
.
$refs
.
compares
[
0
].
inputList
.
forEach
(
item
=>
{
comparesCount
.
push
(
`
${
item
.
input1
}
,
${
item
.
input2
}
`
)
comparesCount
.
push
(
`
${
item
.
input1
.
split
(
';'
).
join
(
''
)}
,
${
item
.
input2
.
split
(
';'
).
join
(
''
)
}
`
)
})
})
const
comparesData
=
{
const
comparesData
=
{
id
:
this
.
$refs
.
compares
[
0
].
data
.
completions
[
0
].
id
,
id
:
this
.
$refs
.
compares
[
0
].
data
.
completions
[
0
].
id
,
commit_answer
:
comparesCount
.
join
(
';'
)
commit_answer
:
comparesCount
.
join
(
';'
)
}
}
this
.
$refs
.
compares
[
0
].
data
.
completions
[
0
].
commit_answer
=
comparesCount
.
join
(
';'
)
// 风险收益特征数据
// 风险收益特征数据
const
featuresCount
=
[]
const
featuresCount
=
[]
this
.
$refs
.
features
[
0
].
data
.
completions
.
forEach
(
item
=>
{
this
.
$refs
.
features
[
0
].
data
.
completions
.
forEach
(
item
=>
{
...
@@ -129,8 +132,11 @@ export default {
...
@@ -129,8 +132,11 @@ export default {
{
tag
:
'title'
,
value
:
this
.
titleValue
}
{
tag
:
'title'
,
value
:
this
.
titleValue
}
]
]
}
}
console
.
log
(
data
,
'data'
)
window
.
localStorage
.
reportData
=
JSON
.
stringify
(
data
)
window
.
localStorage
.
reportData
=
JSON
.
stringify
(
data
)
this
.
$router
.
push
({
path
:
'/product-analysis/result'
})
this
.
$router
.
push
({
path
:
'/product-analysis/result'
})
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
.
message
||
'稍后再试'
)
})
})
}
else
{
}
else
{
this
.
$message
(
'请填写完整'
)
this
.
$message
(
'请填写完整'
)
...
@@ -147,9 +153,9 @@ input {
...
@@ -147,9 +153,9 @@ input {
outline
:
none
;
outline
:
none
;
}
}
.product-analysis-report
{
.product-analysis-report
{
padding
:
33px
50px
;
padding
:
33px
50px
0
;
.page-mian
{
.page-mian
{
overflow
:
hidden
;
//
overflow: hidden;
background
:
#fff
;
background
:
#fff
;
display
:
flex
;
display
:
flex
;
padding
:
20px
;
padding
:
20px
;
...
@@ -192,7 +198,10 @@ input {
...
@@ -192,7 +198,10 @@ input {
.pdf-left
{
.pdf-left
{
flex
:
1
;
flex
:
1
;
margin-right
:
10px
;
margin-right
:
10px
;
height
:
500px
;
// height: 500px;
position
:
sticky
;
top
:
20px
;
left
:
0
;
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论