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
Hide 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 @@
...
@@ -133,6 +133,7 @@
hostUrl
:
config
.
hostUrl
,
hostUrl
:
config
.
hostUrl
,
id
:
''
,
id
:
''
,
fileId
:
''
,
fileId
:
''
,
projCode
:
''
,
minDate
:
moment
().
subtract
(
1
,
'M'
).
format
(
"YYYY-MM-DD"
),
minDate
:
moment
().
subtract
(
1
,
'M'
).
format
(
"YYYY-MM-DD"
),
content
:
""
,
content
:
""
,
addStatus
:
false
,
addStatus
:
false
,
...
@@ -153,6 +154,9 @@
...
@@ -153,6 +154,9 @@
if
(
option
&&
option
.
fileId
)
{
if
(
option
&&
option
.
fileId
)
{
this
.
fileId
=
option
.
fileId
this
.
fileId
=
option
.
fileId
}
}
if
(
option
&&
option
.
projCode
)
{
this
.
projCode
=
option
.
projCode
}
this
.
onLoading
()
this
.
onLoading
()
},
},
methods
:
{
methods
:
{
...
@@ -247,6 +251,7 @@
...
@@ -247,6 +251,7 @@
id
:
this
.
id
,
id
:
this
.
id
,
docId
:
this
.
docId
,
docId
:
this
.
docId
,
fileId
:
this
.
fileId
,
fileId
:
this
.
fileId
,
projCode
:
this
.
projCode
,
bizType
:
"WD"
bizType
:
"WD"
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
...
...
pages/document/files.vue
View file @
31c23412
...
@@ -294,7 +294,8 @@
...
@@ -294,7 +294,8 @@
this
.
folderList
.
push
({
this
.
folderList
.
push
({
code
:
option
[
'code'
+
num
],
code
:
option
[
'code'
+
num
],
name
:
option
[
'name'
+
num
],
name
:
option
[
'name'
+
num
],
leaf
:
option
[
'leaf'
+
num
]
leaf
:
option
[
'leaf'
+
num
],
projCode
:
this
.
$route
.
query
[
'projCode'
+
num
]
})
})
}
}
}
}
...
@@ -309,7 +310,8 @@
...
@@ -309,7 +310,8 @@
this
.
folderList
.
push
({
this
.
folderList
.
push
({
code
:
this
.
$route
.
query
[
'code'
+
num
],
code
:
this
.
$route
.
query
[
'code'
+
num
],
name
:
this
.
$route
.
query
[
'name'
+
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 @@
...
@@ -377,7 +379,8 @@
getList
({
getList
({
...
this
.
queryData
,
...
this
.
queryData
,
parentId
:
lastObj
.
code
,
parentId
:
lastObj
.
code
,
fileId
:
lastObj
.
code
fileId
:
lastObj
.
code
,
projCode
:
lastObj
.
projCode
},{
},{
...
this
.
pageData
,
...
this
.
pageData
,
orderBy
:
this
.
orderBy
orderBy
:
this
.
orderBy
...
@@ -410,7 +413,7 @@
...
@@ -410,7 +413,7 @@
},
},
onNavToOrderInfo
(
val
)
{
onNavToOrderInfo
(
val
)
{
uni
.
navigateTo
({
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
()
{
onGetFolder
()
{
...
@@ -430,11 +433,15 @@
...
@@ -430,11 +433,15 @@
this
.
folderList
.
push
({
this
.
folderList
.
push
({
code
:
val
.
label
,
code
:
val
.
label
,
name
:
val
.
text
,
name
:
val
.
text
,
leaf
:
val
.
leaf
leaf
:
val
.
leaf
,
projCode
:
val
.
projCode
})
})
console
.
log
(
this
.
folderList
,
99999
)
let
str
=
''
;
let
str
=
''
;
this
.
folderList
.
forEach
((
item
,
k
)
=>
{
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
({
uni
.
navigateTo
({
url
:
`/pages/document/files?level=
${
this
.
folderList
.
length
}${
str
}
`
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