{"remainingRequest":"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-entrust.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-entrust.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//\n//\n//\n//\n\nimport SelectUser from './select-user'\nimport qs from 'qs'\nexport default {\n data () {\n return {\n visible: false,\n selectUserVisible: false,\n dataForm: {\n id: '',\n entrustUserId: '',\n entrustUserName: '',\n taskId: ''\n },\n // 回调函数\n callbacks: {\n taskHandleSuccessCallback: null,\n taskHandleErrorCallback: null\n }\n }\n },\n computed: {\n dataRule () {\n return {\n entrustUserName: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ]\n }\n }\n },\n components: {\n SelectUser\n },\n methods: {\n init () {\n this.visible = true\n this.$nextTick(() => {\n this.$refs['dataForm'].resetFields()\n })\n },\n // 委托\n entrustTask () {\n if (!this.dataForm.entrustUserId) {\n this.$message.error(this.$t('process.entrustError'))\n return\n }\n var task = qs.stringify({\n taskId: this.dataForm.taskId,\n assignee: this.dataForm.entrustUserId\n })\n this.$http['post']('/activiti/task/entrust', task).then(({ data: res }) => {\n if (res.code !== 0) {\n this.$message.error(res.msg)\n if (this.callbacks.taskHandleErrorCallback) {\n this.callbacks.taskHandleErrorCallback(res)\n }\n return\n }\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: () => {\n this.visible = false\n if (this.callbacks.taskHandleSuccessCallback) {\n this.callbacks.taskHandleSuccessCallback(res)\n }\n }\n })\n }).catch(() => {})\n },\n selectUserInfo () {\n this.selectUserVisible = true\n this.$nextTick(() => {\n this.$refs.selectUser.dataForm.id = ''\n this.$refs.selectUser.init(this.setUserInfo)\n })\n },\n setUserInfo (userInfo) {\n this.dataForm.entrustUserId = userInfo.id\n this.dataForm.entrustUserName = userInfo.realName\n }\n }\n}\n",{"version":3,"sources":["ren-task-entrust.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"ren-task-entrust.vue","sourceRoot":"src/components/ren-process-running/src","sourcesContent":["\n\n\n"]}]}