management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/228c6013369ce53e65241eefe59...

1 line
9.0 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-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//\nimport SelectUser from \"./select-user\";\nimport qs from 'qs';\nexport default {\n data: function 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: function dataRule() {\n return {\n entrustUserName: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n components: {\n SelectUser: SelectUser\n },\n methods: {\n init: function init() {\n var _this = this;\n\n this.visible = true;\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n });\n },\n // 委托\n entrustTask: function entrustTask() {\n var _this2 = this;\n\n if (!this.dataForm.entrustUserId) {\n this.$message.error(this.$t('process.entrustError'));\n return;\n }\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(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 }).catch(function () {});\n },\n selectUserInfo: function selectUserInfo() {\n var _this3 = this;\n\n this.selectUserVisible = true;\n this.$nextTick(function () {\n _this3.$refs.selectUser.dataForm.id = '';\n\n _this3.$refs.selectUser.init(_this3.setUserInfo);\n });\n },\n setUserInfo: function setUserInfo(userInfo) {\n this.dataForm.entrustUserId = userInfo.id;\n this.dataForm.entrustUserName = userInfo.realName;\n }\n }\n};",{"version":3,"sources":["ren-task-entrust.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBA,OAAA,UAAA;AACA,OAAA,EAAA,MAAA,IAAA;AACA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,KADA;AAEA,MAAA,iBAAA,EAAA,KAFA;AAGA,MAAA,QAAA,EAAA;AACA,QAAA,EAAA,EAAA,EADA;AAEA,QAAA,aAAA,EAAA,EAFA;AAGA,QAAA,eAAA,EAAA,EAHA;AAIA,QAAA,MAAA,EAAA;AAJA,OAHA;AASA;AACA,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AACA;AACA;;AACA,QAAA,MAAA,CAAA,QAAA,CAAA;AACA,UAAA,OAAA,EAAA,MAAA,CAAA,EAAA,CAAA,gBAAA,CADA;AAEA,UAAA,IAAA,EAAA,SAFA;AAGA,UAAA,QAAA,EAAA,GAHA;AAIA,UAAA,OAAA,EAAA,mBAAA;AACA,YAAA,MAAA,CAAA,OAAA,GAAA,KAAA;;AACA,gBAAA,MAAA,CAAA,SAAA,CAAA,yBAAA,EAAA;AACA,cAAA,MAAA,CAAA,SAAA,CAAA,yBAAA,CAAA,GAAA;AACA;AACA;AATA,SAAA;AAWA,OAnBA,EAmBA,KAnBA,CAmBA,YAAA,CAAA,CAnBA;AAoBA,KArCA;AAsCA,IAAA,cAtCA,4BAsCA;AAAA;;AACA,WAAA,iBAAA,GAAA,IAAA;AACA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,MAAA,CAAA,KAAA,CAAA,UAAA,CAAA,QAAA,CAAA,EAAA,GAAA,EAAA;;AACA,QAAA,MAAA,CAAA,KAAA,CAAA,UAAA,CAAA,IAAA,CAAA,MAAA,CAAA,WAAA;AACA,OAHA;AAIA,KA5CA;AA6CA,IAAA,WA7CA,uBA6CA,QA7CA,EA6CA;AACA,WAAA,QAAA,CAAA,aAAA,GAAA,QAAA,CAAA,EAAA;AACA,WAAA,QAAA,CAAA,eAAA,GAAA,QAAA,CAAA,QAAA;AACA;AAhDA;AA9BA,CAAA","sourcesContent":["<template>\n <el-dialog :visible.sync=\"visible\" :title=\"$t('process.entrustTask')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\n <el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" @keyup.enter.native=\"dataFormSubmitHandle()\" :label-width=\"$i18n.locale === 'en-US' ? '120px' : '80px'\">\n <el-form-item :label=\"$t('process.assignee')\">\n <el-input v-model=\"dataForm.entrustUserName\" class=\"input-with-select\">\n <el-button slot=\"append\" icon=\"el-icon-search\" @click=\"selectUserInfo()\"></el-button>\n </el-input>\n </el-form-item>\n </el-form>\n <template slot=\"footer\">\n <el-button @click=\"visible = false\">{{ $t('cancel') }}</el-button>\n <el-button type=\"primary\" @click=\"entrustTask()\">{{ $t('confirm') }}</el-button>\n </template>\n <select-user v-if=\"selectUserVisible\" ref=\"selectUser\" ></select-user>\n </el-dialog>\n</template>\n\n<script>\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</script>\n"],"sourceRoot":"src/components/ren-process-running/src"}]}