1 line
14 KiB
JSON
1 line
14 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-start\\src\\ren-process-start.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\components\\ren-process-start\\src\\ren-process-start.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//\nimport qs from 'qs';\nexport default {\n name: 'RenProcessStart',\n data: function data() {\n return {\n formUrl: '',\n instanceIdUrl: '',\n formName: null,\n rootObj: null,\n dataForm: {\n processDefinitionKey: ''\n },\n // 回调函数\n callbacks: {\n startProcessSuccessCallback: null,\n startProcessErrorCallback: null,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null\n }\n };\n },\n components: {},\n created: function created() {\n var _this = this;\n\n this.$nextTick(function () {\n _this.formUrl = _this.saveFormUrl;\n _this.instanceIdUrl = _this.updateInstanceIdUrl;\n _this.formName = _this.dataFormName;\n });\n },\n props: {\n saveFormUrl: String,\n updateInstanceIdUrl: String,\n dataFormName: String\n },\n watch: {\n saveFormUrl: function saveFormUrl(val) {\n this.formUrl = val;\n },\n updateInstanceIdUrl: function updateInstanceIdUrl(val) {\n this.instanceIdUrl = val;\n },\n dataFormName: function dataFormName(val) {\n this.formName = val;\n }\n },\n methods: {\n // 启动流程事件\n processStartHandle: function processStartHandle() {\n var _this2 = this;\n\n if (!this.formUrl) {\n return this.$message.error(this.$t('process.formURLError'));\n }\n\n if (!this.dataForm.processDefinitionKey) {\n return this.$message.error(this.$t('process.keyError'));\n }\n\n if (!this.formName) {\n return this.$message.error(this.$t('process.formNameError'));\n }\n\n this.rootObj.$refs[this.formName].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.$http.get(\"/activiti/process/lastestPage\", {\n params: {\n key: _this2.dataForm.processDefinitionKey\n }\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n if (!res.data.list || res.data.list.length <= 0) {\n return _this2.$message.error(_this2.$t('process.notExistError'));\n }\n\n _this2.$http['post'](_this2.formUrl, _this2.rootObj[_this2.formName]).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n _this2.$message.error(res.msg);\n\n if (_this2.callbacks.formSaveErrorCallback) {\n _this2.callbacks.formSaveErrorCallback(res);\n }\n }\n\n if (_this2.callbacks.formSaveSuccessCallback) {\n _this2.callbacks.formSaveSuccessCallback(res);\n }\n\n if (!res.data.businessKey) {\n return _this2.$message.error(_this2.$t('process.businessKeyErro
|