{"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.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\process.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 Deploy from './process-deploy'\r\nimport ProcessBizRoute from './process-biz-route'\r\nimport Cookies from 'js-cookie'\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/page',\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 setBizRouteVisible: false\r\n }\r\n },\r\n components: {\r\n Deploy,\r\n ProcessBizRoute\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 deployHandle () {\r\n this.deployVisible = true\r\n this.$nextTick(() => {\r\n this.$refs.deploy.init()\r\n })\r\n },\r\n setBizRoute (row) {\r\n this.setBizRouteVisible = true\r\n this.$nextTick(() => {\r\n this.$refs.processBizRoute.dataForm.procDefId = row.id\r\n this.$refs.processBizRoute.dataForm.procDefKey = row.key\r\n this.$refs.processBizRoute.dataForm.version = row.version\r\n this.$refs.processBizRoute.init()\r\n })\r\n },\r\n // 激活\r\n activeHandle (id) {\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.active') }), this.$t('prompt.title'), {\r\n confirmButtonText: this.$t('confirm'),\r\n cancelButtonText: this.$t('cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n this.$http.put(`/act/process/active/${id}`).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 }).catch(() => {})\r\n },\r\n // 挂起\r\n suspendHandle (id) {\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.suspend') }), this.$t('prompt.title'), {\r\n confirmButtonText: this.$t('confirm'),\r\n cancelButtonText: this.$t('cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n this.$http.put(`/act/process/suspend/${id}`).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 }).catch(() => {})\r\n },\r\n // 转换为模型\r\n convertToModelHandle (id) {\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.convertToModel') }), this.$t('prompt.title'), {\r\n confirmButtonText: this.$t('confirm'),\r\n cancelButtonText: this.$t('cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n this.$http.post(`/act/process/convertToModel/${id}`).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 }).catch(() => {})\r\n }\r\n }\r\n}\r\n",{"version":3,"sources":["process.vue"],"names":[],"mappings":";AAuEA;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;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.vue","sourceRoot":"src/views/modules/activiti","sourcesContent":["\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t('query') }}\r\n \r\n \r\n {{ $t('process.deployFile') }}\r\n \r\n \r\n {{ $t('deleteBatch') }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ scope.row.resourceName }}\r\n \r\n \r\n \r\n \r\n {{ scope.row.diagramResourceName }}\r\n \r\n \r\n \r\n \r\n \r\n {{ $t('process.active') }}\r\n {{ $t('process.suspend') }}\r\n {{ $t('delete') }}\r\n {{ $t('process.convertToModel') }}\r\n {{ $t('process.bizRouteSet') }}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n\r\n\r\n\r\n"]}]}