{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\yhxt-web\\src\\mixins\\uploadMixin.js","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\mixins\\uploadMixin.js","mtime":1710180839117},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["/*\r\n * @Description: \r\n * @Author: @liulin\r\n * @Date: 2023-04-12 14:14:15\r\n * @LastEditors: liulin liulin19981227@163.com\r\n * @LastEditTime: 2024-03-11 15:40:12\r\n */\nimport fileUpload from '@/components/upload/fileUploadProject.vue';\nexport var uploadMixin = {\n components: {\n fileUpload: fileUpload\n },\n data: function data() {\n return {\n dadToSon: {\n bizPath: 'specialproject',\n fileList: []\n },\n accessories: []\n };\n },\n methods: {\n sonToDad: function sonToDad(data) {\n console.log(data);\n var arr = data;\n // data.forEach(item => {\n // arr.push({\n // isDele: item.isDele,\n // attachmentName: item.name,\n // attachmentPath: item.url,\n // attachmentSuffix: item.suffix,\n // attachmentType: item.type,\n // type: 0\n // })\n // })\n this.accessories = arr;\n this.form.accessories = arr;\n this.formEdit.accessories = arr;\n // 防止用户打开了文件选择框之后不选择文件而出现效验失败\n if (this.form.accessories) {\n this.$refs.ruleForm.clearValidate('accessories');\n }\n },\n handleClose: function handleClose(done) {\n this.dadToSon.fileList = [];\n done();\n },\n handleCancel: function handleCancel() {\n this.dialogVisible = false;\n this.form = {};\n this.tableData = [];\n this.dadToSon.fileList = [];\n },\n sonToDadTable: function sonToDadTable(files, index) {\n this.tableData[index].detailAccessories = files;\n }\n }\n};",null]}