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

产品

parent ddc8fde7
......@@ -146,7 +146,7 @@ export default {
});
},
load(v) {
Api.get({ id: v }).then(r => {
Api.get({ id: v,levelId: this.parents.id }).then(r => {
this.entity = r.result;
this.parms.eid = r.result.productUrlList;
this.$emit("on-load");
......
<template>
<div class="detail">
<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('drawingNo')">{{entity.drawingNo}}</Filed>
<Filed :span="12" :name="l('name')">{{entity.name}}</Filed>
......@@ -43,7 +43,12 @@ export default {
};
},
props: {
eid: Number
eid: Number,
parents: {
id: Number,
parentName: String,
ids: String
}
},
mounted() {
if (this.eid > 0) {
......@@ -63,7 +68,7 @@ export default {
}
},
load(v) {
Api.get({ id: v }).then(r => {
Api.get({ id: v, levelId: this.parents.id }).then(r => {
this.entity = r.result;
this.parms.eid = r.result.productUrlList;
this.$emit("on-load");
......
......@@ -55,7 +55,7 @@
<a @click="remove(row.id)">
<Icon type="ios-trash" />删除
</a>&nbsp;
<a @click="view(row.id)">
<a @click="view(row)">
<Icon type="md-document" />详情
</a>
</p>
......@@ -207,7 +207,7 @@ export default {
{
attrs: { oprate: "view" },
on: {
click: () => this.view(params.row.id)
click: () => this.view(params.row)
}
},
"详情"
......@@ -275,8 +275,11 @@ export default {
this.modal = true;
this.fullscreen = false;
},
view(id) {
this.curId = id;
view(row) {
console.log(row)
this.curId = row.id;
this.parent.id = row.levelId;
this.parent.parentName = row.levelTitle;
this.title = "详情";
this.detail = () => import("./detail");
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