forked from zhurui/management
1 line
17 KiB
JSON
1 line
17 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-process-running\\src\\ren-task-handle.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-process-running\\src\\ren-task-handle.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport debounce from 'lodash/debounce';\nimport qs from 'qs';\nexport default {\n data: function data() {\n return {\n visible: false,\n handleType: '',\n handleTitle: '',\n dataForm: {\n comment: '',\n taskId: ''\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\n this.visible = true;\n\n if (this.handleType === 'complete') {\n this.handleTitle = this.$t('process.completeTask');\n } else if (this.handleType === 'reject') {\n this.handleTitle = this.$t('process.rejectTask');\n } else if (this.handleType === 'termination') {\n this.handleTitle = this.$t('process.terminationTask');\n }\n\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n });\n },\n // 表单提交\n dataFormSubmitHandle: function dataFormSubmitHandle() {\n if (this.handleType === 'complete') {\n this.completeTask();\n } else if (this.handleType === 'reject') {\n this.rejectTask();\n } else if (this.handleType === 'termination') {\n this.terminationTask();\n }\n },\n // 驳回\n rejectTask: debounce(function () {\n var _this2 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n if (!_this2.dataForm.taskId) {\n return false;\n }\n\n var params = qs.stringify({\n 'taskId': _this2.dataForm.taskId,\n 'comment': _this2.dataForm.comment\n });\n\n _this2.$http['post']('/activiti/task/backToFirst?', params).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n _this2.$message.error(res.msg);\n\n if (_this2.callbacks.taskHandleErrorCallback) {\n _this2.callbacks.taskHandleErrorCallback(res);\n }\n\n return;\n }\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\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
|