Browse Source

养护初始数据

release_0.0.1
巴林闲侠 3 years ago
parent
commit
ba5437ade4
  1. 0
      scripts/0.0.1/data/3_init_report_pic_data/data/work.xlsx
  2. 6
      scripts/0.0.1/data/3_init_report_pic_data/index.js

0
scripts/0.0.1/data/3_init_report_pic_data/data/养护内容.xlsx → scripts/0.0.1/data/3_init_report_pic_data/data/work.xlsx

6
scripts/0.0.1/data/3_init_report_pic_data/index.js

@ -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
})
});

Loading…
Cancel
Save