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
ebd63647
authored
2020-10-27 14:33:20 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
重新加载局部刷新
1 parent
08543a78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
src/App.vue
src/views/systemZRZ/zrzxx/index.vue
src/App.vue
View file @
ebd6364
<
template
>
<div
id=
"app"
>
<router-view
/>
<router-view
v-if=
"isRouterAlive"
/>
</div>
</
template
>
<
script
>
export
default
{
provide
(){
return
{
reload
:
this
.
reload
}
},
data
(){
return
{
isRouterAlive
:
true
,
}
},
mounted
()
{
window
.
addEventListener
(
"unload"
,
this
.
saveState
);
},
...
...
@@ -13,6 +23,12 @@ export default {
saveState
()
{
sessionStorage
.
setItem
(
"state"
,
JSON
.
stringify
(
this
.
$store
.
state
));
},
reload
(){
this
.
isRouterAlive
=
false
;
this
.
$nextTick
(
function
()
{
this
.
isRouterAlive
=
true
;
})
},
},
};
</
script
>
...
...
src/views/systemZRZ/zrzxx/index.vue
View file @
ebd6364
...
...
@@ -277,6 +277,7 @@
Qlr
,
Qlxz
,
},
inject
:[
'reload'
],
data
()
{
return
{
lx
:
"zrz"
,
...
...
@@ -484,7 +485,7 @@
// this.form.xmmc=this.$store.xmmc;
this
.
form
.
zrzbsm
=
this
.
$route
.
query
.
bsm
;
this
.
getZddm
(
this
.
$store
.
zdbsm
);
this
.
getZrzDetailByBsm
(
this
.
$route
.
query
.
bsm
)
}
else
{
this
.
bsm
=
this
.
$route
.
query
.
bsm
;
this
.
form
.
zrzbsm
=
this
.
$route
.
query
.
bsm
;
...
...
@@ -494,7 +495,17 @@
this
.
getZrzDetailByBsm
(
this
.
$route
.
query
.
bsm
)
}
},
mounted
()
{}
mounted
()
{},
computed
:
{
zrzbsm
()
{
return
this
.
$store
.
state
.
zdbsm
;
},
},
watch
:{
zrzbsm
:
function
(
val
)
{
this
.
reload
()
}
}
}
</
script
>
<
style
rel=
"stylesheet/less"
lang=
"less"
scoped
>
...
...
Please
register
or
sign in
to post a comment