1
lzhe
2024-12-18 bc8e3fc5095cfc7cd60b928875b84cdbb14b54ed
1
已修改19个文件
99 ■■■■■ 文件已修改
src/layout/components/importTable.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/tool.js 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/material-warehousing-data/material-infoComp1.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/material-warehousing-data/reservoir-location/reservoir-location.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/product.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/tpm-data-header.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/tpmComp1.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/tpmComp2.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/basic-data/work-process.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/workstation/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/master/person/main/personDepartment.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/master/person/main/personPerson.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/master/person/main/personPost.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/alarm-statistics.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/efficiency-analysis.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/output-statistics.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/processParam/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/status-record.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/time-analysis.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/importTable.vue
@@ -54,7 +54,7 @@
            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);
                    }
                })
            },
src/utils/tool.js
@@ -2,7 +2,7 @@
 * @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';
@@ -271,5 +271,18 @@
      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
src/views/console/basic-data/material-warehousing-data/material-infoComp1.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -256,7 +256,7 @@
        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(() => { })
        },
src/views/console/basic-data/material-warehousing-data/reservoir-location/reservoir-location.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -275,7 +275,7 @@
        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(() => { })
        },
src/views/console/basic-data/product.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -362,7 +362,7 @@
            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);
                    }
                })
            },
src/views/console/basic-data/tpm-data-header.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -142,7 +142,7 @@
        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);
                }
            })
        }
src/views/console/basic-data/tpmComp1.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -266,7 +266,7 @@
        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);
                }
            })
        },
src/views/console/basic-data/tpmComp2.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -360,7 +360,7 @@
        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);
                }
            })
        },
src/views/console/basic-data/work-process.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -304,7 +304,7 @@
            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);
                    }
                })
            },
src/views/console/workstation/index.vue
@@ -478,7 +478,7 @@
                workstationId: this.previewData.id
            })).then(res => {
                if (res.code == 200) {
                    window.open(res.data.link)
                    this.$TOOL.downFile(res.data.link,res.data.originalName);
                }
            })
        },
src/views/master/person/main/personDepartment.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -115,7 +115,7 @@
            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);
                    }
                })
            },
src/views/master/person/main/personPerson.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -247,7 +247,7 @@
        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);
                }
            })
        },
src/views/master/person/main/personPost.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -110,7 +110,7 @@
            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);
                    }
                })
            },
src/views/mdc/alarm-statistics.vue
@@ -1,7 +1,7 @@
<!--
 * @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
 * 效率分析
-->
@@ -138,7 +138,7 @@
                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)
                }
src/views/mdc/efficiency-analysis.vue
@@ -1,7 +1,7 @@
<!--
 * @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
 * 效率分析
-->
@@ -222,7 +222,7 @@
                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)
                }
src/views/mdc/output-statistics.vue
@@ -1,7 +1,7 @@
<!--
 * @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
 * 效率分析
-->
@@ -214,7 +214,7 @@
                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)
                }
src/views/mdc/processParam/index.vue
@@ -1,7 +1,7 @@
<!--
 * @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
 实时看板
-->
@@ -165,7 +165,7 @@
                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)
                }
src/views/mdc/status-record.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -228,7 +228,7 @@
            }
            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);
                }
            })
        },
src/views/mdc/time-analysis.vue
@@ -2,7 +2,7 @@
 * @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
-->
@@ -385,7 +385,7 @@
                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)
                }
@@ -663,7 +663,7 @@
            // }
            // this.$HTTP.post(`/api/mdc/time-used-analysis/excel/export`,obj).then(res=> {
            //     if(res.code == 200) {
            //         window.open(res.data.link);
            //
            //     }
            // })
        },