Przeglądaj źródła

新增文件按钮判断

duy 1 rok temu
rodzic
commit
2531e34d31

+ 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'] || ''