Commit 2bbf6a42 authored by rockyl's avatar rockyl

修复修改meta刷新问题

parent 07ecf566
...@@ -285,7 +285,7 @@ ...@@ -285,7 +285,7 @@
if (key.startsWith('pn_')) { if (key.startsWith('pn_')) {
const processNode = this.$refs[key][0]; const processNode = this.$refs[key][0];
if (processNode.meta.id === metaID) { if (processNode && processNode.meta.id === metaID) {
this.onProcessMetaModified(processNode.data, processNode.meta); this.onProcessMetaModified(processNode.data, processNode.meta);
processNode.updateSize(); processNode.updateSize();
processNode.updateDockPointPos(); processNode.updateDockPointPos();
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<div class="button-bar"> <div class="button-bar">
<el-button size="mini" plain @click="printMeta">PrintMeta</el-button>
<el-button size="mini" plain @click="cancel">Cancel</el-button> <el-button size="mini" plain @click="cancel">Cancel</el-button>
<el-button size="mini" plain @click="save">Save</el-button> <el-button size="mini" plain @click="save">Save</el-button>
</div> </div>
...@@ -101,7 +102,10 @@ ...@@ -101,7 +102,10 @@
}, },
cancel() { cancel() {
this.visible = false; this.visible = false;
} },
printMeta() {
console.log(JSON.stringify(this.meta));
},
} }
} }
</script> </script>
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
:show-close="false" :show-close="false"
> >
<div class="project-details-dialog"> <div class="project-details-dialog">
<el-form @submit.native.prevent ref="form" :model="options" size="mini" label-position="right" label-width="150px"> <el-form @submit.native.prevent ref="form" :model="options" size="mini" label-position="right"
label-width="150px">
<el-form-item prop="pageTitle" :label="$t('Page title')"> <el-form-item prop="pageTitle" :label="$t('Page title')">
<el-input v-model="options.pageTitle"/> <el-input v-model="options.pageTitle"/>
</el-form-item> </el-form-item>
...@@ -61,7 +62,7 @@ ...@@ -61,7 +62,7 @@
</template> </template>
<script> <script>
import {mapState, mapGetters} from 'vuex'; import {mapState, mapGetters, mapMutations} from 'vuex';
import {RENDERER_TYPES, SCALE_MODES} from "../../../utils"; import {RENDERER_TYPES, SCALE_MODES} from "../../../utils";
export default { export default {
...@@ -91,10 +92,14 @@ ...@@ -91,10 +92,14 @@
}, },
onConfirm() { onConfirm() {
this.visible = false; this.visible = false;
this.modifyProject();
}, },
onOpen() { onOpen() {
}, },
...mapMutations([
'modifyProject',
]),
} }
} }
</script> </script>
......
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