Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
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 2798952e
authored
May 31, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
特色产品编辑添加radio
1 parent
43866653
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
src/components/Upload/index.vue
src/views/discoverManager/addProd.vue
src/views/discoverManager/index.vue
src/components/Upload/index.vue
View file @
2798952
...
...
@@ -2,7 +2,7 @@
<div
class=
"upload-ctnr"
>
<label
v-if=
"name"
class=
"label"
for=
""
>
{{
name
}}
</label>
<div
class=
"img-item"
:style=
"defaultStyle"
>
<div
v-if=
"!formObj[attr]"
class=
"add-img
"
@
click
.
stop=
"addFile"
>
<div
v-if=
"!formObj[attr]"
:class=
"['add-img',
{'disabled': disabled}]
" @click.stop="addFile">
<input
type=
"file"
class=
"file"
id=
"file"
ref=
"fileRef"
@
change=
"handleFileChange"
:accept=
"accept"
/>
<i
class=
"el-icon-plus add"
></i>
<p>
{{
btnName
}}
</p>
...
...
@@ -42,6 +42,10 @@ export default {
bigView
},
props
:
{
disabled
:
{
type
:
Boolean
,
default
:
false
},
fileType
:
{
type
:
String
,
default
:
'image'
...
...
@@ -117,6 +121,7 @@ export default {
this
.
dialogVisibleImg
=
true
},
addFile
(){
if
(
this
.
disabled
)
return
;
if
(
this
.
empty
){
this
.
$emit
(
'clickEvent'
)
return
;
...
...
@@ -310,8 +315,11 @@ export default {
line-height
:
22px
;
}
}
.disabled
{
cursor
:
not-allowed
;
}
.operate
{
display
:
block
;
display
:
none
;
position
:
absolute
;
top
:
0
;
left
:
0
;
...
...
src/views/discoverManager/addProd.vue
View file @
2798952
This diff is collapsed.
Click to expand it.
src/views/discoverManager/index.vue
View file @
2798952
...
...
@@ -6,7 +6,7 @@
<GLCombiForm
class=
"search-wrap"
ref=
"searchRef"
labelWidth=
"154px"
defaultWidth=
"432px"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formObj=
"searchFormObj"
:formData=
"searchFormData"
>
</GLCombiForm>
<div
class=
"operate-wrap"
>
<span
class=
"table-title"
>
商品
列表
</span>
<span
class=
"table-title"
>
内容
列表
</span>
<div
class=
"operate-btn"
>
<el-button
:size=
"size"
type=
"primary"
>
新增
<i
class=
"el-icon-arrow-down arrow-icon"
></i></el-button>
<div
class=
"dropdown-wrap"
>
...
...
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