{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\process-initiation.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\process-initiation.vue","mtime":1581948666000},{"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 mixinViewModule from '@/mixins/view-module'\r\nimport Cookies from 'js-cookie'\r\nimport { addDynamicRoute } from '@/router'\r\nimport qs from 'qs'\r\nexport default {\r\n mixins: [mixinViewModule],\r\n data () {\r\n return {\r\n mixinViewModuleOptions: {\r\n getDataListURL: '/act/process/lastestPage',\r\n getDataListIsPage: true,\r\n deleteURL: '/act/process',\r\n deleteIsBatch: true,\r\n deleteIsBatchKey: 'deploymentId'\r\n },\r\n dataForm: {\r\n processName: '',\r\n key: ''\r\n },\r\n deployVisible: false\r\n }\r\n },\r\n components: {\r\n },\r\n methods: {\r\n // 获取流程(xml/image)url地址\r\n getResourceURL (id, name) {\r\n var params = qs.stringify({\r\n 'token': Cookies.get('token'),\r\n 'deploymentId': id,\r\n 'resourceName': name\r\n })\r\n return `${window.SITE_CONFIG['apiURL']}/act/process/resource?${params}`\r\n },\r\n // 发起流程\r\n createProcessInstance (row) {\r\n this.$http.get(`/act/process/getProcDefBizRoute/${row.id}`).then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\r\n }\r\n if (!res.data || !res.data.bizRoute) {\r\n return this.$message.error(this.$t('process.routeError'))\r\n }\r\n this.forwardUrl(res.data, row)\r\n }).catch(() => {})\r\n },\r\n forwardUrl (data, row) {\r\n var routeParams = {\r\n routeName: `${this.$route.name}__instance_${data.id}`,\r\n menuId: `${this.$route.meta.menuId}`,\r\n title: `${this.$route.meta.title} - ${row.name}`,\r\n path: data.bizRoute,\r\n params: {\r\n processDefinitionId: data.procDefId,\r\n processDefinitionKey: row.key,\r\n processShowType: 'start'\r\n }\r\n }\r\n addDynamicRoute(routeParams, this.$router, this.$route)\r\n },\r\n // 启动其他流程\r\n startProcess (key) {\r\n var params = qs.stringify({\r\n 'key': key\r\n })\r\n this.$http.post(`/act/running/start`, params).then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\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.getDataList()\r\n }\r\n })\r\n }).catch(() => {})\r\n }\r\n }\r\n}\r\n",{"version":3,"sources":["process-initiation.vue"],"names":[],"mappings":";AA2DA;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":"process-initiation.vue","sourceRoot":"src/views/modules/activiti","sourcesContent":["\r\n\r\n\r\n"]}]}