{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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-add-or-update.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\job\\schedule-add-or-update.vue","mtime":1581948666000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"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":["import debounce from 'lodash/debounce';\nimport { cron } from 'vue-cron';\nexport default {\n data: function data() {\n return {\n visible: false,\n dataForm: {\n id: '',\n beanName: '',\n params: '',\n cronExpression: '',\n remark: '',\n status: 0\n },\n cronPopover: false\n };\n },\n components: {\n cron: cron\n },\n computed: {\n dataRule: function dataRule() {\n return {\n beanName: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n cronExpression: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n methods: {\n init: function init() {\n var _this = this;\n this.visible = true;\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n if (_this.dataForm.id) {\n _this.getInfo();\n }\n });\n },\n changeCron: function changeCron(val) {\n this.dataForm.cronExpression = val;\n },\n // 获取信息\n getInfo: function getInfo() {\n var _this2 = this;\n this.$http.get(\"/sys/schedule/\".concat(this.dataForm.id)).then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n _this2.dataForm = res.data;\n }).catch(function () {});\n },\n // 表单提交\n dataFormSubmitHandle: debounce(function () {\n var _this3 = this;\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n _this3.$http[!_this3.dataForm.id ? 'post' : 'put']('/sys/schedule', _this3.dataForm).then(function (_ref2) {\n var res = _ref2.data;\n if (res.code !== 0) {\n return _this3.$message.error(res.msg);\n }\n _this3.$message({\n message: _this3.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this3.visible = false;\n _this3.$emit('refreshDataList');\n }\n });\n }).catch(function () {});\n });\n }, 1000, {\n 'leading': true,\n 'trailing': false\n })\n }\n};",{"version":3,"names":["debounce","cron","data","visible","dataForm","id","beanName","params","cronExpression","remark","status","cronPopover","components","computed","dataRule","required","message","$t","trigger","methods","init","_this","$nextTick","$refs","resetFields","getInfo","changeCron","val","_this2","$http","get","concat","then","_ref","res","code","$message","error","msg","catch","dataFormSubmitHandle","_this3","validate","valid","_ref2","type","duration","onClose","$emit"],"sources":["src/views/modules/job/schedule-add-or-update.vue"],"sourcesContent":["\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 \r\n \r\n \r\n \r\n \r\n {{ $t('cancel') }}\r\n {{ $t('confirm') }}\r\n \r\n \r\n\r\n\r\n\r\n"],"mappings":"AA2BA,OAAAA,QAAA;AACA,SAAAC,IAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;MACAC,QAAA;QACAC,EAAA;QACAC,QAAA;QACAC,MAAA;QACAC,cAAA;QACAC,MAAA;QACAC,MAAA;MACA;MACAC,WAAA;IACA;EACA;EACAC,UAAA;I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