management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/16ee29345dafd57e9f661dd169a...

1 line
10 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\\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//\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: function 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: AddOrUpdate\n },\n methods: {\n // 获取在线设计url地址\n getModelerURL: function getModelerURL(id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token'),\n 'modelId': id\n });\n return \"\".concat(window.SITE_CONFIG['apiURL'], \"/activiti/modeler.html?\").concat(params);\n },\n // 获取导出url地址\n getExportURL: function getExportURL(id) {\n var params = qs.stringify({\n 'access_token': Cookies.get('access_token')\n });\n return \"\".concat(window.SITE_CONFIG['apiURL'], \"/activiti/model/export/\").concat(id, \"?\").concat(params);\n },\n // 部署\n deployHandle: function deployHandle(id) {\n var _this = this;\n\n this.$confirm(this.$t('prompt.info', {\n 'handle': this.$t('model.deploy')\n }), this.$t('prompt.title'), {\n confirmButtonText: this.$t('confirm'),\n cancelButtonText: this.$t('cancel'),\n type: 'warning'\n }).then(function () {\n _this.$http.post(\"/activiti/model/deploy/\".concat(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 _this.$message({\n message: _this.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this.getDataList();\n }\n });\n }).catch(function () {});\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["model.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,WAAA;AACA,OAAA,OAAA,MAAA,WAAA;AACA,OAAA,EAAA,MAAA,IAAA;AACA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,sBADA;AAEA,QAAA,iBAAA,EAAA,IAFA;AAGA,QAAA,SAAA,EAA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EAAA;AACA,mBAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,UAAA,KAAA,CAAA,QAAA,CAAA;AACA,YAAA,OAAA,EAAA,KAAA,CAAA,EAAA,CAAA,gBAAA,CADA;AAEA,YAAA,IAAA,EAAA,SAFA;AAGA,YAAA,QAAA,EAAA,GAHA;AAIA,YAAA,OAAA,EAAA,mBAAA;AACA,cAAA,KAAA,CAAA,WAAA;AACA;AANA,WAAA;AAQA,SAZA,EAYA,KAZA,CAYA,YAAA,CAAA,CAZA;AAaA,OAlBA,EAkBA,KAlBA,CAkBA,YAAA,CAAA,CAlBA;AAmBA;AArCA;AAnBA,CAAA","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"],"sourceRoot":"src/views/modules/activiti"}]}