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
c680230a
authored
2020-12-15 16:09:58 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据不重复加载
1 parent
4168bcde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
src/views/zrz/lpb/xxxx/index.vue
src/views/zrz/lpb/xxxx/index.vue
View file @
c680230
...
...
@@ -70,6 +70,8 @@ export default {
data
(){
return
{
tableData
:
[],
scData
:[],
ycData
:[],
scyclx
:
'0'
,
}
},
...
...
@@ -80,7 +82,11 @@ export default {
methods
:{
scyclxChange
(){
this
.
getData
();
if
(
this
.
scyclx
===
'0'
){
this
.
tableData
=
this
.
ycData
;
}
else
{
this
.
tableData
=
this
.
scData
;
}
},
chFilter
(
row
,
column
){
...
...
@@ -101,11 +107,18 @@ export default {
getData
(){
let
zrzbsm
=
this
.
$store
.
state
.
zrzbsm
;
let
scyclx
=
this
.
scyclx
;
getDetailInfo
(
zrzbsm
,
scyclx
).
then
((
res
)
=>
{
// let scyclx = this.scyclx;
getDetailInfo
(
zrzbsm
,
'0'
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
console
.
log
(
res
.
result
)
this
.
ycData
=
res
.
result
;
this
.
tableData
=
this
.
ycData
;
}
});
getDetailInfo
(
zrzbsm
,
'1'
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
console
.
log
(
res
.
result
)
this
.
table
Data
=
res
.
result
;
this
.
sc
Data
=
res
.
result
;
}
})
},
...
...
Please
register
or
sign in
to post a comment