Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 31b3b0ba
authored
Aug 21, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉第四层下拉按钮
1 parent
cf1c4ce3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
src/routes/index.js
src/views/vehicleTypeManage/vehicleAddUpadate.vue
src/routes/index.js
View file @
31b3b0b
...
...
@@ -30,9 +30,9 @@ const routes = [
component
:
()
=>
import
(
'../views/vehicleTypeManage/index.vue'
)
},
{
path
:
'/vehicleAddUpadate'
,
path
:
'/vehicle
TypeManage/vehicle
AddUpadate'
,
name
:
'vehicleAddUpadate'
,
meta
:
{
title
:
'
新增
车型库'
},
meta
:
{
title
:
'车型库'
},
hidden
:
true
,
keepAlive
:
false
,
component
:
()
=>
import
(
'../views/vehicleTypeManage/vehicleAddUpadate.vue'
)
...
...
src/views/vehicleTypeManage/vehicleAddUpadate.vue
View file @
31b3b0b
...
...
@@ -125,6 +125,7 @@ export default {
defaultProps
:
{
children
:
"childs"
,
label
:
"name"
,
isLeaf
:
'leaf'
},
loading
:
true
,
newArr
:
[],
...
...
@@ -149,7 +150,7 @@ export default {
var
title
=
this
.
$route
.
query
.
title
;
var
id
=
this
.
$route
.
query
.
id
;
if
(
title
==
"add"
)
{
this
.
type
=
1
;
//后台区分新增,和编辑,1:新增,2:编辑
this
.
type
=
1
;
//后台
要
区分新增,和编辑,1:新增,2:编辑
}
else
if
(
title
==
"edit"
)
{
this
.
type
=
2
;
this
.
editVehicleType
({
tenantId
:
id
});
...
...
@@ -174,7 +175,7 @@ export default {
:
[];
if
(
n
&&
n
.
length
>
0
)
{
// console.log(n);
// console.log(n
,"浏览器存储"
);
_this
.
flatData
(
n
);
_this
.
showTree
=
true
;
_this
.
loading
=
false
;
...
...
@@ -289,6 +290,9 @@ export default {
(
arr
||
[]).
forEach
((
item
)
=>
{
item
.
pid
=
id
||
0
;
item
.
level
=
i
;
if
(
item
.
level
==
3
){
item
.
leaf
=
true
;
}
n
.
push
(
item
);
if
(
!
id
)
{
_this
.
treedata
.
push
(
item
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment