|
@@ -307,7 +307,8 @@
|
|
|
|
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
|
|
+ let lowerFileNameSuffix = fileNameSuffix.toLowerCase();
|
|
|
|
+ if(lowerFileNameSuffix === "xml" ) {
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
const formBody = new FormData()
|
|
const formBody = new FormData()
|
|
formBody.append('file', file.raw)
|
|
formBody.append('file', file.raw)
|
|
@@ -483,7 +484,8 @@
|
|
|
|
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
|
|
+ let lowerFileNameSuffix = fileNameSuffix.toLowerCase();
|
|
|
|
+ if(lowerFileNameSuffix === "xml" ) {
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
const formBody = new FormData()
|
|
const formBody = new FormData()
|
|
if(null === row.raw || undefined === row.raw){
|
|
if(null === row.raw || undefined === row.raw){
|
|
@@ -540,7 +542,8 @@
|
|
|
|
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
|
|
+ let lowerFileNameSuffix = fileNameSuffix.toLowerCase();
|
|
|
|
+ if(lowerFileNameSuffix === "xml" ) {
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
const formBody = new FormData()
|
|
const formBody = new FormData()
|
|
if(null === row.raw || undefined === row.raw){
|
|
if(null === row.raw || undefined === row.raw){
|
|
@@ -604,7 +607,8 @@
|
|
|
|
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
const spliceLength2 = fileName.lastIndexOf(".");
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
var fileNameSuffix = fileName.slice(spliceLength2 + 1);
|
|
- if(fileNameSuffix === "xml" ) {
|
|
|
|
|
|
+ let lowerFileNameSuffix = fileNameSuffix.toLowerCase();
|
|
|
|
+ if(lowerFileNameSuffix === "xml" ) {
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
//对上传的xml文件信息进行处理并通过后端接口进行解析返回到父页面进行调整
|
|
const formBody = new FormData()
|
|
const formBody = new FormData()
|
|
if(null === row.raw || undefined === row.raw){
|
|
if(null === row.raw || undefined === row.raw){
|