Commit 1d37b463 authored by 仇晓婷's avatar 仇晓婷

详情

parent 94873de6
<template> <template>
<div class="maseter"> <div class="maseter">
<div class="come-back" @click="back">
<Icon type="ios-undo-outline" />返回
</div>
<Layout class="data-details"> <Layout class="data-details">
<Sider hide-trigger class="left-detail" width="300"> <Sider hide-trigger class="left-detail" width="300">
<h4 class="bt">标题</h4> <h4 class="bt">标题</h4>
...@@ -62,14 +59,15 @@ ...@@ -62,14 +59,15 @@
<script> <script>
import Api from "./api"; import Api from "./api";
export default { export default {
props: ["eid"],
data() { data() {
return { return {
data1: [], data1: [],
action: Api.lists, action: Api.lists,
isactive: null, isactive: 0,
showFrom: false, showFrom: true,
showTable: false, showTable: false,
rowId: "", rowId: this.eid,
entity: {}, entity: {},
easySearch: { easySearch: {
keys: { op: "title", value: "" }, keys: { op: "title", value: "" },
...@@ -101,13 +99,15 @@ export default { ...@@ -101,13 +99,15 @@ export default {
] ]
}; };
}, },
created() { mounted() {
this.rowId = this.$route.query.id; this.load(this.eid);
}, },
methods: { methods: {
back() { load(v) {
this.$router.push({ Api.get({ id: v }).then(r => {
path: "/materiel/masterData" if (r.result) {
this.entity = r.result;
}
}); });
}, },
everyItem(li, i) { everyItem(li, i) {
...@@ -115,35 +115,11 @@ export default { ...@@ -115,35 +115,11 @@ export default {
if (li.lable == "属性") { if (li.lable == "属性") {
this.showFrom = true; this.showFrom = true;
this.showTable = false; this.showTable = false;
this.load(this.eid);
Api.get({ id: this.rowId }).then(r => {
if (r.result) {
this.entity = r.result;
}
});
} else { } else {
this.showFrom = false; this.showFrom = false;
this.showTable = true; this.showTable = true;
this.$refs.grid.reload(this.easySearch); this.$refs.grid.reload(this.easySearch);
// this.easySearch = {
// conditions: [
// {
// fieldName: "table",
// fieldValue: "material",
// conditionalType: "Equal"
// },
// {
// fieldName: "tId",
// fieldValue: this.rowId,
// conditionalType: "Equal"
// }
// ]
// };
// Api.categoryList(this.easySearch).then(r => {
// if (r.result) {
// this.data1 = r.result;
// }
// });
} }
}, },
l(key) { l(key) {
...@@ -154,20 +130,6 @@ export default { ...@@ -154,20 +130,6 @@ export default {
}; };
</script> </script>
<style lang="less" > <style lang="less" >
.maseter {
.come-back {
margin: 5px;
color: #2680eb;
.ivu-icon {
font-size: 20px;
}
}
.come-back:hover {
font-weight: bold;
cursor: pointer;
}
}
.ivu-layout { .ivu-layout {
background-color: #f5f7f9 !important; background-color: #f5f7f9 !important;
} }
......
...@@ -285,30 +285,14 @@ export default { ...@@ -285,30 +285,14 @@ export default {
this.$Message.success("删除成功"); this.$Message.success("删除成功");
} }
}); });
// this.$Modal.confirm({
// title: "删除",
// content: "<p>您确定要删除吗?</p>",
// onOk: () => {
// alert(1);
// Api.delete({ id: this.eid }).then(r => {
// if (r.success) {
// this.$emit("on-ok");
// this.$Message.success("删除成功");
// }
// });
// },
// onCancel: () => {
// this.$Message.success("取消删除");
// }
// });
}, },
details(id) { details(id) {
this.$router.push({ this.fullscreen = true;
path: "/materiel/masterData/details", this.curId = id;
query: { this.title = "详情";
id: id this.detail = () => import("./details");
} this.rowsTable = [];
}); this.modal = true;
}, },
send(row) { send(row) {
this.fullscreen = true; this.fullscreen = 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