Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d9ecb329
authored
2020-10-19 20:00:44 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建流程修改
1 parent
438df8cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
32 deletions
src/views/Home.vue
src/views/panel/create/index.vue
src/views/Home.vue
View file @
d9ecb32
...
...
@@ -32,10 +32,23 @@
<span>
{{
item
.
name
}}
</span>
</div>
<div
class=
"top-items"
>
<el-menu
:default-active=
"activeIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
:router=
"true"
>
<el-menu
:default-active=
"activeIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
:router=
"true"
>
<el-submenu
index=
"2"
>
<template
slot=
"title"
>
临时网页开发路由跳转
</
template
>
<el-menu-item
v-for=
"(item,index) in tempTab"
:index=
"item.path"
:key=
"'tempTab'+index"
>
{{item.name}}
</el-menu-item>
<template
slot=
"title"
>
临时网页开发路由跳转
</
template
>
<el-menu-item
v-for=
"(item, index) in tempTab"
:index=
"item.path"
:key=
"'tempTab' + index"
>
{{ item.name }}
</el-menu-item
>
</el-submenu>
</el-menu>
</div>
...
...
@@ -43,6 +56,13 @@
<div
class=
"header-bottom"
>
<Navigation
ref=
"navigation"
></Navigation>
</div>
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<Create
@
closeDialog=
"closeDialog"
></Create>
</el-dialog>
</el-header>
<el-main>
<router-view
/>
...
...
@@ -55,16 +75,18 @@
import
util
from
"@/libs/util.js"
;
import
screenfull
from
"screenfull"
;
import
Navigation
from
"../components/IvyElement/navigation"
;
import
Create
from
"./panel/create/index"
;
import
LineTree
from
"../components/lineTree/lineTree"
;
import
{
setTimeout
}
from
"timers"
;
export
default
{
components
:
{
Navigation
,
LineTree
,
Create
,
},
data
()
{
return
{
activeIndex
:
'1'
,
activeIndex
:
"1"
,
navigationList
:
[],
isActive
:
false
,
textLogo
:
false
,
...
...
@@ -72,43 +94,43 @@ export default {
defaultActive
:
""
,
headTop
:
[
{
path
:
"/create"
,
path
:
"/create"
,
select
:
false
,
},
{
path
:
"/add"
,
path
:
"/add"
,
select
:
false
,
},
{
path
:
"/modify"
,
path
:
"/modify"
,
select
:
false
,
},
{
path
:
"/change"
,
path
:
"/change"
,
select
:
false
,
},
{
path
:
"/search"
,
path
:
"/search"
,
select
:
false
,
}
}
,
],
tempTab
:[
tempTab
:
[
{
path
:
'/zrz'
,
name
:
'自然幢'
path
:
"/zrz"
,
name
:
"自然幢"
,
},
{
path
:
'/dz'
,
name
:
'多幢'
path
:
"/dz"
,
name
:
"多幢"
,
},
{
path
:
'/h'
,
name
:
'户'
path
:
"/h"
,
name
:
"户"
,
},
{
path
:
'/zd'
,
name
:
'宗地'
}
path
:
"/zd"
,
name
:
"宗地"
,
}
,
],
// 上导航选中id
indId
:
undefined
,
...
...
@@ -144,14 +166,14 @@ export default {
children
:
[
{
label
:
"宗地代码1933"
,
isZD
:
true
isZD
:
true
,
},
{
label
:
"自然幢2100"
,
isZD
:
false
isZD
:
false
,
},
],
}
}
,
],
},
{
...
...
@@ -177,6 +199,7 @@ export default {
children
:
[],
},
],
dialogVisible
:
false
,
};
},
computed
:
{
...
...
@@ -264,13 +287,19 @@ export default {
}
},
selectTopItems
(
ind
)
{
this
.
indId
=
ind
;
// this.menuSelect(this.navigationList, ind);
// this.$store.dispatch("setTabs/init_tabs");
// this.$store.dispatch("setTabs/set_active_index", "/panel");
this
.
$router
.
push
(
this
.
headTop
[
ind
].
path
);
this
.
navSelect
(
ind
);
// util.cookies.set("indId", ind);
if
(
ind
==
0
)
{
//点击新建,弹框
this
.
dialogVisible
=
true
;
}
else
{
this
.
dialogVisible
=
false
;
this
.
indId
=
ind
;
// this.menuSelect(this.navigationList, ind);
// this.$store.dispatch("setTabs/init_tabs");
// this.$store.dispatch("setTabs/set_active_index", "/panel");
this
.
$router
.
push
(
this
.
headTop
[
ind
].
path
);
this
.
navSelect
(
ind
);
// util.cookies.set("indId", ind);
}
},
// 上导航选中id
navSelect
(
id
)
{
...
...
@@ -290,11 +319,15 @@ export default {
screenfull
.
toggle
();
},
//树控件点击事件
itemClick
(
data
){
itemClick
(
data
)
{
console
.
log
(
data
);
},
handleSelect
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
);
},
//关闭新建子组件弹框
closeDialog
(){
this
.
dialogVisible
=
false
;
}
},
};
...
...
@@ -399,7 +432,7 @@ export default {
}
.el-main
{
background-color
:
#
F1F4FC
;
background-color
:
#
f1f4fc
;
color
:
#333
;
//
text-align
:
center
;
//
line-height
:
160px
;
...
...
src/views/panel/create/index.vue
View file @
d9ecb32
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment