{"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\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\components\\applyRecord.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\components\\applyRecord.vue","mtime":1723832016853},{"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\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-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//\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\nimport moment from 'moment';\nimport req from '@/request.js';\nexport default {\n name: 'applyRecord',\n data: function data() {\n return {\n visible: false,\n loading: false,\n tableData: [],\n bizPath: 'resourceApply' // 上传时文件储存path\n };\n },\n\n methods: {\n handleOpen: function handleOpen(row) {\n var _this = this;\n this.tableData = [];\n this.visible = true;\n this.loading = true;\n this.$http.get('${yhxt}/bizCloudApplyApprovalRecord/v1/getRecord/' + row.id).then(function (res) {\n if (res && res.data && res.data.value) _this.tableData = res.data.value || [];\n }).finally(function () {\n _this.loading = false;\n });\n },\n handleClose: function handleClose() {\n this.visible = false;\n this.tableData = [];\n },\n handleDownload: function handleDownload(file) {\n var _this2 = this;\n if (file.id) {\n req.downloadGetCopy(window.context.yhxt + \"/bizAccessory/v1/minIoAllDownFile?bizPath=\".concat(this.bizPath, \"&ids=\").concat(file.id)).then(function (res) {\n if (res) {\n _this2.$message.success('下载成功');\n }\n });\n } else {\n this.$message.info('文件信息缺失,无法下载!');\n }\n },\n transTime: function transTime(time) {\n var text;\n if (time) {\n var duration = moment.duration(time);\n var days = duration.get('days');\n var hours = duration.get('hours');\n var minutes = duration.get('minutes');\n var seconds = duration.get('seconds');\n days = days ? days + '天' : '';\n hours = hours ? hours + '小时' : '';\n minutes = minutes ? minutes + '分钟' : '';\n seconds = seconds ? seconds + '秒' : '';\n text = days + hours + minutes + seconds;\n } else {\n text = '-';\n }\n return text;\n },\n transResult: function transResult(status) {\n var text;\n if (status === -1) {\n text = '未处理';\n } else if (status === 0) {\n text = '驳回';\n } else if (status === 1) {\n text = '同意';\n } else if (status === 3) {\n text = '发起';\n } else if (status === 4) {\n text = '完成';\n }\n return text;\n }\n }\n};",null]}