Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
ce49bcff
Commit
ce49bcff
authored
May 18, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据错乱问题
parent
6cde5207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
index.vue
take-order/pages/photo/index.vue
+2
-3
preview.vue
take-order/pages/photo/preview.vue
+2
-2
No files found.
take-order/pages/photo/index.vue
View file @
ce49bcff
...
...
@@ -2,7 +2,7 @@
<view
class=
"backView"
>
<view
class=
"ph-pr-arr"
v-for=
"(dataItem, index) in list"
:key=
"index"
>
<template
v-if=
"dataItem.data.length > 0"
>
<view
class=
"topTitle"
><text
class=
"topFont"
>
{{
dataItem
.
title
}}
</text><text>
(不同系统对应不同
模板
)
</text></view>
<view
class=
"topTitle"
><text
class=
"topFont"
>
{{
dataItem
.
title
}}
</text><text>
(不同系统对应不同
水印
)
</text></view>
<view
class=
"ph-pr-content"
>
<view
v-for=
"(item,ikey) in dataItem.data"
:class=
"param[dataItem.type] === item.id ? 'select-item-view' : 'item-view'"
...
...
@@ -111,13 +111,12 @@
//选择 点击
itemClick
:
function
(
type
,
item
,
ikey
)
{
switch
(
type
)
{
case
'classifyId'
:
this
.
param
=
{
classifyId
:
item
.
id
,
systemId
:
''
,
brandId
:
''
brandId
:
''
,
}
this
.
selectedAll
=
false
this
.
systemList
=
this
.
classifyList
[
ikey
].
child
...
...
take-order/pages/photo/preview.vue
View file @
ce49bcff
...
...
@@ -111,14 +111,14 @@
const
currentItem
=
photo
.
currentItem
currentItem
.
imageList
.
unshift
(
path
)
// 从缓存数据中找到修改对象并替换
const
data
=
cache
.
getCache
(
currentItem
.
system_i
d
)
const
data
=
cache
.
getCache
(
photo
.
product
.
systemI
d
)
data
.
result
.
forEach
(
v
=>
{
const
index
=
v
.
list
.
findIndex
(
item
=>
item
.
_id
===
currentItem
.
_id
)
if
(
index
>
-
1
)
{
v
.
list
[
index
]
=
currentItem
}
})
cache
.
setCache
(
currentItem
.
system_i
d
,
data
)
cache
.
setCache
(
photo
.
product
.
systemI
d
,
data
)
},
saveLocal
(
path
){
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
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