|
@@ -12,7 +12,7 @@
|
|
|
</div>
|
|
|
<div class="hc-tree-box">
|
|
|
<el-scrollbar>
|
|
|
- <HcTreeData :autoExpandKeys="thirdTreeKeys" :projectId="projectId" :contractId="contractId" type="rightTree" @nodeTap="wbsElTreeClick"/>
|
|
|
+ <HcTreeData :autoExpandKeys="thirdTreeKeys" :projectId="projectId" :contractId="contractId" type="rightTree" @nodeTap="wbsElTreeClick" @menuTap="menuTapClick"/>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
<!--左右拖动-->
|
|
@@ -322,7 +322,11 @@ const wbsElTreeClick = ({node, keys}) => {
|
|
|
searchForm.value.current = 1;
|
|
|
getTableData()
|
|
|
}
|
|
|
-
|
|
|
+const menuTapClick=({data })=>{
|
|
|
+ if(data?.isData===1){
|
|
|
+ window.$message.warning('当前节点下已有数据,不允许新增节点')
|
|
|
+ }
|
|
|
+}
|
|
|
//日期时间被选择
|
|
|
const betweenTime = ref(null)
|
|
|
const betweenTimeUpdate = ({arr}) => {
|