Index: vue/src/components/DevOps/JSTF/JsDataTableBuild.vue =================================================================== diff -u -r0ef2fc08a2e48b46c0e07493ad8a92914bfa3627 -re0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7 --- vue/src/components/DevOps/JSTF/JsDataTableBuild.vue (.../JsDataTableBuild.vue) (revision 0ef2fc08a2e48b46c0e07493ad8a92914bfa3627) +++ vue/src/components/DevOps/JSTF/JsDataTableBuild.vue (.../JsDataTableBuild.vue) (revision e0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7) @@ -19,18 +19,39 @@ Index: vue/src/components/DevOps/JSTF/JsTreeBuild.vue =================================================================== diff -u -r0ef2fc08a2e48b46c0e07493ad8a92914bfa3627 -re0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7 --- vue/src/components/DevOps/JSTF/JsTreeBuild.vue (.../JsTreeBuild.vue) (revision 0ef2fc08a2e48b46c0e07493ad8a92914bfa3627) +++ vue/src/components/DevOps/JSTF/JsTreeBuild.vue (.../JsTreeBuild.vue) (revision e0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7) @@ -7,8 +7,6 @@ import 'jquery/src/jquery.js'; import 'jstree/dist/jstree.min.js'; import 'jstree/dist/themes/default/style.min.css'; -import 'datatables.net-responsive/js/dataTables.responsive.min.js'; -import 'datatables.net-select'; import { mapState } from 'vuex'; export default { @@ -292,15 +290,14 @@ //jstree rename_node jsTreeRenameNode(dataUrl, dataTableLoad) { $('#demo').on('rename_node.jstree', function (e, data) { - console.log(data); dataUrl.alterNode .list({ c_id: data.node.id, c_title: data.text, c_type: data.node.type, }) .then(() => { - setTimeout(() => dataTableLoad(), 100); + dataTableLoad(); }); }); }, @@ -311,8 +308,8 @@ dataUrl.moveNode .list({ c_id: data.node.id, - c_title: data.text, - c_type: data.node.type, + ref: data.node.parent, + c_position: data.position, }) .then(() => { dataTableLoad(); @@ -342,12 +339,7 @@ } dataUrl.getData.list().then(response => { - const dataTableReload = () => - this.$store.commit('dataTabelLoad', { - dataUrl: dataUrl.getMonitor, - dataSrc: this.dataSrc, - dataColumns: this.columns, - }); + const dataTableReload = () => this.$store.commit('nodeUpdate'); this.makeTreeData(response); this.jsTreeSearch(); Index: vue/src/store/mutations.ts =================================================================== diff -u -r5dabb1f117348a3dfae9e20b10590f24ca2c9fb2 -re0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7 --- vue/src/store/mutations.ts (.../mutations.ts) (revision 5dabb1f117348a3dfae9e20b10590f24ca2c9fb2) +++ vue/src/store/mutations.ts (.../mutations.ts) (revision e0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7) @@ -21,4 +21,7 @@ columns: dataColumns, }); }, + nodeUpdate(state: any) { + state.nodeUpdate = !state.nodeUpdate; + }, }; Index: vue/src/store/state.ts =================================================================== diff -u -r5dabb1f117348a3dfae9e20b10590f24ca2c9fb2 -re0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7 --- vue/src/store/state.ts (.../state.ts) (revision 5dabb1f117348a3dfae9e20b10590f24ca2c9fb2) +++ vue/src/store/state.ts (.../state.ts) (revision e0a187ce5d88f1e6e98b84c5ff015d76cf0ff3f7) @@ -38,6 +38,7 @@ ], isDevelopingToRoute: '/auth-anon', dataTable: null, + nodeUpdate: false, }; export type RootState = typeof state;