Commit 31b3b0ba by 李长胜

去掉第四层下拉按钮

1 parent cf1c4ce3
...@@ -30,9 +30,9 @@ const routes = [ ...@@ -30,9 +30,9 @@ const routes = [
component: () => import('../views/vehicleTypeManage/index.vue') component: () => import('../views/vehicleTypeManage/index.vue')
}, },
{ {
path: '/vehicleAddUpadate', path: '/vehicleTypeManage/vehicleAddUpadate',
name: 'vehicleAddUpadate', name: 'vehicleAddUpadate',
meta: { title: '新增车型库' }, meta: { title: '车型库' },
hidden:true, hidden:true,
keepAlive:false, keepAlive:false,
component: () => import('../views/vehicleTypeManage/vehicleAddUpadate.vue') component: () => import('../views/vehicleTypeManage/vehicleAddUpadate.vue')
......
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
defaultProps: { defaultProps: {
children: "childs", children: "childs",
label: "name", label: "name",
isLeaf: 'leaf'
}, },
loading: true, loading: true,
newArr: [], newArr: [],
...@@ -149,7 +150,7 @@ export default { ...@@ -149,7 +150,7 @@ export default {
var title = this.$route.query.title; var title = this.$route.query.title;
var id = this.$route.query.id; var id = this.$route.query.id;
if (title == "add") { if (title == "add") {
this.type = 1; //后台区分新增,和编辑,1:新增,2:编辑 this.type = 1; //后台要区分新增,和编辑,1:新增,2:编辑
} else if (title == "edit") { } else if (title == "edit") {
this.type = 2; this.type = 2;
this.editVehicleType({ tenantId: id }); this.editVehicleType({ tenantId: id });
...@@ -174,7 +175,7 @@ export default { ...@@ -174,7 +175,7 @@ export default {
: []; : [];
if (n && n.length > 0) { if (n && n.length > 0) {
// console.log(n); // console.log(n,"浏览器存储");
_this.flatData(n); _this.flatData(n);
_this.showTree = true; _this.showTree = true;
_this.loading = false; _this.loading = false;
...@@ -289,6 +290,9 @@ export default { ...@@ -289,6 +290,9 @@ export default {
(arr || []).forEach((item) => { (arr || []).forEach((item) => {
item.pid = id || 0; item.pid = id || 0;
item.level = i; item.level = i;
if(item.level==3){
item.leaf=true;
}
n.push(item); n.push(item);
if (!id) { if (!id) {
_this.treedata.push(item); _this.treedata.push(item);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!