Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
03ed499e
Commit
03ed499e
authored
Jul 01, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传优化
parent
f0982b31
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
7 deletions
+34
-7
files.vue
components/page/files.vue
+8
-2
add.vue
pages/technology/productMix/product/add.vue
+11
-1
edit.vue
pages/technology/productMix/product/edit.vue
+11
-1
index.vue
pages/technology/productMix/product/index.vue
+4
-3
No files found.
components/page/files.vue
View file @
03ed499e
...
...
@@ -82,7 +82,8 @@ export default {
per
:
0
,
vshowPro
:
false
,
Photo
:
true
,
isactive
:
0
isactive
:
0
,
imgId
:
null
};
},
created
()
{},
...
...
@@ -128,6 +129,8 @@ export default {
},
methods
:
{
listData
(
li
,
index
)
{
this
.
imgId
=
li
.
id
;
this
.
$emit
(
"clickItem"
,
this
.
downUrl
+
li
.
filePath
,
li
.
filePath
);
this
.
isactive
=
index
;
},
...
...
@@ -158,7 +161,6 @@ export default {
objImag
.
id
=
file
.
response
.
data
.
id
;
filesList
.
push
(
objImag
);
this
.
nameList
=
this
.
nameList
.
concat
(
filesList
);
console
.
log
(
this
.
nameList
);
this
.
per
=
100
;
setTimeout
(()
=>
{
this
.
per
=
0
;
...
...
@@ -196,6 +198,10 @@ export default {
return
item
.
id
===
name
;
});
this
.
nameList
.
splice
(
index
,
1
);
if
(
name
==
this
.
imgId
)
{
this
.
$emit
(
"on-delete"
);
}
}
else
{
this
.
$Message
.
error
(
"删除失败!"
);
}
...
...
pages/technology/productMix/product/add.vue
View file @
03ed499e
...
...
@@ -65,7 +65,14 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('productUrlList')"
prop=
"productUrlList"
>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:Photos=
"true"
@
clickItem=
"clickData"
/>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:Photos=
"true"
@
clickItem=
"clickData"
@
on-delete=
"deleteImg"
/>
</FormItem>
</Col>
</Row>
...
...
@@ -155,6 +162,9 @@ export default {
this
.
img
=
liUrl
;
this
.
entity
.
productUrl
=
liUrl
;
},
deleteImg
()
{
this
.
img
=
""
;
},
handleSelect1
(
v
,
data
)
{
this
.
entity
.
madeCompanyTitle
=
data
.
name
;
},
...
...
pages/technology/productMix/product/edit.vue
View file @
03ed499e
...
...
@@ -61,7 +61,14 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('productUrlList')"
prop=
"productUrlList"
>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:Photos=
"true"
@
clickItem=
"clickData"
/>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:Photos=
"true"
@
clickItem=
"clickData"
@
on-delete=
"deleteImg"
/>
</FormItem>
</Col>
</Row>
...
...
@@ -144,6 +151,9 @@ export default {
this
.
img
=
liUrl
;
this
.
entity
.
productUrl
=
liUrl
;
},
deleteImg
()
{
this
.
img
=
""
;
},
handleSelect1
(
v
,
data
)
{
this
.
entity
.
madeCompanyTitle
=
data
.
name
;
},
...
...
pages/technology/productMix/product/index.vue
View file @
03ed499e
...
...
@@ -94,7 +94,7 @@ export default {
id
:
Number
,
parentName
:
String
,
ids
:
String
,
bomId
:
Number
,
bomId
:
Number
}
},
data
()
{
...
...
@@ -102,8 +102,9 @@ export default {
action
:
Api
.
index
,
fullscreen
:
false
,
easySearch
:
{
keys
:
{
op
:
"mmcode,name,productCode"
,
value
:
null
},
levelId
:
{
op
:
"In"
,
value
:
this
.
id
}
keys
:
{
op
:
"mmcode,name"
,
value
:
null
},
levelId
:
{
op
:
"In"
,
value
:
this
.
id
},
upId
:
{
op
:
"In"
,
value
:
0
}
},
modal
:
false
,
title
:
"新增"
,
...
...
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