forked from zhurui/management
1 line
12 KiB
JSON
1 line
12 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\\views\\modules\\activiti\\process-initiation.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\process-initiation.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":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport mixinViewModule from '@/mixins/view-module';\nimport Cookies from 'js-cookie';\nimport { addDynamicRoute } from '@/router';\nimport qs from 'qs';\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/process/lastestPage',\n getDataListIsPage: true,\n deleteURL: '/activiti/process',\n deleteIsBatch: true,\n deleteIsBatchKey: 'deploymentId'\n },\n dataForm: {\n processName: '',\n key: ''\n },\n deployVisible: false\n };\n },\n components: {},\n methods: {\n // 获取流程(xml/image)url地址\n getResourceURL: function getResourceURL(id, name) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token'),\n 'deploymentId': id,\n 'resourceName': name\n });\n return \"\".concat(window.SITE_CONFIG['apiURL'], \"/activiti/process/resource?\").concat(params);\n },\n // 发起流程\n createProcessInstance: function createProcessInstance(row) {\n var _this = this;\n\n this.$http.get(\"/activiti/process/getProcDefBizRoute/\".concat(row.id)).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this.$message.error(res.msg);\n }\n\n if (!res.data || !res.data.bizRoute) {\n return _this.$message.error(_this.$t('process.routeError'));\n }\n\n _this.forwardUrl(res.data, row);\n }).catch(function () {});\n },\n forwardUrl: function forwardUrl(data, row) {\n var routeParams = {\n routeName: \"\".concat(this.$route.name, \"__instance_\").concat(data.id),\n menuId: \"\".concat(this.$route.meta.menuId),\n title: \"\".concat(this.$route.meta.title, \" - \").concat(row.name),\n path: data.bizRoute,\n params: {\n processDefinitionId: data.procDefId,\n processDefinitionKey: row.key,\n processShowType: 'start'\n }\n };\n addDynamicRoute(routeParams, this.$router, this.$route);\n },\n // 启动其他流程\n startProcess: function startProcess(key) {\n var _this2 = this;\n\n var params = qs.stringify({\n 'key': key\n });\n this.$http.post(\"/activiti/running/start\", params).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.$message({\n message: _this2.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this2.getDataList();\n }\n });\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["process-initiation.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,gBAAA,CADA;AAEA,UAAA,IAAA,EAAA,SAFA;AAGA,UAAA,QAAA,EAAA,GAHA;AAIA,UAAA,OAAA,EAAA,mBAAA;AACA,YAAA,MAAA,CAAA,WAAA;AACA;AANA,SAAA;AAQA,OAZA,EAYA,KAZA,CAYA,YAAA,CAAA,CAZA;AAaA;AAtDA;AApBA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-activiti__process\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <el-input v-model=\"dataForm.processName\" :placeholder=\"$t('process.name')\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-input v-model=\"dataForm.key\" :placeholder=\"$t('process.key')\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"getDataList()\">{{ $t('query') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table\n v-loading=\"dataListLoading\"\n :data=\"dataList\"\n border\n @selection-change=\"dataListSelectionChangeHandle\"\n @sort-change=\"dataListSortChangeHandle\"\n style=\"width: 100%;\">\n <el-table-column type=\"selection\" header-align=\"center\" align=\"center\" width=\"50\"></el-table-column>\n <el-table-column prop=\"id\" :label=\"$t('process.id')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"deploymentId\" :label=\"$t('process.deploymentId')\" header-align=\"center\" align=\"center\" width=\"80\"></el-table-column>\n <el-table-column prop=\"name\" :label=\"$t('process.name')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"key\" :label=\"$t('process.key')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"version\" :label=\"$t('process.version')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"resourceName\" :label=\"$t('process.resourceName')\" header-align=\"center\" align=\"center\" :show-overflow-tooltip=\"true\" width=\"100\">\n <template slot-scope=\"scope\">\n <a :href=\"getResourceURL(scope.row.deploymentId, scope.row.resourceName)\" target=\"_blank\">{{ scope.row.resourceName }}</a>\n </template>\n </el-table-column>\n <el-table-column prop=\"diagramResourceName\" :label=\"$t('process.diagramResourceName')\" header-align=\"center\" align=\"center\" :show-overflow-tooltip=\"true\" width=\"100\">\n <template slot-scope=\"scope\">\n <a :href=\"getResourceURL(scope.row.deploymentId, scope.row.diagramResourceName)\" target=\"_blank\">{{ scope.row.diagramResourceName }}</a>\n </template>\n </el-table-column>\n <el-table-column prop=\"deploymentTime\" :label=\"$t('process.deploymentTime')\" header-align=\"center\" align=\"center\" width=\"180\"></el-table-column>\n <el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button type=\"text\" size=\"small\" @click=\"createProcessInstance(scope.row)\">{{ $t('process.createInstance') }}</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\">\n </el-pagination>\n <add-or-update v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\" @refreshDataList=\"getDataList\"></add-or-update>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport Cookies from 'js-cookie'\nimport { addDynamicRoute } from '@/router'\nimport qs from 'qs'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/process/lastestPage',\n getDataListIsPage: true,\n deleteURL: '/activiti/process',\n deleteIsBatch: true,\n deleteIsBatchKey: 'deploymentId'\n },\n dataForm: {\n processName: '',\n key: ''\n },\n deployVisible: false\n }\n },\n components: {\n },\n methods: {\n // 获取流程(xml/image)url地址\n getResourceURL (id, name) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token'),\n 'deploymentId': id,\n 'resourceName': name\n })\n return `${window.SITE_CONFIG['apiURL']}/activiti/process/resource?${params}`\n },\n // 发起流程\n createProcessInstance (row) {\n this.$http.get(`/activiti/process/getProcDefBizRoute/${row.id}`).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n if (!res.data || !res.data.bizRoute) {\n return this.$message.error(this.$t('process.routeError'))\n }\n this.forwardUrl(res.data, row)\n }).catch(() => {})\n },\n forwardUrl (data, row) {\n var routeParams = {\n routeName: `${this.$route.name}__instance_${data.id}`,\n menuId: `${this.$route.meta.menuId}`,\n title: `${this.$route.meta.title} - ${row.name}`,\n path: data.bizRoute,\n params: {\n processDefinitionId: data.procDefId,\n processDefinitionKey: row.key,\n processShowType: 'start'\n }\n }\n addDynamicRoute(routeParams, this.$router, this.$route)\n },\n // 启动其他流程\n startProcess (key) {\n var params = qs.stringify({\n 'key': key\n })\n this.$http.post(`/activiti/running/start`, params).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.$message({\n message: this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: () => {\n this.getDataList()\n }\n })\n }).catch(() => {})\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views/modules/activiti"}]} |