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
891ffa99
Commit
891ffa99
authored
Sep 23, 2021
by
gengshaojing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 自提点管理
parent
ad9d1923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
pointDialog.vue
src/pages/Groupmeal/Point/components/pointDialog.vue
+6
-8
No files found.
src/pages/Groupmeal/Point/components/pointDialog.vue
View file @
891ffa99
...
...
@@ -39,12 +39,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"时间要求"
class=
"form_item"
>
<el-date-picker
v-model=
"addForm.lunch_deliver_time"
format=
"YYYY-MM-DD HH:mm"
type=
"datetime"
placeholder=
"选择日期时间"
></el-date-picker>
<el-time-picker
v-model=
"addForm.lunch_deliver_time"
format=
"HH:mm"
type=
"datetime"
placeholder=
"选择日期时间"
></el-time-picker>
</el-form-item>
</el-form>
...
...
@@ -148,7 +143,7 @@
const
obSubmit
=
()
=>
{
console
.
log
(
"obSubmit"
);
console
.
log
(
dataMap
.
addForm
.
lunch_deliver_time
);
console
.
log
(
dayjs
(
dataMap
.
addForm
.
lunch_deliver_time
).
format
(
"
YYYY-MM-DD
HH:mm"
));
console
.
log
(
dayjs
(
dataMap
.
addForm
.
lunch_deliver_time
).
format
(
"HH:mm"
));
addFormRef
.
value
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
dataMap
.
onSaveLoading
=
true
;
...
...
@@ -156,7 +151,7 @@
try
{
const
params
=
Object
.
assign
({},
dataMap
.
addForm
);
console
.
log
(
params
);
params
.
lunch_deliver_time
=
dayjs
(
dataMap
.
addForm
.
lunch_deliver_time
).
format
(
"
YYYY-MM-DD
HH:mm"
);
params
.
lunch_deliver_time
=
dayjs
(
dataMap
.
addForm
.
lunch_deliver_time
).
format
(
"HH:mm"
);
const
res
=
await
ActivityService
.
addPlace
(
params
);
console
.
log
(
res
);
ElMessage
.
success
(
"添加成功"
);
...
...
@@ -190,6 +185,9 @@
dataMap
.
comDialogVisible
=
false
;
emit
(
"closeDialog"
);
dataMap
.
addForm
.
tag_id
=
""
;
dataMap
.
addForm
.
lunch_deliver_time
=
""
;
addFormRef
.
value
&&
addFormRef
.
value
.
clearValidate
();
// 重置表单
addFormRef
.
value
&&
addFormRef
.
value
.
resetFields
();
// 重置表单
};
...
...
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