{"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\\job\\schedule.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\job\\schedule.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 './schedule-add-or-update'\r\nimport Log from './schedule-log'\r\nexport default {\r\n mixins: [mixinViewModule],\r\n data () {\r\n return {\r\n mixinViewModuleOptions: {\r\n getDataListURL: '/sys/schedule/page',\r\n getDataListIsPage: true,\r\n deleteURL: '/sys/schedule',\r\n deleteIsBatch: true\r\n },\r\n dataForm: {\r\n beanName: ''\r\n },\r\n logVisible: false\r\n }\r\n },\r\n components: {\r\n AddOrUpdate,\r\n Log\r\n },\r\n methods: {\r\n // 暂停\r\n pauseHandle (id) {\r\n if (!id && this.dataListSelections.length <= 0) {\r\n return this.$message({\r\n message: this.$t('prompt.deleteBatch'),\r\n type: 'warning',\r\n duration: 500\r\n })\r\n }\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.pause') }), 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.put('/sys/schedule/pause', id ? [id] : this.dataListSelections.map(item => item.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 resumeHandle (id) {\r\n if (!id && this.dataListSelections.length <= 0) {\r\n return this.$message({\r\n message: this.$t('prompt.deleteBatch'),\r\n type: 'warning',\r\n duration: 500\r\n })\r\n }\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.resume') }), 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.put('/sys/schedule/resume', id ? [id] : this.dataListSelections.map(item => item.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 runHandle (id) {\r\n if (!id && this.dataListSelections.length <= 0) {\r\n return this.$message({\r\n message: this.$t('prompt.deleteBatch'),\r\n type: 'warning',\r\n duration: 500\r\n })\r\n }\r\n this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.run') }), 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.put('/sys/schedule/run', id ? [id] : this.dataListSelections.map(item => item.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 logHandle () {\r\n this.logVisible = true\r\n this.$nextTick(() => {\r\n this.$refs.log.init()\r\n })\r\n }\r\n }\r\n}\r\n",{"version":3,"sources":["schedule.vue"],"names":[],"mappings":";AA2EA;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":"schedule.vue","sourceRoot":"src/views/modules/job","sourcesContent":["\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {{ $t('query') }}\r\n \r\n \r\n {{ $t('add') }}\r\n \r\n \r\n {{ $t('deleteBatch') }}\r\n \r\n \r\n {{ $t('schedule.pauseBatch') }}\r\n \r\n \r\n {{ $t('schedule.resumeBatch') }}\r\n \r\n \r\n {{ $t('schedule.runBatch') }}\r\n \r\n \r\n {{ $t('schedule.log') }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t('schedule.status1') }}\r\n {{ $t('schedule.status0') }}\r\n \r\n \r\n \r\n \r\n {{ $t('update') }}\r\n {{ $t('schedule.pause') }}\r\n {{ $t('schedule.resume') }}\r\n {{ $t('schedule.run') }}\r\n {{ $t('delete') }}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n\r\n\r\n\r\n"]}]}