duy 1 год назад
Родитель
Сommit
2531e34d31
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/views/other-file/image-form.vue
  2. 1 1
      src/views/other-file/image-view.vue

+ 1 - 1
src/views/other-file/image-form.vue

@@ -250,7 +250,7 @@ const getFileTitleNamedata = async (wbsNodeIds) => {
 const wbsId = ref('')
 const treeItemInfo = ref({})
 const nodeWbsElTreeClick = ({ data, keys }) => {
-    if (data.leaf === true) {
+    if (data.notExsitChild === true) {
         treeItemInfo.value = data
         wbsId.value = data['primaryKeyId']
         formValue.value.wbsId = data['primaryKeyId']

+ 1 - 1
src/views/other-file/image-view.vue

@@ -256,7 +256,7 @@ const dateWbsElTreeClick = ({ data, keys, key }) => {
 //项目树被点击
 const nodeWbsElTreeClick = ({ data, keys }) => {
     searchForm.value.wbsIdsStr = data?.primaryKeyId || ''
-    if (data.leaf === true) {
+    if (data?.notExsitChild === true) {
         nodeDataInfo.value = data
         queryKey.value = data['primaryKeyId'] || ''