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
ed9a7bc4
Commit
ed9a7bc4
authored
May 27, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品结构管理优化
parent
8d0073c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
29 deletions
+22
-29
index.vue
pages/technology/productMix/index.vue
+4
-4
add.vue
pages/technology/productMix/product/add.vue
+2
-15
edit.vue
pages/technology/productMix/product/edit.vue
+14
-8
index.vue
pages/technology/productMix/product/index.vue
+2
-2
No files found.
pages/technology/productMix/index.vue
View file @
ed9a7bc4
...
...
@@ -61,10 +61,10 @@ export default {
background: #eee;
padding-left: 10px;
}
.p-list {
padding: 10px;
overflow: auto;
}
//
.p-list {
// //
padding: 10px;
//
overflow: auto;
//
}
}
.ivu-layout-content {
margin-left: 5px;
...
...
pages/technology/productMix/product/add.vue
View file @
ed9a7bc4
...
...
@@ -2,7 +2,7 @@
<Layout>
<Sider
width=
"300"
>
<div
class=
"add-list"
>
<img
:src=
"img"
width=
"100%"
height=
"100%"
/>
<img
:src=
"img"
/>
</div>
</Sider>
<Content>
...
...
@@ -173,12 +173,7 @@ export default {
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
// load(v) {
// Api.get({ id: v }).then(r => {
// this.entity = r.result;
// this.entity.id = 0;
// });
// },
proChange
(
id
,
data
,
listName
,
roots
)
{
this
.
entity
.
levelTitle
=
listName
.
join
(
" / "
);
},
...
...
@@ -190,15 +185,7 @@ export default {
watch
:
{
v
()
{
this
.
entity
=
this
.
$u
.
clone
(
this
.
v
);
// this.entity.parentId = this.parents.parentId;
// this.entity.parentName = this.parents.parentName;
}
// eid(v) {
// if (v > 0) {
// this.load(v);
// }
// }
}
};
</
script
>
...
...
pages/technology/productMix/product/edit.vue
View file @
ed9a7bc4
...
...
@@ -2,7 +2,7 @@
<Layout>
<Sider
width=
"300"
>
<div
class=
"add-list"
>
<img
:src=
"img"
width=
"100%"
height=
"100%"
/>
<img
:src=
"img"
/>
</div>
</Sider>
<Content>
...
...
@@ -92,9 +92,18 @@ export default {
};
},
props
:
{
eid
:
Number
v
:
Object
,
eid
:
Number
,
parents
:
{
type
:
Object
,
default
:
()
=>
{
return
{
id
:
-
1
,
parentName
:
""
};
}
}
},
mounted
()
{
this
.
treeCompany
();
if
(
this
.
eid
>
0
)
{
...
...
@@ -128,17 +137,14 @@ export default {
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
parms
.
eid
=
r
.
result
.
productUrlList
;
this
.
entity
=
r
.
result
;
this
.
img
=
this
.
entity
.
productUrl
;
this
.
componayId
=
r
.
result
.
madeCompany
;
this
.
entity
.
levelTitle
=
r
.
result
.
levelTitle
;
this
.
entity
.
levelId
=
r
.
result
.
levelId
;
this
.
$refs
.
edit
.
dep
=
r
.
result
.
levelId
;
this
.
$refs
.
edit
.
label
=
r
.
result
.
levelTitle
;
// this.listValue.labelName = r.result.levelTitle;
// this.listValue.labelId = r.result.levelId;
// this.$refs.edit.dep = r.result.levelId;
// this.$refs.edit.label = r.result.levelTitle;
});
},
handleSubmit
()
{
...
...
pages/technology/productMix/product/index.vue
View file @
ed9a7bc4
...
...
@@ -34,7 +34,7 @@
<Row
class=
"row-down"
>
<Col
span=
"7"
>
<div
class=
"img-i"
>
<img
:src=
"row.productUrl"
width=
"100%"
height=
"100%"
/>
<img
:src=
"row.productUrl"
/>
</div>
</Col>
<Col
span=
"17"
class=
"c"
>
...
...
@@ -136,7 +136,6 @@ export default {
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
modal
=
true
;
},
edit
(
id
)
{
this
.
curId
=
id
;
...
...
@@ -196,6 +195,7 @@ export default {
background: #eee;
height: 90px;
margin-right: 15px;
overflow: hidden;
}
.c div {
margin-bottom: 8px;
...
...
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