| | |
| | | exportBtn() { |
| | | this.$HTTP.get(this.exportUrl).then(res=> { |
| | | if(res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Descripttion: 工具集 |
| | | * @version: 1.2 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-12 20:33:31 |
| | | * @LastEditTime: 2024-12-18 15:11:50 |
| | | */ |
| | | |
| | | import CryptoJS from 'crypto-js'; |
| | |
| | | return `${encodeURIComponent(key)}=${encodeURIComponent(obj[key])}`; |
| | | }).join('&'); |
| | | } |
| | | |
| | | // 下载文件 |
| | | tool.downFile = function(link,fileName) { |
| | | const x = new XMLHttpRequest(); |
| | | x.open('GET', link, true); |
| | | x.responseType = 'blob'; |
| | | x.onload = function () { |
| | | const url = window.URL.createObjectURL(x.response); |
| | | const a = document.createElement('a'); |
| | | a.href = url; |
| | | a.download = fileName; |
| | | a.click(); |
| | | } |
| | | x.send(); |
| | | } |
| | | export default tool |
| | |
| | | <!-- |
| | | * @Date: 2024-05-08 21:29:53 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-16 14:41:35 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:22:31 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/material-warehousing-data/material-infoComp1.vue |
| | | --> |
| | | <template> |
| | |
| | | getExport() { |
| | | this.$HTTP.post(`/api/smis/material/export-material`, { ...this.params }).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }).catch(() => { }) |
| | | }, |
| | |
| | | <!-- |
| | | * @Date: 2024-05-07 22:51:22 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-16 16:17:19 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:21:11 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/material-warehousing-data/reservoir-location/reservoir-location.vue |
| | | --> |
| | | <template> |
| | |
| | | getExport() { |
| | | this.$HTTP.post(`/api/smis/warehouse-station/export-station`, { ...this.params }).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }).catch(() => { }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-02 17:48:31 |
| | | * @LastEditTime: 2024-12-18 15:21:16 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | getExport() { |
| | | this.$HTTP.post(`/api/smis/product/export-product`,this.searchData).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <!-- |
| | | * @Date: 2024-06-16 19:51:01 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-23 19:53:09 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:15:52 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/tpm-data-header.vue |
| | | --> |
| | | <template> |
| | |
| | | exportData() { |
| | | this.$HTTP.post(this.exportUrl, this.params).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | } |
| | |
| | | <!-- |
| | | * @Date: 2024-06-23 19:58:50 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-23 21:07:31 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:16:47 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/tpmComp1.vue |
| | | --> |
| | | <template> |
| | |
| | | exportData() { |
| | | this.$HTTP.post(`/api/smis/check-project/excel/export`, {}, { params: this.params }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <!-- |
| | | * @Date: 2024-06-23 21:32:05 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-23 23:47:43 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:17:16 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/basic-data/tpmComp2.vue |
| | | --> |
| | | <template> |
| | |
| | | exportData() { |
| | | this.$HTTP.post(`/api/smis/device-types/excel/export`, {}, { params: this.params }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-05-24 18:18:17 |
| | | * @LastEditTime: 2024-12-18 15:21:23 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | getExport() { |
| | | this.$HTTP.get(`/api/smis/process/export-process?keyword=&status=1`).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | workstationId: this.previewData.id |
| | | })).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-10-24 18:37:07 |
| | | * @LastEditTime: 2024-12-18 15:13:46 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | getExport() { |
| | | this.$HTTP.get(`/api/smis/organization/export-organization?`+this.$TOOL.qsStringify(this.searchData)).then(res=> { |
| | | if(res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-04 11:02:26 |
| | | * @LastEditTime: 2024-12-18 15:11:30 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/master/person/main/personPerson.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | getExport() { |
| | | this.$HTTP.get(`/api/smis/employee/export-employee?` + this.$TOOL.qsStringify(this.searchData)).then(res => { |
| | | if (res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-10 15:44:08 |
| | | * @LastEditTime: 2024-12-18 15:13:20 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | getExport() { |
| | | this.$HTTP.get(`/api/blade-system/post/export-post?`+this.$TOOL.qsStringify(this.postSearchData)).then(res=> { |
| | | if(res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-04 13:39:09 |
| | | * @LastEditTime: 2024-12-18 15:20:51 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/alarm-statistics.vue |
| | | * 效率分析 |
| | | --> |
| | |
| | | workstationId: this.treeChecked.toString() |
| | | }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-04 12:23:49 |
| | | * @LastEditTime: 2024-12-18 15:21:29 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/efficiency-analysis.vue |
| | | * 效率分析 |
| | | --> |
| | |
| | | workStationIdList: this.treeChecked |
| | | }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-04 12:24:06 |
| | | * @LastEditTime: 2024-12-18 15:20:45 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/output-statistics.vue |
| | | * 效率分析 |
| | | --> |
| | |
| | | workStationIdList: this.treeChecked |
| | | }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-11-13 20:20:54 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-12-18 15:20:37 |
| | | * @FilePath: /cps-web/src/views/mdc/processParam/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | workstationName: '' |
| | | }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-26 09:36:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-08 16:34:22 |
| | | * @LastEditTime: 2024-12-18 15:21:51 |
| | | * @FilePath: /smart-web/src/views/mdc/status-record.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | } |
| | | this.$HTTP.post(`/api/mdc/status-record/excel/export`,obj).then(res=> { |
| | | if(res.code == 200) { |
| | | window.open(res.data.link); |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } |
| | | }) |
| | | }, |
| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-26 09:36:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-08 18:13:17 |
| | | * @LastEditTime: 2024-12-18 15:21:44 |
| | | * @FilePath: /smart-web/src/views/mdc/status-record.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | ids |
| | | }).then(res => { |
| | | if (res.success) { |
| | | window.open(res.data.link) |
| | | this.$TOOL.downFile(res.data.link,res.data.originalName); |
| | | } else { |
| | | this.$message.error(res.msg) |
| | | } |
| | |
| | | // } |
| | | // this.$HTTP.post(`/api/mdc/time-used-analysis/excel/export`,obj).then(res=> { |
| | | // if(res.code == 200) { |
| | | // window.open(res.data.link); |
| | | // |
| | | // } |
| | | // }) |
| | | }, |