|
|
@ -75,7 +75,7 @@ try { |
|
|
|
|
|
|
|
|
|
|
|
// 读取数据文件
|
|
|
|
let workbook = XLSX.readFile(path.join(__dirname, './data/养护内容.xlsx')); |
|
|
|
let workbook = XLSX.readFile(path.join(__dirname, './data/work.xlsx')); |
|
|
|
let firstSheetName = workbook.SheetNames[0]; |
|
|
|
let worksheet = workbook.Sheets[firstSheetName]; |
|
|
|
let res = XLSX.utils.sheet_to_json(worksheet, { |
|
|
@ -86,9 +86,9 @@ try { |
|
|
|
|
|
|
|
// 读取全部图片
|
|
|
|
let pic = []; |
|
|
|
fs.readdirSync(path.join(__dirname, '/data/图片')).forEach((filename) => { |
|
|
|
fs.readdirSync(path.join(__dirname, '/data/pic')).forEach((filename) => { |
|
|
|
pic.push({ |
|
|
|
path: `./data/图片/${filename}`, |
|
|
|
path: `./data/pic/${filename}`, |
|
|
|
name: filename |
|
|
|
}) |
|
|
|
}); |
|
|
|