duy 2 жил өмнө
parent
commit
1ea30e3359

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

@@ -156,6 +156,10 @@ onMounted(() => {
     if (dataType === 2 && dataId) {
         getYearDateTree()
         queryKey.value = nodeKey
+        console.log(  queryKey.value,'  queryKey.value');
+        if(isNaN(queryKey.value) && !isNaN(Date.parse(queryKey.value))){
+         queryKey.value = ''
+        }
         searchForm.value.queryDate = nodeKey
         searchForm.value.current = 1;
         getTableData()
@@ -182,7 +186,8 @@ const getYearDateTree = async () => {
 //日期树被点击
 const nodeDataInfo = ref({})
 const dateWbsElTreeClick = ({data, keys, key}) => {
-    queryKey.value = key
+    // queryKey.value = key
+        queryKey.value = ''
     nodeDataInfo.value = data
     //缓存自动展开
     TreeExpandedKeys.value = keys

+ 1 - 1
src/views/tentative/detect/components/HcDragUpload.vue

@@ -38,7 +38,7 @@ const uploadData = ref(props.datas)
 const fileListData = ref(props.fileList);
 
 const action = '/api/blade-resource/oss/endpoint/put-file-attach';
-const accept = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+const accept = 'image/png,image/jpg,image/jpeg,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/pdf,.doc,.docx,application/msword';
 const uploadDisabled = ref(false)
 
 //监听