Commit 036a5a5e authored by 仇晓婷's avatar 仇晓婷

产品

parent ddc8fde7
...@@ -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");
......
<template> <template>
<div class="detail"> <div class="detail">
<Row> <Row>
<Filed :span="12" :name="l('levelId')">{{entity.levelId}}</Filed> <Filed :span="12" :name="l('levelId')">{{entity.levelTitle}}</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");
......
...@@ -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>&nbsp; </a>&nbsp;
<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;
......
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