{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\components\\ren-process-running\\src\\ren-task-back.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\components\\ren-process-running\\src\\ren-task-back.vue","mtime":1581948664000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import debounce from 'lodash/debounce';\nimport qs from 'qs';\nexport default {\n data: function data() {\n return {\n visible: false,\n dataForm: {\n id: '',\n comment: '',\n taskId: '',\n processInstanceId: ''\n },\n // 回调函数\n callbacks: {\n taskHandleSuccessCallback: null,\n taskHandleErrorCallback: null\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n comment: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n methods: {\n init: function init() {\n var _this = this;\n this.visible = true;\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n });\n },\n doBackRollback: debounce(function () {\n var _this2 = this;\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n var params = qs.stringify({\n 'taskId': _this2.dataForm.taskId,\n 'processInstanceId': _this2.dataForm.processInstanceId,\n 'comment': _this2.dataForm.comment\n });\n _this2.$http['post']('/act/task/backPreviousTask?', params).then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n _this2.$message.error(res.msg);\n if (_this2.callbacks.taskHandleErrorCallback) {\n _this2.callbacks.taskHandleErrorCallback(res);\n }\n return;\n }\n _this2.$message({\n message: _this2.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this2.visible = false;\n if (_this2.callbacks.taskHandleSuccessCallback) {\n _this2.callbacks.taskHandleSuccessCallback(res);\n }\n }\n });\n });\n });\n }, 1000, {\n 'leading': true,\n 'trailing': false\n })\n }\n};",{"version":3,"names":["debounce","qs","data","visible","dataForm","id","comment","taskId","processInstanceId","callbacks","taskHandleSuccessCallback","taskHandleErrorCallback","computed","dataRule","required","message","$t","trigger","methods","init","_this","$nextTick","$refs","resetFields","doBackRollback","_this2","validate","valid","params","stringify","$http","then","_ref","res","code","$message","error","msg","type","duration","onClose"],"sources":["src/components/ren-process-running/src/ren-task-back.vue"],"sourcesContent":["\r\n\r\n\r\n"],"mappings":"AAeA,OAAAA,QAAA;AACA,OAAAC,EAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;MACAC,QAAA;QACAC,EAAA;QACAC,OAAA;QACAC,MAAA;QACAC,iBAAA;MACA;MACA;MACAC,SAAA;QACAC,yBAAA;QACAC,uBAAA;MACA;IACA;EACA;EACAC,QAAA;IACAC,QAAA,WAAAA,SAAA;MACA;QACAP,OAAA,GACA;UAAAQ,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA;MAEA;IACA;EACA;EACAC,OAAA;IACAC,IAAA,WAAAA,KAAA;MAAA,IAAAC,KAAA;MACA,KAAAjB,OAAA;MACA,KAAAkB,SAAA;QACAD,KAAA,CAAAE,KAAA,aAAAC,WAAA;MACA;IACA;IACAC,cAAA,EAAAx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