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
036a5a5e
Commit
036a5a5e
authored
Jun 28, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品
parent
ddc8fde7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
bom.vue
pages/technology/productMix/product/bom.vue
+1
-1
detail.vue
pages/technology/productMix/product/detail.vue
+8
-3
index.vue
pages/technology/productMix/product/index.vue
+7
-4
No files found.
pages/technology/productMix/product/bom.vue
View file @
036a5a5e
...
@@ -146,7 +146,7 @@ export default {
...
@@ -146,7 +146,7 @@ export default {
});
});
},
},
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
,
levelId
:
this
.
parents
.
id
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
$emit
(
"on-load"
);
this
.
$emit
(
"on-load"
);
...
...
pages/technology/productMix/product/detail.vue
View file @
036a5a5e
<
template
>
<
template
>
<div
class=
"detail"
>
<div
class=
"detail"
>
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('levelId')"
>
{{
entity
.
level
Id
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('levelId')"
>
{{
entity
.
level
Title
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mmcode')"
>
{{
entity
.
mmcode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mmcode')"
>
{{
entity
.
mmcode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawingNo')"
>
{{
entity
.
drawingNo
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawingNo')"
>
{{
entity
.
drawingNo
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('name')"
>
{{
entity
.
name
}}
</Filed>
...
@@ -43,7 +43,12 @@ export default {
...
@@ -43,7 +43,12 @@ export default {
};
};
},
},
props
:
{
props
:
{
eid
:
Number
eid
:
Number
,
parents
:
{
id
:
Number
,
parentName
:
String
,
ids
:
String
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
>
0
)
{
...
@@ -63,7 +68,7 @@ export default {
...
@@ -63,7 +68,7 @@ export default {
}
}
},
},
load
(
v
)
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
Api
.
get
({
id
:
v
,
levelId
:
this
.
parents
.
id
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
$emit
(
"on-load"
);
this
.
$emit
(
"on-load"
);
...
...
pages/technology/productMix/product/index.vue
View file @
036a5a5e
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<a
@
click=
"remove(row.id)"
>
<a
@
click=
"remove(row.id)"
>
<Icon
type=
"ios-trash"
/>
删除
<Icon
type=
"ios-trash"
/>
删除
</a>
</a>
<a
@
click=
"view(row
.id
)"
>
<a
@
click=
"view(row)"
>
<Icon
type=
"md-document"
/>
详情
<Icon
type=
"md-document"
/>
详情
</a>
</a>
</p>
</p>
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
{
{
attrs
:
{
oprate
:
"view"
},
attrs
:
{
oprate
:
"view"
},
on
:
{
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
click
:
()
=>
this
.
view
(
params
.
row
)
}
}
},
},
"详情"
"详情"
...
@@ -275,8 +275,11 @@ export default {
...
@@ -275,8 +275,11 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
this
.
fullscreen
=
false
;
this
.
fullscreen
=
false
;
},
},
view
(
id
)
{
view
(
row
)
{
this
.
curId
=
id
;
console
.
log
(
row
)
this
.
curId
=
row
.
id
;
this
.
parent
.
id
=
row
.
levelId
;
this
.
parent
.
parentName
=
row
.
levelTitle
;
this
.
title
=
"详情"
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
...
...
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