7c39c2eb by fanguang Committed by lihua

import

1 parent 738bb9d2
...@@ -458,3 +458,7 @@ const drawerClose = () => { ...@@ -458,3 +458,7 @@ const drawerClose = () => {
458 } 458 }
459 } 459 }
460 </style> 460 </style>
461
462 <style lang="scss">
463
464 </style>
......
...@@ -426,8 +426,8 @@ const importData = (info) => { ...@@ -426,8 +426,8 @@ const importData = (info) => {
426 sheetMaps[item.value] = item.standardGuid 426 sheetMaps[item.value] = item.standardGuid
427 } 427 }
428 }) 428 })
429 sheetMaps = JSON.stringify(sheetMaps) 429 sheetMaps = encodeURIComponent(JSON.stringify(sheetMaps))
430 paramUrl = encodeURIComponent(`${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-batch-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&sheetMaps=${sheetMaps}`) 430 paramUrl = `${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-batch-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&sheetMaps=${sheetMaps}`
431 dialogInfo.value.footer.btns[1].loading = true; 431 dialogInfo.value.footer.btns[1].loading = true;
432 addImportData(paramUrl, params).then((res: any) => { 432 addImportData(paramUrl, params).then((res: any) => {
433 dialogInfo.value.footer.btns[1].loading = false; 433 dialogInfo.value.footer.btns[1].loading = false;
......
...@@ -426,8 +426,8 @@ const importData = (info) => { ...@@ -426,8 +426,8 @@ const importData = (info) => {
426 sheetMaps[item.value] = item.standardGuid 426 sheetMaps[item.value] = item.standardGuid
427 } 427 }
428 }) 428 })
429 sheetMaps = JSON.stringify(sheetMaps) 429 sheetMaps = encodeURIComponent(JSON.stringify(sheetMaps))
430 paramUrl = encodeURIComponent(`${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-batch-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&sheetMaps=${sheetMaps}`) 430 paramUrl = `${import.meta.env.VITE_APP_ADD_FILE}/import-data/import-batch-common?importType=${importType.value}&staffGuid=${userData.staffGuid}&tenantGuid=${userData.tenantGuid}&sheetMaps=${sheetMaps}`
431 dialogInfo.value.footer.btns[1].loading = true; 431 dialogInfo.value.footer.btns[1].loading = true;
432 addImportData(paramUrl, params).then((res: any) => { 432 addImportData(paramUrl, params).then((res: any) => {
433 dialogInfo.value.footer.btns[1].loading = false; 433 dialogInfo.value.footer.btns[1].loading = false;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!