{"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\\model.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\model.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 AddOrUpdate from './model-add-or-update'\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/model/page',\r\n getDataListIsPage: true,\r\n deleteURL: '/act/model',\r\n deleteIsBatch: true\r\n },\r\n dataForm: {\r\n name: '',\r\n key: ''\r\n }\r\n }\r\n },\r\n components: {\r\n AddOrUpdate\r\n },\r\n methods: {\r\n // 获取在线设计url地址\r\n getModelerURL (id) {\r\n var params = qs.stringify({\r\n 'token': Cookies.get('token'),\r\n 'modelId': id\r\n })\r\n return `${window.SITE_CONFIG['apiURL']}/modeler.html?${params}`\r\n },\r\n // 获取导出url地址\r\n getExportURL (id) {\r\n var params = qs.stringify({\r\n 'token': Cookies.get('token')\r\n })\r\n return `${window.SITE_CONFIG['apiURL']}/act/model/export/${id}?${params}`\r\n },\r\n // 部署\r\n deployHandle (id) {\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('model.deploy') }), 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/model/deploy/${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":["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":["\r\n\r\n\r\n"]}]}