no message

This commit is contained in:
kuaifan 2021-07-01 20:27:49 +08:00
parent df5d521282
commit a8dda4b160
8 changed files with 19 additions and 7 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

1
public/js/build/370.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -146,6 +146,18 @@ export default {
this.$emit('input', value); this.$emit('input', value);
}, },
chatatABC(n) {
var orda = 'a'.charCodeAt(0);
var ordz = 'z'.charCodeAt(0);
var len = ordz - orda + 1;
var s = "";
while (n >= 0) {
s = String.fromCharCode(n % len + orda) + s;
n = Math.floor(n / len) - 1;
}
return s.toUpperCase();
},
exportExcel(bookName, bookType) { exportExcel(bookName, bookType) {
let allSheetData = window.luckysheet.getluckysheetfile(); let allSheetData = window.luckysheet.getluckysheetfile();
let SheetNames = []; let SheetNames = [];
@ -157,7 +169,7 @@ export default {
let cellValue = null; let cellValue = null;
// //
let setBackground = (row, col, bg) => { let setBackground = (row, col, bg) => {
var colA = window.luckysheet.luckysheetchatatABC(col); var colA = this.chatatABC(col);
var key = colA + (row + 1); var key = colA + (row + 1);
bgConfig[key] = bg.replace(/\#?/, ''); bgConfig[key] = bg.replace(/\#?/, '');
} }

View File

@ -202,7 +202,7 @@ export default {
break; break;
case 'sheet': case 'sheet':
this.$refs.mySheet.exportExcel(this.file.title, act); this.$refs.mySheet.exportExcel(this.file.name, act);
break; break;
} }
}, },