no message
This commit is contained in:
parent
df5d521282
commit
a8dda4b160
2
public/js/app.js
vendored
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
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
2
public/js/build/931.js
vendored
2
public/js/build/931.js
vendored
File diff suppressed because one or more lines are too long
1
public/js/build/936.js
vendored
1
public/js/build/936.js
vendored
File diff suppressed because one or more lines are too long
@ -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(/\#?/, '');
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user