Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xgdlapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
xgdlapp
Commits
1c905e98
Commit
1c905e98
authored
Jul 24, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新后保持当前已选的数据根据是否存在来确定是否改变
parent
0a2b5837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
index.vue
pages/dl_cmaterial/index.vue
+20
-4
No files found.
pages/dl_cmaterial/index.vue
View file @
1c905e98
...
@@ -239,11 +239,25 @@
...
@@ -239,11 +239,25 @@
if
(
res
&&
res
.
records
){
if
(
res
&&
res
.
records
){
const
{
records
}
=
res
const
{
records
}
=
res
/* 铺数据 */
/* 铺数据 */
this
.
ppdInfo
.
ph
=
records
.
ph
||
null
this
.
ppdInfo
.
psjhList
=
records
.
psjhList
||
[]
if
(
this
.
ppdInfo
.
ph
){
let
phiscf
=
false
this
.
ppdInfo
.
psjhList
.
forEach
(
item
=>
{
if
(
item
.
ph
==
this
.
ppdInfo
.
ph
){
phiscf
=
true
}
})
if
(
!
phiscf
){
this
.
ppdInfo
.
ph
=
records
.
ph
||
null
}
}
else
{
this
.
ppdInfo
.
ph
=
records
.
ph
||
null
}
this
.
ppdInfo
.
wodjid
=
records
.
wodjid
||
null
this
.
ppdInfo
.
wodjid
=
records
.
wodjid
||
null
if
(
records
.
upptzdList
[
0
]){
if
(
records
.
upptzdList
[
0
]){
this
.
ppdInfo
.
djid
=
records
.
upptzdList
[
0
].
djid
//
this.ppdInfo.djid=records.upptzdList[0].djid
this
.
ppdInfo
.
pptzdid
=
records
.
upptzdList
[
0
].
id
//
this.ppdInfo.pptzdid=records.upptzdList[0].id
}
else
{
}
else
{
this
.
ppdInfo
.
djid
=
null
this
.
ppdInfo
.
djid
=
null
}
}
...
@@ -254,7 +268,7 @@
...
@@ -254,7 +268,7 @@
}
}
this
.
ppdInfo
.
upptzdList
=
records
.
upptzdList
||
[]
this
.
ppdInfo
.
upptzdList
=
records
.
upptzdList
||
[]
this
.
ppdInfo
.
wlxxList
=
records
.
wlxxList
||
[]
this
.
ppdInfo
.
wlxxList
=
records
.
wlxxList
||
[]
this
.
ppdInfo
.
psjhList
=
records
.
psjhList
||
[]
/* ---初始化--- */
/* ---初始化--- */
/* upptzdList */
/* upptzdList */
let
ph
=
this
.
ppdInfo
.
ph
let
ph
=
this
.
ppdInfo
.
ph
...
@@ -604,7 +618,9 @@
...
@@ -604,7 +618,9 @@
/* 开始过滤 */
/* 开始过滤 */
let
mid
=
this
.
ppdInfo
.
pptzdid
let
mid
=
this
.
ppdInfo
.
pptzdid
let
newArr1
=
this
.
ppdInfo
.
wlxxList
.
filter
(
item
=>
{
let
newArr1
=
this
.
ppdInfo
.
wlxxList
.
filter
(
item
=>
{
if
(
item
.
mid
==
mid
){
if
(
item
.
mid
==
mid
){
console
.
log
(
item
.
mid
,
mid
)
return
item
return
item
}
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment