Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
232d624c
Commit
232d624c
authored
Apr 02, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品报错,bug修复2
parent
6d9de9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
index.vue
src/views/ecw/product/index.vue
+5
-4
No files found.
src/views/ecw/product/index.vue
View file @
232d624c
...
@@ -221,11 +221,11 @@
...
@@ -221,11 +221,11 @@
<!-- <el-option v-for="item in preferentialList" :value="item.couponId" :label="item.titleZh" :key="item.couponId" :disabled="item.mandatory">{{item.titleZh}}</el-option>-->
<!-- <el-option v-for="item in preferentialList" :value="item.couponId" :label="item.titleZh" :key="item.couponId" :disabled="item.mandatory">{{item.titleZh}}</el-option>-->
<!-- </el-select>-->
<!-- </el-select>-->
<div
style=
"width: 300px;height: 400px;border: 1px solid;overflow-y: auto"
>
<div
style=
"width: 300px;height: 400px;border: 1px solid;overflow-y: auto"
>
<div
@
click=
"selectMoveAbout(item)"
style=
"display: flex;justify-content: space-between; align-items: center;"
:style=
"{'cursor':item.mandatory ? 'no-drop' : 'pointer' }"
v-for=
"item in preferentialList"
>
<div
@
click=
"selectMoveAbout(item)"
style=
"display: flex;justify-content: space-between; align-items: center;"
:style=
"{'cursor':item.mandatory ? 'no-drop' : 'pointer' }"
v-for=
"item in preferentialList"
:key=
"item.couponId"
>
<div>
<div>
{{$l(item, 'title')}}
{{$l(item, 'title')}}
</div>
</div>
<i
v-if=
"form.couponIds.includes(item.couponId)"
style=
"margin-right: 20px;"
class=
"el-icon-check"
></i>
<i
v-if=
"form.couponIds.includes(item.couponId)"
style=
"margin-right: 20px;"
class=
"el-icon-check"
></i>
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -609,9 +609,8 @@ export default {
...
@@ -609,9 +609,8 @@ export default {
});
});
},
},
selectMoveAbout
(
val
){
selectMoveAbout
(
val
){
console
.
log
(
val
,
'
val
'
)
if
(
!
val
.
mandatory
){
if
(
!
val
.
mandatory
){
let
index
=
this
.
form
.
couponIds
.
findIndex
(
i
=>
val
.
couponId
==
i
)
let
index
=
this
.
form
.
couponIds
.
findIndex
(
i
=>
val
.
couponId
==
i
)
if
(
index
>=
0
){
if
(
index
>=
0
){
this
.
$confirm
(
this
.
$t
(
`您确定要将商品从优惠活动
${
this
.
$l
(
val
,
'
title
'
)}
中移出吗?`
),
this
.
$t
(
'
提示
'
),
{
this
.
$confirm
(
this
.
$t
(
`您确定要将商品从优惠活动
${
this
.
$l
(
val
,
'
title
'
)}
中移出吗?`
),
this
.
$t
(
'
提示
'
),
{
confirmButtonText
:
this
.
$t
(
'
确定
'
),
confirmButtonText
:
this
.
$t
(
'
确定
'
),
...
@@ -619,6 +618,7 @@ export default {
...
@@ -619,6 +618,7 @@ export default {
type
:
'
warning
'
type
:
'
warning
'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
form
.
couponIds
.
splice
(
index
,
1
)
this
.
form
.
couponIds
.
splice
(
index
,
1
)
this
.
$forceUpdate
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
...
@@ -629,6 +629,7 @@ export default {
...
@@ -629,6 +629,7 @@ export default {
type
:
'
warning
'
type
:
'
warning
'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
form
.
couponIds
.
push
(
val
.
couponId
)
this
.
form
.
couponIds
.
push
(
val
.
couponId
)
this
.
$forceUpdate
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
});
});
...
...
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