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
82a5852f
Commit
82a5852f
authored
Jul 30, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:信息编辑商品标题验证
parent
5fef380a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+1
-1
index.vue
src/pages/Activity/releaseProduc/index.vue
+14
-4
No files found.
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
82a5852f
<
template
>
<div
class=
"infoEditing"
>
<el-form
ref=
"infoEditForm"
:model=
"infoEditForm"
label-width=
"80px"
>
<el-form
ref=
"infoEditForm"
:model=
"infoEditForm"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"标题:"
>
<el-input
v-model=
"infoEditForm.title"
maxlength=
"30"
></el-input>
</el-form-item>
...
...
src/pages/Activity/releaseProduc/index.vue
View file @
82a5852f
...
...
@@ -13,7 +13,7 @@
<el-step
title=
"拼单设置"
></el-step>
</el-steps>
<div
class=
"content"
>
<infoEditing
ref=
"
avatar
"
v-if=
"active === 1"
/>
<infoEditing
ref=
"
infoEdit
"
v-if=
"active === 1"
/>
<addProduc
v-else-if=
"active === 2"
/>
<spellOrderSet
v-else
/>
</div>
...
...
@@ -36,6 +36,7 @@
import
infoEditing
from
"./components/infoEditing.vue"
;
import
addProduc
from
"./components/addProduc.vue"
;
import
spellOrderSet
from
"./components/spellOrderSet.vue"
;
import
{
ElMessage
}
from
"element-plus"
;
export
default
{
components
:
{
infoEditing
,
...
...
@@ -45,7 +46,7 @@ export default {
data
()
{
return
{
active
:
1
,
// 步骤条状态
infoEditArr
:
[]
infoEditArr
:
[],
};
},
...
...
@@ -57,8 +58,17 @@ export default {
// 下一步
next
()
{
// this.active++;
console
.
log
(
this
.
$refs
.
avatar
);
console
.
log
(
this
.
$refs
.
infoEdit
.
infoEditForm
);
if
(
this
.
active
==
"1"
)
{
if
(
this
.
$refs
.
infoEdit
.
infoEditForm
.
title
==
""
)
{
ElMessage
.
error
(
"请填写商品标题"
);
// this.$refs["infoEdit"].validateForm(() => {
// this.active++;
// });
return
;
}
}
this
.
active
++
;
},
// 取消
cancel
()
{
...
...
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