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 e5cc2c48
authored
Jan 17, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修復
1 parent
26d95440
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
src/components/glsx-combi-form/index.vue
src/views/productGroup/components/commentDetail.vue
src/views/seckillActivity/editActivity.vue
src/components/glsx-combi-form/index.vue
View file @
e5cc2c4
...
...
@@ -3,7 +3,7 @@
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:rules=
"formRules"
size=
"small"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px': '30px', ...item.style }" :label="item.label" :prop="item.name">
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:id=
"item.name"
:labelWidth=
"isEdit ? '144px' : labelWidth"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px'
: '30px', ...item.style }" :label="item.label" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
label
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
:content=
"item.tips"
:placement=
"item.placement || 'top'"
>
...
...
@@ -12,11 +12,11 @@
{{
item
.
label
}}
</span>
<span
v-else-if=
"!item.isHide && item.label"
slot=
"label"
>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ?
(item.labelWidth + labelPaddingRight) + 'px' : '', 'padding-right': isEdit ? '12px' : (labelPaddingRight + 'px')
}">
{{
item
.
label
}}
</span>
<span
class=
"combi-form-label"
:style=
"
{ width: item.labelWidth ?
item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px'
}">
{{
item
.
label
}}
</span>
</span>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"item"
></slot>
<div
v-else-if=
"item.type === 'input'"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"
>
<el-input
:placeholder=
"item.placeholder || '请输入' + item.label"
v-model
.
trim=
"formObj[item.name]"
:disabled=
"item.isDisabled"
:maxlength=
"item.maxlength"
:clearable=
"item.isClear || false"
:type=
"item.inputType || 'text'"
:rows=
"item.rows || 2"
:style=
"
{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span
v-if=
"item.prepend"
slot=
"prepend"
>
{{
item
.
prepend
}}
</span>
<span
v-if=
"item.append"
slot=
"append"
>
{{
item
.
append
}}
</span>
</el-input>
...
...
@@ -63,8 +63,8 @@
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
class=
"add"
:style=
"
{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+
</div>
<span
v-if=
"item.maxPhotoNum > 1"
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0
;
"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0
;
"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
</div>
</div>
<template>
...
...
@@ -99,10 +99,10 @@
</template>
<slot
name=
"footer"
></slot>
</el-form>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
:close-on-click-modal=
"false"
>
<div
class=
"dialog-look"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
/
>
</video>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</div>
...
...
@@ -353,7 +353,7 @@ export default {
.glsx-combi-form
.activity-img
{
position
:
relative
;
color
:
#999999
;
background-color
:
#
F7F7F
7
;
background-color
:
#
f7f7f
7
;
border
:
1px
dotted
#d9d9d9
;
cursor
:
pointer
;
}
...
...
@@ -433,16 +433,16 @@ export default {
/* 图片上传 */
.glsx-combi-form
.el-tag.el-tag--info
.el-tag__close
{
color
:
#
E8E8EA
;
color
:
#
e8e8ea
;
background-color
:
#5850ff
!important
;
}
.glsx-combi-form
.el-tag.el-tag--info
{
border-color
:
#5850ff
;
}
.glsx-combi-form
.el-tag--plain.el-tag--info
.el-tag__close
:hover
{
background-color
:
#
E8E8EA
;
background-color
:
#
e8e8ea
;
}
.glsx-combi-form
.el-tag.el-tag--info
.el-tag__close
:hover
{
background-color
:
#
E8E8EA
;
background-color
:
#
e8e8ea
;
}
</
style
>
src/views/productGroup/components/commentDetail.vue
View file @
e5cc2c4
<!-- 查看产品 - 评价信息 -->
<
template
>
<div
class=
"comment-detail container edit-container"
>
<div
style=
"padding: 20px;
"
>
<div
class=
"comment-detail container edit-container"
>
<div
style=
"padding: 20px
"
>
<!-- 表格区域 开始 -->
<GLTable
ref=
"commentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:beforeSearchFn=
"beforeSearchFn"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"starLevel"
slot-scope=
"scope"
>
<img
v-for=
"(item, index) in scope.scope.starLevel"
:key=
"index"
class=
"icon-star"
src=
"@/assets/icon-star.png"
/>
<img
v-for=
"(item, index) in scope.scope.starLevel"
:key=
"index"
class=
"icon-star"
src=
"@/assets/icon-star.png"
/>
</div>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<span
v-if=
"!scope.scope.imgUrls"
>
-
</span>
<img
v-else
class=
"img-60"
:src=
"scope.scope.imgUrls[0]"
@
click=
"handleImgLook(scope.scope.imgUrls)"
/>
<img
v-else
class=
"img-60"
:src=
"scope.scope.imgUrls[0]"
@
click=
"handleImgLook(scope.scope.imgUrls)"
/>
</div>
</GLTable>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisibl
e"
>
<el-dialog
v-if=
"isImgVisible"
title=
"查看"
:visible
.
sync=
"isImgVisible"
:close-on-click-modal=
"fals
e"
>
<div
class=
"dialog-look"
>
<span
v-for=
"(item, index) in dialogObj.imgUrls"
:key=
"index"
>
<el-image
style=
"width: 200px; height: 200px; margin-right: 10px;"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
<el-image
style=
"width: 200px; height: 200px; margin-right: 10px"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</el-dialog>
</div>
</div>
</div>
</
template
>
<
script
>
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
export
default
{
name
:
'commentDetail'
,
data
()
{
...
...
@@ -104,5 +104,4 @@ export default {
}
}
</
script
>
<
style
>
</
style
>
<
style
></
style
>
src/views/seckillActivity/editActivity.vue
View file @
e5cc2c4
...
...
@@ -299,7 +299,7 @@ export default {
}
},
handleSingleSelectClose
(
isCancel
=
false
)
{
if
(
isCancel
)
{
if
(
isCancel
)
{
this
.
selectedProInfo
.
id
&&
this
.
getGoodInfo
(
this
.
selectedProInfo
.
id
)
}
this
.
isSingleSelectVisible
=
!
this
.
isSingleSelectVisible
...
...
@@ -594,4 +594,6 @@ export default {
cursor
:
pointer
;
}
/* 规格 */
</
style
>
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