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

产品结构管理优化

parent 8d0073c6
...@@ -61,10 +61,10 @@ export default { ...@@ -61,10 +61,10 @@ export default {
background: #eee; background: #eee;
padding-left: 10px; padding-left: 10px;
} }
.p-list { // .p-list {
padding: 10px; // // padding: 10px;
overflow: auto; // overflow: auto;
} // }
} }
.ivu-layout-content { .ivu-layout-content {
margin-left: 5px; margin-left: 5px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Layout> <Layout>
<Sider width="300"> <Sider width="300">
<div class="add-list"> <div class="add-list">
<img :src="img" width="100%" height="100%" /> <img :src="img" />
</div> </div>
</Sider> </Sider>
<Content> <Content>
...@@ -173,12 +173,7 @@ export default { ...@@ -173,12 +173,7 @@ export default {
handleClose() { handleClose() {
this.$emit("on-close"); 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) { proChange(id, data, listName, roots) {
this.entity.levelTitle = listName.join(" / "); this.entity.levelTitle = listName.join(" / ");
}, },
...@@ -190,15 +185,7 @@ export default { ...@@ -190,15 +185,7 @@ export default {
watch: { watch: {
v() { v() {
this.entity = this.$u.clone(this.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> </script>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Layout> <Layout>
<Sider width="300"> <Sider width="300">
<div class="add-list"> <div class="add-list">
<img :src="img" width="100%" height="100%" /> <img :src="img" />
</div> </div>
</Sider> </Sider>
<Content> <Content>
...@@ -92,9 +92,18 @@ export default { ...@@ -92,9 +92,18 @@ export default {
}; };
}, },
props: { props: {
eid: Number v: Object,
eid: Number,
parents: {
type: Object,
default: () => {
return {
id: -1,
parentName: ""
};
}
}
}, },
mounted() { mounted() {
this.treeCompany(); this.treeCompany();
if (this.eid > 0) { if (this.eid > 0) {
...@@ -128,17 +137,14 @@ export default { ...@@ -128,17 +137,14 @@ export default {
}, },
load(v) { load(v) {
Api.get({ id: v }).then(r => { Api.get({ id: v }).then(r => {
this.parms.eid = r.result.productUrlList; this.parms.eid = r.result.productUrlList;
this.entity = r.result; this.entity = r.result;
this.img = this.entity.productUrl; this.img = this.entity.productUrl;
this.componayId = r.result.madeCompany; this.componayId = r.result.madeCompany;
this.entity.levelTitle = r.result.levelTitle; this.entity.levelTitle = r.result.levelTitle;
this.entity.levelId = r.result.levelId; this.entity.levelId = r.result.levelId;
this.$refs.edit.dep = r.result.levelId; // this.$refs.edit.dep = r.result.levelId;
this.$refs.edit.label = r.result.levelTitle; // this.$refs.edit.label = r.result.levelTitle;
// this.listValue.labelName = r.result.levelTitle;
// this.listValue.labelId = r.result.levelId;
}); });
}, },
handleSubmit() { handleSubmit() {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<Row class="row-down"> <Row class="row-down">
<Col span="7"> <Col span="7">
<div class="img-i"> <div class="img-i">
<img :src="row.productUrl" width="100%" height="100%" /> <img :src="row.productUrl" />
</div> </div>
</Col> </Col>
<Col span="17" class="c"> <Col span="17" class="c">
...@@ -136,7 +136,6 @@ export default { ...@@ -136,7 +136,6 @@ export default {
this.title = "详情"; this.title = "详情";
this.detail = () => import("./detail"); this.detail = () => import("./detail");
this.modal = true; this.modal = true;
}, },
edit(id) { edit(id) {
this.curId = id; this.curId = id;
...@@ -196,6 +195,7 @@ export default { ...@@ -196,6 +195,7 @@ export default {
background: #eee; background: #eee;
height: 90px; height: 90px;
margin-right: 15px; margin-right: 15px;
overflow: hidden;
} }
.c div { .c div {
margin-bottom: 8px; 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