Kaynağa Gözat

私有wbs调整排序修改

duy 2 yıl önce
ebeveyn
işleme
b5fd60274a
1 değiştirilmiş dosya ile 22 ekleme ve 3 silme
  1. 22 3
      src/views/manager/projectinfo/tree.vue

+ 22 - 3
src/views/manager/projectinfo/tree.vue

@@ -671,10 +671,25 @@
     </div>
 
     <!-- 私有wbs树排序弹框 -->
+    <!-- <el-dialog
+      title="调整排序"
+      :visible.sync="sortTag"
+      width="50%"
+      append-to-body
+    >
+      <ManualSorting v-if="sortTag2" @bianhua="bianhua()" :sort="sort" />
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="(sortTag = false), (sortTag2 = false)"
+          >取 消</el-button
+        >
+        <el-button type="primary" @click="editSort()">确 定</el-button>
+      </span>
+    </el-dialog> -->
     <el-dialog
       title="调整排序"
       :visible.sync="sortTag"
       width="50%"
+
       append-to-body
     >
       <ManualSorting v-if="sortTag2" @bianhua="bianhua()" :sort="sort" />
@@ -1659,7 +1674,8 @@ export default {
       //#region
       sortTag: false,
       sortTag2: false,
-      sortArray: [],
+ 
+      sort:[],
       //#endregion
 
       //#region 关联清表
@@ -2697,17 +2713,20 @@ export default {
     async findWbsTreePrivateSameLevel(da) {
       //wbs私有树同级节点接口
       const { data: res } = await findWbsTreePrivateSameLevel(da);
-      console.log(res);
       if (res.code == 200) {
         this.sort = res.data;
       }
     },
     async getLazytreessss() {
+    const type=this.wbsType
       const { data: res } = await getLazytree(
         this.id,
         0,
         this.userInfo.tenant_id,
-        this.projectid
+        this.projectid,
+        { wbsType: type,}
+     
+        
       );
       console.log(res);
       if (res.code == 200) {