Commit 8d0073c6 authored by 仇晓婷's avatar 仇晓婷

产品结构

parent e85715b9
...@@ -11,9 +11,10 @@ ...@@ -11,9 +11,10 @@
<Col :span="12"> <Col :span="12">
<FormItem label="上级所属" prop="levelId"> <FormItem label="上级所属" prop="levelId">
<!-- <Input v-model="entity.parentName" disabled></Input> --> <!-- <Input v-model="entity.parentName" disabled></Input> -->
<productSelect1 v-model="entity.levelId+''" @on-change="proChange" /> <productSelect1 v-model="entity.levelId" @on-change="proChange" ref="edit" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('productCode')" prop="productCode"> <FormItem :label="l('productCode')" prop="productCode">
<Input v-model="entity.productCode"></Input> <Input v-model="entity.productCode"></Input>
...@@ -83,6 +84,10 @@ export default { ...@@ -83,6 +84,10 @@ export default {
eid: "", eid: "",
name: "", name: "",
field: "" field: ""
},
listValue: {
labelName: "",
labelId: null
} }
}; };
}, },
...@@ -123,11 +128,17 @@ export default { ...@@ -123,11 +128,17 @@ export default {
}, },
load(v) { load(v) {
Api.get({ id: v }).then(r => { Api.get({ id: v }).then(r => {
// this.$refs.refFile.intFilesClone();
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.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;
}); });
}, },
handleSubmit() { handleSubmit() {
......
...@@ -136,6 +136,7 @@ export default { ...@@ -136,6 +136,7 @@ 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;
......
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