Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
Overview
Overview
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
platform
hg-front
Commits
31c23412
Commit
31c23412
authored
Oct 15, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能优化
parent
4eea2003
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
edit.vue
pages/document/edit.vue
+5
-0
files.vue
pages/document/files.vue
+13
-6
No files found.
pages/document/edit.vue
View file @
31c23412
...
...
@@ -133,6 +133,7 @@
hostUrl
:
config
.
hostUrl
,
id
:
''
,
fileId
:
''
,
projCode
:
''
,
minDate
:
moment
().
subtract
(
1
,
'M'
).
format
(
"YYYY-MM-DD"
),
content
:
""
,
addStatus
:
false
,
...
...
@@ -153,6 +154,9 @@
if
(
option
&&
option
.
fileId
)
{
this
.
fileId
=
option
.
fileId
}
if
(
option
&&
option
.
projCode
)
{
this
.
projCode
=
option
.
projCode
}
this
.
onLoading
()
},
methods
:
{
...
...
@@ -247,6 +251,7 @@
id
:
this
.
id
,
docId
:
this
.
docId
,
fileId
:
this
.
fileId
,
projCode
:
this
.
projCode
,
bizType
:
"WD"
}).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
...
...
pages/document/files.vue
View file @
31c23412
...
...
@@ -294,7 +294,8 @@
this
.
folderList
.
push
({
code
:
option
[
'code'
+
num
],
name
:
option
[
'name'
+
num
],
leaf
:
option
[
'leaf'
+
num
]
leaf
:
option
[
'leaf'
+
num
],
projCode
:
this
.
$route
.
query
[
'projCode'
+
num
]
})
}
}
...
...
@@ -309,7 +310,8 @@
this
.
folderList
.
push
({
code
:
this
.
$route
.
query
[
'code'
+
num
],
name
:
this
.
$route
.
query
[
'name'
+
num
],
leaf
:
this
.
$route
.
query
[
'leaf'
+
num
]
leaf
:
this
.
$route
.
query
[
'leaf'
+
num
],
projCode
:
this
.
$route
.
query
[
'projCode'
+
num
]
})
}
}
...
...
@@ -377,7 +379,8 @@
getList
({
...
this
.
queryData
,
parentId
:
lastObj
.
code
,
fileId
:
lastObj
.
code
fileId
:
lastObj
.
code
,
projCode
:
lastObj
.
projCode
},{
...
this
.
pageData
,
orderBy
:
this
.
orderBy
...
...
@@ -410,7 +413,7 @@
},
onNavToOrderInfo
(
val
)
{
uni
.
navigateTo
({
url
:
`/pages/document/edit?id=
${
val
.
id
}
&docId=
${
val
.
docId
}
&fileId=
${
val
.
fileId
}
`
url
:
`/pages/document/edit?id=
${
val
.
id
}
&docId=
${
val
.
docId
}
&fileId=
${
val
.
fileId
}
&projCode=
${
val
.
projCode
}
`
})
},
onGetFolder
()
{
...
...
@@ -430,11 +433,15 @@
this
.
folderList
.
push
({
code
:
val
.
label
,
name
:
val
.
text
,
leaf
:
val
.
leaf
leaf
:
val
.
leaf
,
projCode
:
val
.
projCode
})
console
.
log
(
this
.
folderList
,
99999
)
let
str
=
''
;
this
.
folderList
.
forEach
((
item
,
k
)
=>
{
str
+=
`&code
${
k
+
1
}
=
${
item
.
code
}
&name
${
k
+
1
}
=
${
item
.
name
}
&leaf
${
k
+
1
}
=
${
item
.
leaf
}
`
str
+=
`&code
${
k
+
1
}
=
${
item
.
code
}
&name
${
k
+
1
}
=
${
item
.
name
}
&leaf
${
k
+
1
}
=
${
item
.
leaf
}
&projCode
${
k
+
1
}
=
${
item
.
projCode
||
''
}
`
})
uni
.
navigateTo
({
url
:
`/pages/document/files?level=
${
this
.
folderList
.
length
}${
str
}
`
...
...
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