{"remainingRequest":"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-entrust.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\components\\ren-process-running\\src\\ren-task-entrust.vue","mtime":1581948664000},{"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":["\r\nimport SelectUser from './select-user'\r\nimport qs from 'qs'\r\nexport default {\r\n data () {\r\n return {\r\n visible: false,\r\n selectUserVisible: false,\r\n dataForm: {\r\n id: '',\r\n entrustUserId: '',\r\n entrustUserName: '',\r\n taskId: ''\r\n },\r\n // 回调函数\r\n callbacks: {\r\n taskHandleSuccessCallback: null,\r\n taskHandleErrorCallback: null\r\n }\r\n }\r\n },\r\n computed: {\r\n dataRule () {\r\n return {\r\n entrustUserName: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ]\r\n }\r\n }\r\n },\r\n components: {\r\n SelectUser\r\n },\r\n methods: {\r\n init () {\r\n this.visible = true\r\n this.$nextTick(() => {\r\n this.$refs['dataForm'].resetFields()\r\n })\r\n },\r\n // 委托\r\n entrustTask () {\r\n if (!this.dataForm.entrustUserId) {\r\n this.$message.error(this.$t('process.entrustError'))\r\n return\r\n }\r\n var task = qs.stringify({\r\n taskId: this.dataForm.taskId,\r\n assignee: this.dataForm.entrustUserId\r\n })\r\n this.$http['post']('/act/task/entrust', task).then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n this.$message.error(res.msg)\r\n if (this.callbacks.taskHandleErrorCallback) {\r\n this.callbacks.taskHandleErrorCallback(res)\r\n }\r\n return\r\n }\r\n this.$message({\r\n message: this.$t('prompt.success'),\r\n type: 'success',\r\n duration: 500,\r\n onClose: () => {\r\n this.visible = false\r\n if (this.callbacks.taskHandleSuccessCallback) {\r\n this.callbacks.taskHandleSuccessCallback(res)\r\n }\r\n }\r\n })\r\n }).catch(() => {})\r\n },\r\n selectUserInfo () {\r\n this.selectUserVisible = true\r\n this.$nextTick(() => {\r\n this.$refs.selectUser.dataForm.id = ''\r\n this.$refs.selectUser.init(this.setUserInfo)\r\n })\r\n },\r\n setUserInfo (userInfo) {\r\n this.dataForm.entrustUserId = userInfo.id\r\n this.dataForm.entrustUserName = userInfo.realName\r\n }\r\n }\r\n}\r\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":["\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t('cancel') }}\r\n {{ $t('confirm') }}\r\n \r\n \r\n \r\n\r\n\r\n\r\n"]}]}