|
@@ -785,7 +785,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
-import { lazyTree, dictionary, remove, archiveTreeSave, archiveTreeUpdate, archiveTreeDetail, archiveTreetree, submitDisplayConfigTree, getSameGradeNode, submitArchiveTreeSort } from "@/api/manager/archivetree";
|
|
|
|
|
|
+import { archiveTreeInit, lazyTree, dictionary, remove, archiveTreeSave, archiveTreeUpdate, archiveTreeDetail, archiveTreetree, submitDisplayConfigTree, getSameGradeNode, submitArchiveTreeSort } from "@/api/manager/archivetree";
|
|
import { getToken } from '@/util/auth';
|
|
import { getToken } from '@/util/auth';
|
|
import { roletree } from "@/api/system/role.js";
|
|
import { roletree } from "@/api/system/role.js";
|
|
// import logoVue from '../../page/index/logo.vue';
|
|
// import logoVue from '../../page/index/logo.vue';
|
|
@@ -1162,7 +1162,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async archiveTreeInit () {//添加根节点
|
|
async archiveTreeInit () {//添加根节点
|
|
- const { data: res } = await archiveTreeInit()
|
|
|
|
|
|
+ const { data: res } = await archiveTreeInit({
|
|
|
|
+
|
|
|
|
+ projectId:this.projectId//项目id
|
|
|
|
+ })
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.code == 200 && res.msg == '操作成功') {
|
|
if (res.code == 200 && res.msg == '操作成功') {
|
|
res.data.forEach(val => {
|
|
res.data.forEach(val => {
|