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

文档详情编辑

parent e56ac6b4
......@@ -12,7 +12,7 @@
</div>
<ul>
<li>
<a>
<a @click="edit">
<Icon type="md-create" />&nbsp;编辑
</a>
&nbsp;
......@@ -183,6 +183,9 @@ export default {
handleClose() {
this.$emit("on-close");
},
edit() {
this.$emit("detailEdit",this.eid);
},
l(key) {
key = "document_property_definition" + "." + key;
return this.$t(key);
......
......@@ -77,7 +77,14 @@
:mask-closable="false"
:fullscreen="fullscreen"
>
<component :is="detail" :eid="curId" :treeId="treeId" @on-close="cancel" @on-ok="ok" />
<component
:is="detail"
:eid="curId"
:treeId="treeId"
@on-close="cancel"
@on-ok="ok"
@detailEdit="detailEdit"
/>
</Modal>
</div>
</template>
......@@ -260,6 +267,13 @@ export default {
this.detail = () => import("./edit");
this.modal = true;
},
detailEdit(val) {
this.fullscreen = false;
this.curId = val;
this.title = "编辑";
this.detail = () => import("./edit");
this.modal = true;
},
remove(id) {
Api.delete(id).then((r) => {
if (r.success) {
......
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