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

文档详情编辑

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