forked from zhurui/management
1 line
8.5 KiB
JSON
1 line
8.5 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\\model.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\model.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\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './model-add-or-update'\nimport Cookies from 'js-cookie'\nimport qs from 'qs'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/model/page',\n getDataListIsPage: true,\n deleteURL: '/activiti/model',\n deleteIsBatch: true\n },\n dataForm: {\n name: '',\n key: ''\n }\n }\n },\n components: {\n AddOrUpdate\n },\n methods: {\n // 获取在线设计url地址\n getModelerURL (id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token'),\n 'modelId': id\n })\n return `${window.SITE_CONFIG['apiURL']}/activiti/modeler.html?${params}`\n },\n // 获取导出url地址\n getExportURL (id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token')\n })\n return `${window.SITE_CONFIG['apiURL']}/activiti/model/export/${id}?${params}`\n },\n // 部署\n deployHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('model.deploy') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.post(`/activiti/model/deploy/${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":["model.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA;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":"model.vue","sourceRoot":"src/views/modules/activiti","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-activiti__model\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <el-input v-model=\"dataForm.name\" :placeholder=\"$t('model.name')\" clearable></el-input>\n </el-form-item>\n <el-form-item>\n <el-input v-model=\"dataForm.key\" :placeholder=\"$t('model.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=\"addOrUpdateHandle()\">{{ $t('add') }}</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=\"name\" :label=\"$t('model.name')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"key\" :label=\"$t('model.key')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"version\" :label=\"$t('model.version')\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"createTime\" :label=\"$t('model.createTime')\" header-align=\"center\" align=\"center\" width=\"180\"></el-table-column>\n <el-table-column prop=\"lastUpdateTime\" :label=\"$t('model.lastUpdateTime')\" 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 <a :href=\"getModelerURL(scope.row.id)\" target=\"_blank\" class=\"el-button el-button--text el-button--small\">{{ $t('model.design') }}</a>\n <el-button type=\"text\" size=\"small\" @click=\"deployHandle(scope.row.id)\">{{ $t('model.deploy') }}</el-button>\n <a :href=\"getExportURL(scope.row.id)\" target=\"_blank\" class=\"el-button el-button--text el-button--small\">{{ $t('export') }}</a>\n <el-button type=\"text\" size=\"small\" @click=\"deleteHandle(scope.row.id)\">{{ $t('delete') }}</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 <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 AddOrUpdate from './model-add-or-update'\nimport Cookies from 'js-cookie'\nimport qs from 'qs'\nexport default {\n mixins: [mixinViewModule],\n data () {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/activiti/model/page',\n getDataListIsPage: true,\n deleteURL: '/activiti/model',\n deleteIsBatch: true\n },\n dataForm: {\n name: '',\n key: ''\n }\n }\n },\n components: {\n AddOrUpdate\n },\n methods: {\n // 获取在线设计url地址\n getModelerURL (id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token'),\n 'modelId': id\n })\n return `${window.SITE_CONFIG['apiURL']}/activiti/modeler.html?${params}`\n },\n // 获取导出url地址\n getExportURL (id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token')\n })\n return `${window.SITE_CONFIG['apiURL']}/activiti/model/export/${id}?${params}`\n },\n // 部署\n deployHandle (id) {\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('model.deploy') }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(() => {\n this.$http.post(`/activiti/model/deploy/${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"]}]} |