zhuzhuanzhuan
2024-04-18 b417dc5912e77367694095411121fddf665c1d7e
src/views/base/modules/depart/DepartTree.vue
@@ -39,8 +39,8 @@
              @click="refreshTree"
            >刷新</a-menu-item>
            <a-menu-item
            type="primary"
            key="4"
            type="primary"
            key="4"
            @click="showDragRegulation"
            :style="getEnterpriseOptionStyle('2')"
            >结点拖拽规则</a-menu-item>
@@ -75,7 +75,7 @@
        rowKey="id"
        :draggable="true"
        @drop="onDrop"
        style="padding:20px"
        style="padding:20px"
      >
      <svg  slot="total" t="1675650355896" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17715"><path d="M512 128 128 326.4 896 326.4Z" p-id="17716" fill="#707070"></path><path d="M128 832l768 0 0 64-768 0 0-64Z" p-id="17717" fill="#707070"></path><path d="M230.4 384l0 384c0 19.2 12.8 32 32 32s32-12.8 32-32L294.4 384c0-19.2-12.8-32-32-32S230.4 364.8 230.4 384z" p-id="17718" fill="#707070"></path><path d="M390.4 384l0 384c0 19.2 12.8 32 32 32s32-12.8 32-32L454.4 384c0-19.2-12.8-32-32-32S390.4 364.8 390.4 384z" p-id="17719" fill="#707070"></path><path d="M569.6 384l0 384c0 19.2 12.8 32 32 32s32-12.8 32-32L633.6 384c0-19.2-12.8-32-32-32S569.6 364.8 569.6 384z" p-id="17720" fill="#707070"></path><path d="M736 384l0 384c0 19.2 12.8 32 32 32s32-12.8 32-32L800 384c0-19.2-12.8-32-32-32S736 364.8 736 384z" p-id="17721" fill="#707070"></path></svg>
      </a-tree>
@@ -163,7 +163,7 @@
        getEnterpriseList:"/base/enterprise/mapList",
        dropAndChangeNode: '/base/depart/dropAndChangeNode',
        checkPositionInfo: '/base/depart/checkPositionInfo',
      },
      searchValue: '',
      dataList: [],
@@ -173,9 +173,9 @@
      currSelected: {},
      hiding: false,
      dragRugulationVisable:false
    }
  },
  created() {
    this.cardLoading=true;
@@ -352,12 +352,12 @@
            });
         }
        })
      }
      }
      // else if((posStatus==1||posStatus==-1)&&dropedKey==changeParentId){
      //   this.$message.warning("不可以将父公司拖至子公司列");
      //   this.$message.warning("不可以将父公司拖至子公司列");
      // }
      else if((posStatus==1&&oldPosePre==newPosPre&&realPose+1==orgPos)){
        this.$message.warning("调整前后无区别,请重新调整");
        this.$message.warning("调整前后无区别,请重新调整");
      }
      else if(posStatus==1){
        var that = this;
@@ -370,9 +370,9 @@
            that.changePosition(params);
          }
        });
       }else if(posStatus==-1&&oldPosePre==newPosPre&&realPose==orgPos+1){
        this.$message.warning("调整前后无区别,请重新调整");
        this.$message.warning("调整前后无区别,请重新调整");
       }else if(posStatus==-1){
        var that = this;
        this.$confirm({
@@ -385,7 +385,7 @@
          }
        });
       }
    },
    changePosition(params){
      postAction(this.url.dropAndChangeNode,params).then(res=>{
@@ -446,7 +446,7 @@
      handler(val){
       this.parentId=''
       this.queryTreeData(val.enterpriseId,val.version)
      }
    },
    'departInfo.enterpriseId'(newval,oldval){
@@ -513,10 +513,6 @@
  overflow-y: hidden;
}
#app .desktop {
  height: auto !important;
}
/** Button按钮间距 */
.ant-btn {
  margin-left: 3px;
@@ -532,6 +528,6 @@
  right: 0;
  background: #fff;
  border-radius: 0 0 2px 2px;
}
</style>