| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import {getPageList, dowloand_do, addOrEdit, del, revoke, put} from "@/api/sgyhpczl/troubleshooting"; |
| | | import {getPageList,addOrEdit, del, revoke, put} from "@/api/sgyhpczl/troubleshooting"; |
| | | import {uploadFile} from "@/api/sgyhpczl/hiddenDangerRectification"; |
| | | import {deepClone} from '@/utils' |
| | | import {downloadFile} from "@/api/sgyhpczl/fileUtils"; |
| | |
| | | type: 1, |
| | | fileName: path, |
| | | }; |
| | | dowloand_do(params).then((res) => { |
| | | downloadFile(params).then((res) => { |
| | | if(res.data.type=='text/json'){ |
| | | const reader = new FileReader(); //创建一个FileReader实例 |
| | | reader.readAsText(res.data, 'utf-8'); //读取文件,结果用字符串形式表示 |