Commit ed9a7bc4 authored by 仇晓婷's avatar 仇晓婷

产品结构管理优化

parent 8d0073c6
......@@ -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;
......
......@@ -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>
......
......@@ -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() {
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment