{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailGet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\mail\\mailGet.vue","mtime":1675214577526},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { mapState, mapActions } from \"vuex\";\r\nimport req from \"@/request.js\";\r\nimport { Message } from \"element-ui\";\r\nconst portal = window.context.portal;\r\n\r\nexport default {\r\n    props:[\"id\"],\r\n    name:\"mailGet\",\r\n    data() {\r\n        return {\r\n            mailAttachments:[],\r\n            length:0,\r\n        }\r\n    },\r\n    computed :mapState({\r\n        data: state => state.mail.mailData\r\n    }),\r\n    methods: {\r\n        back() {\r\n            this.$router.go(-1);//返回上一层\r\n        },\r\n        reply() {\r\n            this.$router.push(\"/mail/mailEdit/\" + this.id);\r\n        },\r\n        deletes() {\r\n            this.$confirm('此操作将删除该文件, 是否继续?', '提示', {\r\n                confirmButtonText: '确定',\r\n                cancelButtonText: '取消',\r\n                type: 'warning'\r\n                }).then(() => {\r\n                    this.$store.dispatch(\"mail/deleteMaliOnes\",this.data).then(()=>{\r\n                        this.back();\r\n                    });\r\n                }).catch(() => {\r\n                    this.$message({\r\n                        type: 'info',\r\n                        message: '已取消删除'\r\n                    });\r\n            });\r\n\r\n\r\n        },\r\n        download(item) {\r\n            req.download(\"${portal}/system/file/v1/downloadFile?fileId=\" +  item.id);\r\n        }\r\n    },\r\n    created() {\r\n        this.$store.dispatch(\"mail/getMailById\",this.id).then((data)=>{\r\n            this.mailAttachments=data.mailAttachments;\r\n            this.length=data.mailAttachments.length;\r\n        });\r\n    }\r\n}\r\n",null]}