yangys
2025-09-09 3574d585300e449ffccd6d7b7b523c4ba1477f0e
增加异常文件统计
已修改1个文件
21 ■■■■ 文件已修改
src/views/statreport/machinefileexception.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/statreport/machinefileexception.vue
@@ -14,11 +14,6 @@
                
                <el-button type="primary" plain @click="exportExcel">导出到EXCEL</el-button>
            </template>
            <template #menu="scope">
                <el-button type="primary" text size="default"
                    @click.stop="handleAction(scope.row, scope.index)">审批
                </el-button>
            </template>
        </avue-crud>
    </basic-container>
</template>
@@ -70,7 +65,8 @@
                    },
                    {
                        label: '异常信息',
                        prop: 'exceptionType',
                        prop: 'exceptionMsg',
                        /*
                        render: ({row}) => {
                            
                            var txt = '未知';
@@ -91,7 +87,7 @@
                                    txt = '未知';
                            }
                            return txt;
                        }
                        }*/
                    },
                    {
                        label: '时间', //文件到达时间
@@ -114,10 +110,11 @@
        },
        
        exportExcel() {
            /*
            if (this.selectedList.length === 0) {
                this.$message.warning('请先选择需要导出的数据');
                return;
            }
            }*/
            this.$confirm('是否导出?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
@@ -125,9 +122,13 @@
            }).then(() => {
                NProgress.start();
                exportBlob(
                    `/blade-mdm/machinefile/filehandle/export-excel?${this.website.tokenHeader}=${getToken()}`
                    `/blade-mdm/statreport/exceptionfile/export-excel?${this.website.tokenHeader}=${getToken()}`
                ).then(res => {
                    downloadXls(res.data, `机床回传程序列表${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
                    let name = res.headers['content-disposition'].split('filename=')[1]
                    name = decodeURI(name)
                        //console.log(res.headers['content-disposition'].split('filename=')[1]);
                    downloadXls(res.data, `${name}`);
                    //downloadXls(res.data, `机床回传程序列表${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
                    NProgress.done();
                });
            });