Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
188fff25
Commit
188fff25
authored
Jun 29, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题问题修改
parent
ff53809f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
41 deletions
+32
-41
hotarticlepage.vue
src/views/conmanagementpage/hotarticlepage.vue
+5
-1
eventpage.vue
src/views/findeventpage/eventpage.vue
+1
-1
index.vue
src/views/index.vue
+3
-0
index.vue
src/views/index/pages/index.vue
+5
-2
industrypage.vue
src/views/industryreportspage/industrypage.vue
+1
-0
discussall.vue
src/views/topicpage/discussall.vue
+1
-0
topicall.vue
src/views/topicpage/topicall.vue
+9
-36
topicbar.vue
src/views/topicpage/topicbar.vue
+1
-0
topicdetail.vue
src/views/topicpage/topicdetail.vue
+6
-1
No files found.
src/views/conmanagementpage/hotarticlepage.vue
View file @
188fff25
...
...
@@ -52,7 +52,7 @@
<div
class=
"content_right"
v-if=
"hotlist&&hotlist.length>0"
>
<p><span>
</span>
精彩内容
<i
@
click=
"gocontentall"
style=
"position: absolute;right: 0px;top: 0px;font-size: 14px;font-weight: normal;cursor: pointer;"
>
查看更多 >
</i></p>
<div
class=
"hto_content"
>
<div
style=
"cursor: pointer;width: 100%;"
v-for=
"(item,index) in hotlist"
:key=
"index"
@
click=
"go
content(item,true
)"
>
<div
style=
"cursor: pointer;width: 100%;"
v-for=
"(item,index) in hotlist"
:key=
"index"
@
click=
"go
industry(item
)"
>
<p
class=
"imgInfo"
style=
"width: 80px;height: 56px;"
:style=
"
{backgroundImage:'url('+(item.contentCoverUrl?item.contentCoverUrl:item.contentUrl?item.contentUrl.split(',')[0]:'')+')'}">
<!--
<img
:src=
"item.contentCoverUrl?item.contentCoverUrl:item.contentUrl?item.contentUrl.split(',')[0]:''"
alt=
"图片"
>
-->
...
...
@@ -140,6 +140,10 @@
return
false
;
});
},
goindustry
(
row
){
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-article-report-right-list'
,
articleId
:
row
.
contentId
}));
window
.
open
(
this
.
publicFun
.
getCurrentHrefEnv
()
+
"#/contentdetail?id="
+
row
.
contentId
+
'&newnpen=true'
);
},
gocontent
(
row
,
state
){
if
(
this
.
isstate
){
if
(
state
){
...
...
src/views/findeventpage/eventpage.vue
View file @
188fff25
...
...
@@ -12,7 +12,7 @@
</p>
<p
class=
"ellipsisFont2"
style=
"height: 40px;"
@
click=
"$router.push(
{path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">
{{
item
.
channelTitle
}}
</p>
<p
class=
"ellipsisFont1"
@
click=
"$router.push(
{path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">
{{
$t
(
'activityInfo.timeZone'
)
}}
:
{{
item
.
versionType
==
0
?
$t
(
'pubactivities.beijingtime'
):
item
.
timeZoneName
}}
</p>
<span
@
click=
"$router.push(
{path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">
{{
item
.
channelStartTime
}}
{{
$t
(
'adminDash.zhi'
)
}}
{{
item
.
channelEndTime
}}
</span>
<span
@
click=
"$router.push(
{path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">
{{
item
.
channelStartTime
}}
-
{{
item
.
channelEndTime
}}
</span>
<span
@
click=
"$router.push(
{path:'/eventdetail',query:{id:item.channelId,ismyevent:0}})">
<i
v-if=
"item.channelCityStr"
class=
"iconfont icon-dingwei"
></i>
{{
item
.
channelCityStr
}}
</span>
<div
class=
"gendisplay"
>
<p
class=
"ellipsisFont1"
>
{{
item
.
channelLabel
}}
</p>
...
...
src/views/index.vue
View file @
188fff25
...
...
@@ -65,6 +65,9 @@
parameters
:{
articleId
:
data
.
articleId
,
rDeviceId
:
data
.
rDeviceId
,
channelId
:
data
.
channelId
,
topicId
:
data
.
topicId
,
topicDiscussId
:
data
.
topicDiscussId
,
rEmpId
:
data
.
rEmpId
,
rTargetType
:
data
.
rTargetType
},
...
...
src/views/index/pages/index.vue
View file @
188fff25
...
...
@@ -215,7 +215,7 @@
<span>
{{
$t
(
'commonTips.downloads'
)
}}
{{
item
.
downloadNumber
}}
</span>
</p>
<p
style=
"width:155px;text-align: right;"
>
<span
@
click=
"
gocontent
detail(item)"
style=
"margin-right: 20px"
>
<span
@
click=
"
download
detail(item)"
style=
"margin-right: 20px"
>
<i
style=
"font-size: 12px;"
class=
"iconfont icon-download-fill"
></i>
{{
$t
(
'newprojecttext.download'
)
}}
</span>
...
...
@@ -837,6 +837,7 @@
// globalMsg.$emit('topisInit', false);
// globalMsg.$emit('sendIndex', 5);
window
.
open
(
this
.
publicFun
.
getCurrentHrefEnv
()
+
"#/topicdetail?id="
+
row
.
topicId
+
'&newnpen=true'
);
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-topic-index-recommend'
,
topicId
:
row
.
topicId
}));
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
}
else
if
(
state
==
2
){
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-article-list'
,
articleId
:
row
.
contentId
}));
...
...
@@ -845,6 +846,7 @@
globalMsg
.
$emit
(
'topisInit'
,
false
);
globalMsg
.
$emit
(
'sendIndex'
,
3
);
this
.
$router
.
push
({
path
:
'/eventdetail'
,
query
:{
id
:
row
.
channelId
,
ismyevent
:
0
}})
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-channel-index-recommend'
,
channelId
:
row
.
channelId
}));
}
},
...
...
@@ -965,12 +967,13 @@
window
.
open
(
item
.
href
);
},
//报告下载
gocontent
detail
(
row
){
download
detail
(
row
){
this
.
reportId
=
row
.
reportId
;
if
(
!
this
.
publicFun
.
getCookie
(
"userInfo"
)){
this
.
$refs
.
login
.
isexpertVisible
();
return
}
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-report-file-read-index'
,
reportId
:
row
.
reportId
}));
api
.
getDownloadUrl
(
row
.
reportId
).
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
const
elink
=
document
.
createElement
(
'a'
);
...
...
src/views/industryreportspage/industrypage.vue
View file @
188fff25
...
...
@@ -275,6 +275,7 @@
this
.
$refs
.
login
.
isexpertVisible
();
return
}
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-report-file-read'
,
reportId
:
row
.
reportId
}));
api
.
getDownloadUrl
(
row
.
reportId
).
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
const
elink
=
document
.
createElement
(
'a'
);
...
...
src/views/topicpage/discussall.vue
View file @
188fff25
...
...
@@ -79,6 +79,7 @@
methods
:
{
todetail
(
row
){
this
.
$router
.
push
({
path
:
"/topicdetail"
,
query
:{
id
:
row
.
topicId
}});
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-topic-list-index'
,
topicId
:
row
.
topicId
}));
},
load
()
{
...
...
src/views/topicpage/topicall.vue
View file @
188fff25
...
...
@@ -38,6 +38,7 @@
<el-input
style=
"width: 240px;margin-left: 20px;"
v-model=
"searchs.topicTitle"
placeholder=
"请输入关键字"
></el-input>
<el-button
type=
"primary"
style=
"width: 140px;margin-left: 20px"
@
click=
"searchCik"
>
{{
$t
(
'operationjson.search'
)
}}
</el-button>
<el-button
type=
"primary"
plain
style=
"width: 140px;margin-left: 20px"
@
click=
"resetCik"
>
重置
</el-button>
</div>
</
template
>
</el-form-item>
...
...
@@ -120,7 +121,6 @@
numberData
:
10
,
//设置个数
tydata
:[],
channelList
:[],
//频道检索
classifyList
:[],
//分类检索
dictList
:[],
searchs
:{
superTopicId
:
0
,
...
...
@@ -196,45 +196,19 @@
this
.
cur_page
=
1
;
this
.
getsearchContents
();
},
resetCik
(){
this
.
searchs
=
{
superTopicId
:
0
,
topicTitle
:
''
,
};
this
.
$refs
.
channelchild
.
stateinit
();
this
.
searchCik
();
},
//频道检索
channelData
(
a
){
this
.
searchs
.
dataIds
=
a
;
this
.
searchCik
();
},
//分类检索
classifyData
(
a
){
this
.
searchs
.
classifyIds
=
a
;
this
.
searchCik
();
},
//
dictData
(
a
){
this
.
searchs
.
codes
=
a
;
this
.
searchCik
();
},
//
viewShow
(
row
){
window
.
open
(
this
.
publicFun
.
getCurrentHrefEnv
()
+
"#/contentdetail?id="
+
row
.
contentId
+
'&newnpen=true'
);
},
//分类列表条件
getClassifyList
(){
api
.
getClassifyList
().
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
response
.
result
.
forEach
(
(
item
)
=>
{
item
.
checked
=
false
;
item
.
industryName
=
item
.
classifyName
;
item
.
industryId
=
item
.
classifyId
;
item
.
screenchildList
=
null
;
}
);
this
.
classifyList
=
response
.
result
;
}
else
{
this
.
$message
.
error
(
response
.
msg
);
}
})
.
catch
(
error
=>
{
console
.
log
(
"提交出错"
);
return
false
;
});
},
//删除
deleteContent
(
row
){
if
(
row
.
subNum
!=
0
){
...
...
@@ -322,7 +296,6 @@
console
.
log
(
"提交出错"
);
return
false
;
});
// this.getClassifyList();
},
}
</
script
>
...
...
src/views/topicpage/topicbar.vue
View file @
188fff25
...
...
@@ -43,6 +43,7 @@
todetail
(
row
){
// this.$router.push({path:"/topicdetail",query:{id:row.topicId}});
window
.
open
(
this
.
publicFun
.
getCurrentHrefEnv
()
+
"#/topicdetail?id="
+
row
.
topicId
+
'&newnpen=true'
);
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-topic-list-right-list'
,
topicId
:
row
.
topicId
}));
},
topics
(){
// this.$router.push({path:'/discussall'})
...
...
src/views/topicpage/topicdetail.vue
View file @
188fff25
...
...
@@ -397,7 +397,7 @@
</div>
</div>
</div>
<p
v-if=
"item.commentsCount
> 5"
@
click=
"$router.push({path:'/commentdetail',query:{id:item.topicId,disId:item.id}}
)"
style=
"line-height: 48px;text-align: center;border-top: 1px solid #E8EAF3;cursor: pointer;"
>
<p
v-if=
"item.commentsCount
Str > 5"
@
click=
"tocommentdetail(item
)"
style=
"line-height: 48px;text-align: center;border-top: 1px solid #E8EAF3;cursor: pointer;"
>
还有{{item.commentsCountStr - 5}}条数据,点击查看
<i
style=
"font-size: 12px;"
class=
"iconfont icon-you"
></i>
</p>
</div>
...
...
@@ -524,6 +524,11 @@
todetail
(
row
){
this
.
$router
.
push
({
path
:
"/topicdetail"
,
query
:{
id
:
row
.
contentId
}});
},
//讨论详情
tocommentdetail
(
row
){
this
.
$router
.
push
({
path
:
'/commentdetail'
,
query
:{
id
:
row
.
topicId
,
disId
:
row
.
id
}});
globalMsg
.
$emit
(
'maiDianFunc'
,({
type
:
'report-topic-discuss-read'
,
topicId
:
row
.
topicId
,
topicDiscussId
:
row
.
id
}));
},
//表情拼接
emojstate
(
val
,
state
){
let
content
=
this
.
discussContent
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment