Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
4fe69012
Commit
4fe69012
authored
Jun 29, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增多选
parent
b4603283
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
590 additions
and
565 deletions
+590
-565
materialMan.vue
src/components/CommodityMan/materialMan.vue
+579
-555
ChooseImg.vue
src/components/global/ChooseImg.vue
+10
-9
index.js
src/plug/index.js
+1
-1
No files found.
src/components/CommodityMan/materialMan.vue
View file @
4fe69012
This diff is collapsed.
Click to expand it.
src/components/global/ChooseImg.vue
View file @
4fe69012
...
...
@@ -42,14 +42,14 @@
<div
class=
"basefix app-attachment-list"
>
<div
class=
"app-attachment-item app-attachment-upload"
>
<el-upload
class=
"avatar-uploader"
action=
""
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
:http-request=
"UploadImage"
>
:show-file-list=
"false"
:http-request=
"UploadImage"
>
<div
class=
"app-upload"
flex=
"main:center cross:center"
style=
"width: 100px; height: 100px;"
>
<i
class=
"el-icon-upload"
></i>
<i
class=
"el-icon-upload"
></i>
</div>
</el-upload>
</div>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"'双击选中【'+item.Name+'】'"
placement=
"top-start"
>
<el-tooltip
v-for=
"(item,index) in PageList"
:key=
"index"
class=
"item"
effect=
"dark"
:content=
"'双击选中【'+item.Name+'】'"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,1)"
@
dblclick=
"PageSelect(item,2)"
:class=
"selectId==item.Id ? 'selected' :''"
class=
"el-tooltip item app-attachment-item"
>
<img
:src=
"getIconLink(item.Path)"
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
...
...
@@ -91,6 +91,8 @@
<
script
>
export
default
{
//是否多选
props
:
[
"IsMultiple"
],
name
:
'ChooseImg'
,
data
()
{
return
{
...
...
@@ -199,19 +201,18 @@
this
.
apipost
(
"/api/product/SetMaterialInfo"
,
this
.
addpageMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetPageList
();
}
})
},
// clickType 1单击 2双击
PageSelect
(
item
,
clickType
)
{
PageSelect
(
item
,
clickType
)
{
this
.
emitmsg
=
{
selectId
:
item
.
Id
,
url
:
item
.
Path
}
this
.
selectId
=
item
.
Id
;
if
(
clickType
==
2
)
{
this
.
SelectImgId
();
if
(
clickType
==
2
)
{
this
.
SelectImgId
();
}
},
...
...
@@ -282,7 +283,7 @@
},
SelectGroup
(
id
)
{
this
.
PageMsg
.
GroupId
=
id
;
this
.
addpageMsg
.
GroupId
=
id
;
this
.
addpageMsg
.
GroupId
=
id
;
this
.
GetPageList
();
},
handleCurrentChange
(
val
)
{
...
...
src/plug/index.js
View file @
4fe69012
...
...
@@ -132,7 +132,7 @@ export default {
var
filename
=
fileObj
.
name
;
var
index
=
filename
.
lastIndexOf
(
"."
);
var
suffix
=
filename
.
substr
(
index
);
var
timestamp1
=
Date
.
parse
(
new
Date
());
var
timestamp1
=
Date
.
parse
(
new
Date
())
+
"_"
+
(
Math
.
ceil
(
Math
.
random
()
*
1000
))
;
let
str
=
''
;
if
(
this
.
isOnline
())
{
str
=
"/Test"
...
...
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