Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
8fe4b8a8
Commit
8fe4b8a8
authored
Sep 08, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
774acafe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
index.vue
src/pages/Groupmeal/Marketing/index.vue
+9
-2
No files found.
src/pages/Groupmeal/Marketing/index.vue
View file @
8fe4b8a8
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
required
:
true
,
required
:
true
,
message
:
"不能为空"
,
message
:
"不能为空"
,
trigger
:
"change"
,
trigger
:
"change"
,
validator
:
levelConfig
,
//
validator: levelConfig,
},
},
],
],
},
},
...
@@ -240,7 +240,6 @@
...
@@ -240,7 +240,6 @@
result
:
res
.
result
.
list
,
result
:
res
.
result
.
list
,
date
:
moment
(
new
Date
()).
format
(
"YYYY-MM-DD"
),
date
:
moment
(
new
Date
()).
format
(
"YYYY-MM-DD"
),
};
};
console
.
log
(
"this.configForm"
,
this
.
configForm
);
this
.
showConfigDialog
=
true
;
this
.
showConfigDialog
=
true
;
},
},
async
timeChange
(
val
)
{
async
timeChange
(
val
)
{
...
@@ -262,6 +261,14 @@
...
@@ -262,6 +261,14 @@
},
},
async
handleSaveConfig
()
{
async
handleSaveConfig
()
{
this
.
configForm
.
result
.
map
((
item
,
index
)
=>
(
item
.
level
=
index
+
1
));
this
.
configForm
.
result
.
map
((
item
,
index
)
=>
(
item
.
level
=
index
+
1
));
console
.
log
(
"this.listParams.config"
,
this
.
configForm
.
result
);
this
.
configForm
.
result
.
reduce
((
pre
,
cur
)
=>
{
console
.
log
(
"pre"
,
pre
);
console
.
log
(
"cur"
,
cur
);
if
(
pre
.
assess_order_num
>
cur
.
assess_order_num
||
pre
.
reward_amount
>
cur
.
reward_amount
)
{
return
this
.
$message
.
error
(
"请输入比上一档位大的考核单量"
);
}
},
this
.
configForm
.
result
[
0
]);
this
.
listParams
.
config
=
JSON
.
stringify
(
this
.
configForm
.
result
);
this
.
listParams
.
config
=
JSON
.
stringify
(
this
.
configForm
.
result
);
this
.
listParams
.
date
=
this
.
configForm
.
date
;
this
.
listParams
.
date
=
this
.
configForm
.
date
;
let
res
=
await
yingxiaoSaveConfig
(
this
.
listParams
);
let
res
=
await
yingxiaoSaveConfig
(
this
.
listParams
);
...
...
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