forked from zhurui/management
1 line
14 KiB
JSON
1 line
14 KiB
JSON
{"remainingRequest":"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.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\process.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//\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 Deploy from './process-deploy'\nimport ProcessBizRoute from './process-biz-route'\nimport Cookies from 'js-cookie'\nimport qs from 'qs'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/process/page',\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 setBizRouteVisible: false\n }\n },\n components: {\n Deploy,\n ProcessBizRoute\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 deployHandle () {\n this.deployVisible = true\n this.$nextTick(() => {\n this.$refs.deploy.init()\n })\n },\n setBizRoute (row) {\n this.setBizRouteVisible = true\n this.$nextTick(() => {\n this.$refs.processBizRoute.dataForm.procDefId = row.id\n this.$refs.processBizRoute.dataForm.procDefKey = row.key\n this.$refs.processBizRoute.dataForm.version = row.version\n this.$refs.processBizRoute.init()\n })\n },\n // 激活\n activeHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.active') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.put(`/activiti/process/active/${id}`).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 }).catch(() => {})\n },\n // 挂起\n suspendHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.suspend') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.put(`/activiti/process/suspend/${id}`).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 }).catch(() => {})\n },\n // 转换为模型\n convertToModelHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.convertToModel') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.post(`/activiti/process/convertToModel/${id}`).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 }).catch(() => {})\n }\n }\n}\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":["<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-item>\n <el-button type=\"primary\" @click=\"deployHandle()\">{{ $t('process.deployFile') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"danger\" @click=\"deleteHandle()\">{{ $t('deleteBatch') }}</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 v-if=\"scope.row.suspended\" type=\"text\" size=\"small\" @click=\"activeHandle(scope.row.id)\">{{ $t('process.active') }}</el-button>\n <el-button v-else type=\"text\" size=\"small\" @click=\"suspendHandle(scope.row.id)\">{{ $t('process.suspend') }}</el-button>\n <el-button type=\"text\" size=\"small\" @click=\"deleteHandle(scope.row.deploymentId)\">{{ $t('delete') }}</el-button>\n <el-button type=\"text\" size=\"small\" @click=\"convertToModelHandle(scope.row.id)\">{{ $t('process.convertToModel') }}</el-button>\n <el-button type=\"text\" size=\"small\" @click=\"setBizRoute(scope.row)\">{{ $t('process.bizRouteSet') }}</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 <!-- 弹窗, 部署流程文件 -->\n <deploy v-if=\"deployVisible\" ref=\"deploy\" @refreshDataList=\"getDataList\"></deploy>\n <process-biz-route v-if=\"setBizRouteVisible\" ref=\"processBizRoute\" @refreshDataList=\"getDataList\"></process-biz-route>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport Deploy from './process-deploy'\nimport ProcessBizRoute from './process-biz-route'\nimport Cookies from 'js-cookie'\nimport qs from 'qs'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/process/page',\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 setBizRouteVisible: false\n }\n },\n components: {\n Deploy,\n ProcessBizRoute\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 deployHandle () {\n this.deployVisible = true\n this.$nextTick(() => {\n this.$refs.deploy.init()\n })\n },\n setBizRoute (row) {\n this.setBizRouteVisible = true\n this.$nextTick(() => {\n this.$refs.processBizRoute.dataForm.procDefId = row.id\n this.$refs.processBizRoute.dataForm.procDefKey = row.key\n this.$refs.processBizRoute.dataForm.version = row.version\n this.$refs.processBizRoute.init()\n })\n },\n // 激活\n activeHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.active') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.put(`/activiti/process/active/${id}`).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 }).catch(() => {})\n },\n // 挂起\n suspendHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.suspend') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.put(`/activiti/process/suspend/${id}`).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 }).catch(() => {})\n },\n // 转换为模型\n convertToModelHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('process.convertToModel') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.post(`/activiti/process/convertToModel/${id}`).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 }).catch(() => {})\n }\n }\n}\n</script>\n"]}]} |