Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
1e7b62fb
authored
2022-09-01 10:07:09 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
style:修改
2 parents
0660ac3c
caf34879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
25 deletions
src/views/ywbl/dbx/dbx.vue
src/views/ywbl/fqsq/fqsq.vue
src/views/ywbl/dbx/dbx.vue
View file @
1e7b62f
...
...
@@ -66,19 +66,7 @@ export default {
computed
:
{
...
mapGetters
([
'dictData'
]),
},
mounted
()
{
sendThis
(
this
);
let
that
=
this
document
.
addEventListener
(
'visibilitychange'
,
function
()
{
var
isHidden
=
document
.
hidden
;
if
(
isHidden
)
{
//切离该页面时执行
//页面切换时,处理逻辑
}
else
{
//切换到该页面时执行
console
.
log
(
'让我看看'
)
that
.
fetchData
()
}
});
},
data
()
{
return
{
...
...
@@ -99,8 +87,27 @@ export default {
},
};
},
mounted
()
{
sendThis
(
this
);
let
that
=
this
window
.
addEventListener
(
'visibilitychange'
,
this
.
init
,
true
)
},
destroyed
(){
window
.
removeEventListener
(
'visibilitychange'
,
this
.
init
,
true
)
},
created
()
{
},
methods
:
{
init
(
e
){
var
isHidden
=
document
.
hidden
;
if
(
isHidden
)
{
//切离该页面时执行
//页面切换时,处理逻辑
}
else
{
//切换到该页面时执行
if
(
window
.
location
.
hash
==
'#/ywbl/dbx'
){
console
.
log
(
'让我看看'
,
window
.
location
)
that
.
fetchData
()
}
}
},
// 列表渲染接口
fetchData
()
{
searchTaskToDo
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
(
res
=>
{
...
...
src/views/ywbl/fqsq/fqsq.vue
View file @
1e7b62f
...
...
@@ -16,19 +16,21 @@
</ul>
</div>
<div
class=
"tabsList"
>
<div
class=
"tabsList-left"
>
<div
class=
"map-drawer-click"
v-if=
'!isShowdrawer'
@
click=
"() =>
{
this.isShowdrawer = !this.isShowdrawer;
}">
</div>
<div
class=
"map-drawer-expand"
v-else
@
click=
"() =>
{
this.isShowdrawer = !this.isShowdrawer;
}">
</div>
<div
class=
"tabsList-left"
>
<div
class=
"map-drawer-click"
v-if=
'!isShowdrawer'
@
click=
" () =>
{
this.isShowdrawer = !this.isShowdrawer;}">
</div>
<div
class=
"map-drawer-expand"
v-else
@
click=
" () =>
{
this.isShowdrawer = !this.isShowdrawer;}">
</div>
<ul
v-if=
'this.isShowdrawer'
>
<p>
受理单元列表(
{{
unitData
.
length
}}
)
</p>
<div
v-for=
'(item,
index) in unitData'
:key=
'index'
>
<li
@
click=
'unitClick(item)'
>
{{
item
.
bdcdyh
}}
</li>
<p>
受理单元列表(
{{
unitData
.
length
}}
)
</p>
<div
v-for=
'(item,index) in unitData'
:key=
'index'
>
<li
@
click=
'unitClick(item)'
>
{{
item
.
bdcdyh
}}
</li>
<div
class=
"xian"
></div>
</div>
</ul>
...
...
Please
register
or
sign in
to post a comment