forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-10 b6944bfda25eb9a6935d137792de7e9096e453b2
上传材料修改
1 files modified
8 ■■■■■ changed files
gz-customerSystem/src/views/register/matterDetail/FileTable.jsx 8 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/matterDetail/FileTable.jsx
@@ -218,13 +218,10 @@
  //上传弹窗完成后的事件
  const handleUpload = () => {
    console.log('tableData', tableData);
    console.log('fileMap', fileMap);
    const newList = tableData.map(item => {
      if (item.ownerType == '22_00018-101') {
        const data = fileMap['22_00018-101'];
        console.log('data', data);
        return {
          ...item,
          size: data.length,
@@ -241,7 +238,6 @@
      }
      if (item.ownerType == '22_00018-102') {
        const data = fileMap['22_00018-102'];
        console.log('data', data);
        return {
          ...item,
          size: data.length,
@@ -257,7 +253,6 @@
        }
      }
    })
    console.log('newList', newList);
    setTableData(newList)
    setUpLoadVisible(false);
@@ -265,7 +260,6 @@
  //根据sourceType生成组件
  const formType = (type) => {
    console.log('typetypetype', type);
    if (type === '22_00018-101') {
      //申请材料
@@ -290,7 +284,6 @@
                    return item
                  }
                })
                console.log('newList', newList);
                setFileMap({
                  ...fileMap,
@@ -326,7 +319,6 @@
                    return item
                  }
                })
                console.log('newList', newList);
                setFileMap({
                  ...fileMap,
                  '22_00018-102': newList.filter(i => i.ownerType === '22_00018-102')