Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
6f92e1e6
Commit
6f92e1e6
authored
Jun 08, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-bugfix' into 'dev'
bugfix See merge request apaas/apaas-system-ui!7
parents
6a41be2d
b11275ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/page/main/support/document-type/index.vue
src/page/main/support/document-type/index.vue
+7
-4
No files found.
src/page/main/support/document-type/index.vue
View file @
6f92e1e6
...
...
@@ -174,7 +174,7 @@
<
script
setup
>
import
{
Search
}
from
"
@element-plus/icons-vue
"
;
import
{
watch
,
nextTick
,
reactive
,
toRefs
,
ref
,
computed
,
onBeforeMount
}
from
"
vue
"
;
import
{
useRoute
,
useRoute
r
}
from
"
vue-router
"
;
import
{
useRouter
}
from
"
vue-router
"
;
import
axios
from
"
@/request/http.js
"
;
import
{
topId
}
from
"
../helper.js
"
;
import
{
ElMessage
}
from
"
element-plus
"
;
...
...
@@ -292,7 +292,6 @@ const filterClear = () => {
changePage
(
1
);
};
const
router
=
useRouter
();
const
getTableRows
=
()
=>
{
let
params
=
{
...
state
.
filter
,
...
...
@@ -304,7 +303,10 @@ const getTableRows = () => {
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
200
)
{
state
.
tableRows
=
res
.
data
.
data
||
[];
state
.
tableRows
=
(
res
.
data
.
data
||
[]).
map
((
item
)
=>
({
...
item
,
parent_classify_name
:
item
.
parent_id
===
topId
?
"
平台公开
"
:
item
.
parent_classify_name
,
}));
state
.
tableTotal
=
res
.
data
.
total
;
}
else
{
ElMessage
.
error
(
res
.
data
.
data
);
...
...
@@ -417,7 +419,7 @@ const editCurType = async (row) => {
state
.
formData
=
{
parent_id
:
data
.
parent_id
===
topId
?
"
topLevel
"
:
data
.
parent_id
,
classify_name
:
data
.
classify_name
,
sort
:
data
.
sort
,
sort
:
data
.
sort
===
0
?
""
:
data
.
sort
,
describe
:
data
.
describe
,
is_active
:
data
.
is_active
,
};
...
...
@@ -436,6 +438,7 @@ const confirmForm = () => {
let
params
=
{
...
state
.
formData
,
parent_id
:
state
.
formData
.
parent_id
!==
"
topLevel
"
?
state
.
formData
.
parent_id
:
""
,
sort
:
state
.
formData
.
sort
===
""
?
undefined
:
state
.
formData
.
sort
,
};
if
(
state
.
formDialogConfig
.
type
===
"
update
"
)
{
params
=
{
...
params
,
id
:
state
.
selectedRow
.
id
};
...
...
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