Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b0c70e6a
authored
Sep 02, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹提交验证;删除按钮样式
1 parent
87118bca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
46 deletions
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/editCrowdFund.vue
View file @
b0c70e6
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
:class=
"['form-show-block', arrowFlagObj.activityServices == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
>
<div
v-for=
"(item, index) in editForm.activityServices"
:key=
"index"
:class=
"['form-show-item', editForm.activityServices.length > index + 1 ? 'line' : '']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
<glsx-combi-form
class=
"p-t-20"
ref=
"serviceEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"serviceEditFormData"
:formRules=
"serviceEditRule"
></glsx-combi-form>
<el-button
class=
"btn-basic btn-delete
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityServices.length - 1 ? 'last-btn-delete' : '']
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('services', 'activityServices', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
:class=
"['form-show-block', arrowFlagObj.activityCommoditys == 'close' ? 'form-close' : 'form-open']"
>
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
>
<div
v-for=
"(item, index) in editForm.activityCommoditys"
:key=
"index"
:class=
"['form-show-item', editForm.activityCommoditys.length > index + 1 ? 'line' : '']"
>
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
<glsx-combi-form
class=
"p-t-20"
ref=
"commoditysEditFormRef"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"commoditysEditFormData"
:formRules=
"commoditysEditRule"
></glsx-combi-form>
<el-button
class=
"btn-basic btn-delete
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityCommoditys.length - 1 ? 'last-btn-delete' : '']
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('commoditys', 'activityCommoditys', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
<glsx-combi-form
class=
"p-t-20"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"p-t-20"
:formRef=
"editChildRef"
:isEdit=
"true"
:isBlock=
"true"
:formObj=
"item"
:formData=
"experiencesEditFormData"
:formRules=
"editRule"
>
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
<div
slot=
"activityExperienceImgs"
class=
"edit-tips m-t-8"
>
建议尺寸:图片大小不超过5m,最多可添加9张图片
</div>
</glsx-combi-form>
</glsx-combi-form>
<el-button
class=
"btn-basic btn-delete
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<el-button
:class=
"['btn-basic', 'btn-delete', index == editForm.activityExperienceDTOs.length - 1 ? 'last-btn-delete' : '']
"
:size=
"size"
type=
"text"
@
click=
"handleDeleteItem('experiences', 'activityExperienceDTOs', index)"
>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
<img
class=
"icon-add"
src=
"@/assets/icon-delete.png"
/>
</el-button>
</el-button>
</div>
</div>
...
@@ -1568,52 +1568,54 @@ export default {
...
@@ -1568,52 +1568,54 @@ export default {
}
}
let
validList
=
[]
let
validList
=
[]
var
validFlag
=
true
var
validFlag
=
true
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
,
errorObj
)
=>
{
this
.
$nextTick
(()
=>
{
validList
=
[
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
,
errorObj
)
=>
{
{
valid
:
!
valid
,
errorObj
:
errorObj
},
validList
=
[
{
valid
:
!
flag
,
errorObj
:
{
goodsId
:
''
}
}
{
valid
:
!
valid
,
errorObj
:
errorObj
},
]
{
valid
:
!
flag
,
errorObj
:
{
goodsId
:
''
}
}
this
.
$refs
.
configEditFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
configValid
,
configErrorObj
)
=>
{
]
validList
.
push
({
valid
:
!
configValid
,
errorObj
:
configErrorObj
})
this
.
$refs
.
configEditFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
configValid
,
configErrorObj
)
=>
{
if
(
this
.
checkValid
(
validList
))
{
validList
.
push
({
valid
:
!
configValid
,
errorObj
:
configErrorObj
})
if
(
this
.
$refs
.
customerEditFormRef
)
{
if
(
this
.
checkValid
(
validList
))
{
this
.
$refs
.
customerEditFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
customerValid
,
customerErrorObj
)
=>
{
if
(
this
.
$refs
.
customerEditFormRef
)
{
validList
.
splice
(
2
,
0
,
{
valid
:
!
customerValid
,
errorObj
:
customerErrorObj
})
this
.
$refs
.
customerEditFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
customerValid
,
customerErrorObj
)
=>
{
// if (this.checkValid(validList)) {
validList
.
splice
(
2
,
0
,
{
valid
:
!
customerValid
,
errorObj
:
customerErrorObj
})
// this.addOrUpdate()
// if (this.checkValid(validList)) {
// }
// this.addOrUpdate()
if
(
!
this
.
checkValid
(
validList
))
{
// }
validFlag
=
false
if
(
!
this
.
checkValid
(
validList
))
{
}
})
}
if
(
this
.
$refs
.
serviceEditFormRef
)
{
this
.
$refs
.
serviceEditFormRef
.
forEach
(
item
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
serviceValid
,
serviceErrorObj
)
=>
{
if
(
!
serviceValid
)
{
validFlag
=
false
validFlag
=
false
this
.
whereToGo
(
'activityServices'
)
}
}
})
})
}
)
}
}
if
(
this
.
$refs
.
serviceEditFormRef
)
{
if
(
this
.
$refs
.
commoditysEditFormRef
)
{
this
.
$refs
.
serviceEditFormRef
.
forEach
(
item
=>
{
this
.
$refs
.
commoditysEditFormRef
.
forEach
(
item
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
serviceValid
,
serviceErrorObj
)
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
commoditysValid
,
commoditysErrorObj
)
=>
{
if
(
!
serviceValid
)
{
if
(
!
commoditysValid
)
{
validFlag
=
false
validFlag
=
false
this
.
whereToGo
(
'activityServices'
)
this
.
whereToGo
(
'activityCommoditys'
)
}
}
}
)
})
})
})
}
if
(
this
.
$refs
.
commoditysEditFormRef
)
{
this
.
$refs
.
commoditysEditFormRef
.
forEach
(
item
=>
{
item
.
$refs
[
this
.
editChildRef
].
validate
((
commoditysValid
,
commoditysErrorObj
)
=>
{
if
(
!
commoditysValid
)
{
validFlag
=
false
this
.
whereToGo
(
'activityCommoditys'
)
}
})
})
}
// else {
// this.addOrUpdate()
// }
}
else
{
validFlag
=
false
}
}
// else {
validFlag
&&
this
.
addOrUpdate
()
// this.addOrUpdate()
})
// }
}
else
{
validFlag
=
false
}
validFlag
&&
this
.
addOrUpdate
()
})
})
})
})
},
},
...
@@ -1831,7 +1833,7 @@ export default {
...
@@ -1831,7 +1833,7 @@ export default {
.head-box
{
.head-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin
:
20px
0
0
20px
;
padding
:
20px
0
0
20px
;
color
:
#282829
;
color
:
#282829
;
.icon-head
{
.icon-head
{
width
:
26px
;
width
:
26px
;
...
@@ -1849,7 +1851,7 @@ export default {
...
@@ -1849,7 +1851,7 @@ export default {
height
:
100%
;
height
:
100%
;
background
:
#f1f1f1
;
background
:
#f1f1f1
;
}
}
.
btn-delete
:last-child
{
.
last-btn-delete
{
height
:
calc
(
100%
+
25px
);
height
:
calc
(
100%
+
25px
);
}
}
.btn-delete
:hover
{
.btn-delete
:hover
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment