mengshukeji
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
5 deletions
-
src/controllers/server.js
-
src/global/extend.js
|
|
@ -635,8 +635,7 @@ const server = { |
|
|
|
for(let i = 0; i < len; i++){ |
|
|
|
arr.push(JSON.stringify(addData[i])); |
|
|
|
} |
|
|
|
|
|
|
|
eval('data.splice(' + st_i + ', 0, ' + arr.join(",") + ')'); |
|
|
|
new Function("data","return " + 'data.splice(' + st_i + ', 0, ' + arr.join(",") + ')')(data); |
|
|
|
} |
|
|
|
else{ |
|
|
|
file["column"] += len; |
|
|
|
|
|
@ -713,14 +713,14 @@ function luckysheetextendtable(type, index, value, direction, sheetIndex) { |
|
|
|
|
|
|
|
if(direction == "lefttop"){ |
|
|
|
if(index == 0){ |
|
|
|
new Function("return " + 'd.unshift(' + arr.join(",") + ')')(); |
|
|
|
new Function("d","return " + 'd.unshift(' + arr.join(",") + ')')(d); |
|
|
|
} |
|
|
|
else{ |
|
|
|
new Function("return " + 'd.splice(' + index + ', 0, ' + arr.join(",") + ')')(); |
|
|
|
new Function("d","return " + 'd.splice(' + index + ', 0, ' + arr.join(",") + ')')(d); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
new Function("return " + 'd.splice(' + (index + 1) + ', 0, ' + arr.join(",") + ')')(); |
|
|
|
new Function("d","return " + 'd.splice(' + (index + 1) + ', 0, ' + arr.join(",") + ')')(d); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|