|
@@ -52,6 +52,7 @@
|
|
|
:expand-on-click-node="false"
|
|
:expand-on-click-node="false"
|
|
|
:default-expand-all="true"
|
|
:default-expand-all="true"
|
|
|
@node-click="onNodeClick"
|
|
@node-click="onNodeClick"
|
|
|
|
|
+ @node-drop="nodeDrop"
|
|
|
:allow-drop="allowDrop"
|
|
:allow-drop="allowDrop"
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
@@ -71,10 +72,7 @@
|
|
|
width="130"
|
|
width="130"
|
|
|
v-model="visible"
|
|
v-model="visible"
|
|
|
@click.native="visible = false"
|
|
@click.native="visible = false"
|
|
|
- v-if="
|
|
|
|
|
- data.id == rightData.id &&fileType===0 &&
|
|
|
|
|
- !isPop
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ v-if="data.id == rightData.id && fileType === 0 && !isPop"
|
|
|
:offset="30"
|
|
:offset="30"
|
|
|
>
|
|
>
|
|
|
<div>
|
|
<div>
|
|
@@ -156,7 +154,8 @@ import {
|
|
|
directoryDeleteAPI,
|
|
directoryDeleteAPI,
|
|
|
getDocTreeListAPI,
|
|
getDocTreeListAPI,
|
|
|
directoryUpdateAPi,
|
|
directoryUpdateAPi,
|
|
|
- validationPersonal
|
|
|
|
|
|
|
+ validationPersonal,
|
|
|
|
|
+ moveDirectory
|
|
|
} from '@/api/doc-manage';
|
|
} from '@/api/doc-manage';
|
|
|
import { mapGetters } from 'vuex';
|
|
import { mapGetters } from 'vuex';
|
|
|
import Power from './power/index.vue';
|
|
import Power from './power/index.vue';
|
|
@@ -324,6 +323,12 @@ export default {
|
|
|
})
|
|
})
|
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
|
},
|
|
},
|
|
|
|
|
+ nodeDrop(to, form) {
|
|
|
|
|
+ moveDirectory({
|
|
|
|
|
+ targetId: form.data.id,
|
|
|
|
|
+ replaceId: to.data.id
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
getTableList() {
|
|
getTableList() {
|
|
|
return this.$refs.tableRef.getTableList();
|
|
return this.$refs.tableRef.getTableList();
|
|
|
}
|
|
}
|