# iotStudio **Repository Path**: s142729/iotStudio ## Basic Information - **Project Name**: iotStudio - **Description**: 工业物联网持续集成平台管理端 - **Primary Language**: Unknown - **License**: MPL-2.0 - **Default Branch**: song - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-22 - **Last Updated**: 2026-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # iotStudio 轻量级工业物联网管理后台 [下载 dgiot_develop_tools](https://dgiot-dev-1306147891.cos.ap-nanjing.myqcloud.com/msys64/msys64.zip) ## 安装使用 - 获取项目代码 git clone -b master https://github.com/dgiot/iotStudio.git - 安装依赖 cd iotStudio npm install yarn -g yarn config set registry https://registry.npm.taobao.org -g yarn -v yarn install - 运行 yarn dev - 打包 yarn build - [本地预览](http://localhost/) - 登录 - 用户名 - dgiot_dev - 密码 - dgiot_dev - 下载相关使用运行文件 cd ./dist/ wget https://dgiot-release-1306147891.cos.ap-nanjing.myqcloud.com/v4.4.0/dgiot_dashboard.tar.gz tar xf dgiot_dashboard.tar.gz wget https://dgiot-release-1306147891.cos.ap-nanjing.myqcloud.com/v4.4.0/dgiot_file.tar.gz tar xf dgiot_file.tar.gz wget https://dgiot-release-1306147891.cos.ap-nanjing.myqcloud.com/v4.4.0/dgiot_swagger.tar.gz tar xf dgiot_swagger.tar.gz 使用 xlsx-style 报JSZip 3.0 报错问题解决办法 解决方案: 在node_modules文件夹中找到,xlsx-style文件夹 在找到 xlsx.js node_modules\xlsx-style\xlsx.js 找到 文件中的 1334行 到1342行 原本写法 var _fs, jszip; if(typeof JSZip !== 'undefined') jszip = JSZip; if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { if(has_buf && typeof jszip === 'undefined') jszip = require('js'+'zip'); if(typeof jszip === 'undefined') jszip = require('./js'+'zip').JSZip; _fs = require('f'+'s'); } } 修改后写法 var _fs, jszip; if(typeof JSZip !== 'undefined') jszip = JSZip; if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { if(has_buf && typeof jszip === 'undefined') jszip = require('js'+'zip'); if(typeof jszip === 'undefined') jszip = require('./js'+'zip'); _fs = require('f'+'s'); } } // node_modules里找到xlsx-style文件夹最外层的xlsx.js中的第11766行开始 // 原版的代码---修改前 function write_zip_type(wb, opts) { var o = opts||{ }; style_builder = new StyleBuilder(opts); var z = write_zip(wb, o); switch(o.type) { case "base64": return z.generate({ type:"base64"}); case "binary": return z.generate({ type:"string"}); case "buffer": return z.generate({ type:"nodebuffer"}); case "file": return _fs.writeFileSync(o.file, z.generate({ type:"nodebuffer"})); default: throw new Error("Unrecognized type " + o.type); } } //修改后的代码 function write_zip_type(wb, opts) { var o = opts||{ }; style_builder = new StyleBuilder(opts); console.log(o,o.type) var z = write_zip(wb, o); switch(o.type) { case "base64": return z.generateAsync({ type:"base64"}).then(res => { // console.log(res) return res }); case "binary": return z.generateAsync({ type:"string"}).then( res => { // console.log(res) return res }); case "buffer": return z.generateAsync({ type:"nodebuffer"}).then( res => { // console.log(res) return res }); case "file": return z.generateAsync({ type:"nodebuffer"}).then( res => { // console.log(res) return _fs.writeFileSync(o.file,res) // return res }); default: throw new Error("Unrecognized type " + o.type); } }