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
ceff8c49
Commit
ceff8c49
authored
Sep 03, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:自提点地址+活动配置日期格式
parent
dc24f027
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
181 additions
and
21 deletions
+181
-21
index.vue
src/pages/Groupmeal/Marketing/index.vue
+10
-4
index.vue
src/pages/Groupmeal/headManagement/index.vue
+171
-17
No files found.
src/pages/Groupmeal/Marketing/index.vue
View file @
ceff8c49
...
@@ -32,14 +32,20 @@
...
@@ -32,14 +32,20 @@
<el-button
type=
"text"
@
click=
"handleActivityOnline(scope.row)"
>
<el-button
type=
"text"
@
click=
"handleActivityOnline(scope.row)"
>
{{
scope
.
row
.
online_status
==
1
?
"活动下线"
:
"活动上线"
}}
{{
scope
.
row
.
online_status
==
1
?
"活动下线"
:
"活动上线"
}}
</el-button>
</el-button>
<el-button
type=
"text"
@
click=
"handleConfig(scope.row)"
>
活动配置
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.marketing_type == 6"
@
click=
"handleConfig(scope.row)"
>
活动配置
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-dialog
title=
"活动配置-团长分销"
v-model=
"showConfigDialog"
width=
"50%"
top=
"2%"
center
>
<el-dialog
title=
"活动配置-团长分销"
v-model=
"showConfigDialog"
width=
"50%"
top=
"2%"
center
>
<el-form
:model=
"configForm"
:rules=
"rules"
>
<el-form
:model=
"configForm"
:rules=
"rules"
>
<el-form-item
label=
"设置时间:"
>
<el-form-item
label=
"设置时间:"
>
<el-date-picker
v-model=
"configForm.date"
type=
"datetime"
@
change=
"timeChange"
placeholder=
"请设置时间"
></el-date-picker>
<el-date-picker
v-model=
"configForm.date"
type=
"datetime"
@
change=
"timeChange"
format=
"YYYY-MM-DD"
placeholder=
"请设置时间"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
class=
"config"
class=
"config"
...
@@ -198,7 +204,7 @@
...
@@ -198,7 +204,7 @@
},
},
async
handleConfig
(
item
)
{
async
handleConfig
(
item
)
{
this
.
listParams
.
marketing_id
=
item
.
marketing_id
;
this
.
listParams
.
marketing_id
=
item
.
marketing_id
;
let
res
=
await
yingxiaoConfig
({
date
:
moment
(
new
Date
()).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
});
let
res
=
await
yingxiaoConfig
({
date
:
moment
(
new
Date
()).
format
(
"YYYY-MM-DD"
)
});
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
else
this
.
$message
.
success
(
"操作成功"
);
else
this
.
$message
.
success
(
"操作成功"
);
this
.
configForm
=
{
this
.
configForm
=
{
...
@@ -209,7 +215,7 @@
...
@@ -209,7 +215,7 @@
this
.
showConfigDialog
=
true
;
this
.
showConfigDialog
=
true
;
},
},
async
timeChange
(
val
)
{
async
timeChange
(
val
)
{
let
res
=
await
yingxiaoConfig
({
date
:
moment
(
val
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
});
let
res
=
await
yingxiaoConfig
({
date
:
moment
(
val
).
format
(
"YYYY-MM-DD"
)
});
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
configForm
=
{
this
.
configForm
=
{
result
:
res
.
result
.
list
,
result
:
res
.
result
.
list
,
...
...
src/pages/Groupmeal/headManagement/index.vue
View file @
ceff8c49
This diff is collapsed.
Click to expand it.
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