Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
8caf4567
Commit
8caf4567
authored
Feb 01, 2023
by
Marcus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对内帮助文档优化
http://zentao.jdshangmen.com/bug-view-2066.html
parent
68b1636d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
info.vue
src/views/system/helpDoc/info.vue
+21
-7
No files found.
src/views/system/helpDoc/info.vue
View file @
8caf4567
<
template
>
<
template
>
<div
class=
"infoheader"
>
<div
class=
"infoheader"
>
<el-collapse
v-model=
"activeNames"
>
<el-collapse
v-model=
"activeNames"
@
change=
"handleChange"
>
<div
v-for=
"
item
in helpData"
:key=
"item.id"
>
<div
v-for=
"
(item, index)
in helpData"
:key=
"item.id"
>
<el-collapse-item
:title=
"
item.titleZh"
:name=
"item.id
"
>
<el-collapse-item
:title=
"
(index + 1) + '. ' + (isChinese ? item.titleZh : item.titleEn)"
:name=
"index
"
>
<div
v-html=
"i
tem.contentZh"
class=
"img"
>
{{
item
.
contentZh
}}
</div>
<div
v-html=
"i
sChinese ? item.contentZh : item.contentEn"
class=
"img"
>
</div>
</el-collapse-item>
</el-collapse-item>
</div>
</div>
</el-collapse>
</el-collapse>
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getInternalHelpDocPage
}
from
"
@/api/system/internalHelpDoc
"
;
import
{
getInternalHelpDoc
,
getInternalHelpDocPage
}
from
"
@/api/system/internalHelpDoc
"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -22,9 +22,23 @@ export default {
...
@@ -22,9 +22,23 @@ export default {
created
()
{
created
()
{
getInternalHelpDocPage
({
pageNo
:
1
,
pageSize
:
100
}).
then
((
r
)
=>
{
getInternalHelpDocPage
({
pageNo
:
1
,
pageSize
:
100
}).
then
((
r
)
=>
{
this
.
helpData
=
r
.
data
.
list
this
.
helpData
=
r
.
data
.
list
this
.
activeNames
=
this
.
helpData
.
map
(
m
=>
{
return
m
.
id
})
})
})
},
methods
:
{
handleChange
(
val
)
{
console
.
log
(
val
)
if
(
val
.
length
>
0
&&!
this
.
helpData
[
val
].
contentZh
&&
!
this
.
helpData
[
val
].
contentEn
){
getInternalHelpDoc
(
this
.
helpData
[
val
].
id
).
then
(
r
=>
{
this
.
$set
(
this
.
helpData
,
val
,
r
.
data
)
})
}
}
}
},
computed
:{
isChinese
(){
return
this
.
$i18n
.
locale
===
'
zh_CN
'
}
},
}
}
</
script
>
</
script
>
...
...
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