| 1 |
- {"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\\activiti\\model-add-or-update.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\model-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';\nexport default {\n data: function data() {\n return {\n visible: false,\n dataForm: {\n id: '',\n name: '',\n key: '',\n description: ''\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n name: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n key: [{\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 });\n },\n // 表单提交\n dataFormSubmitHandle: debounce(function () {\n var _this2 = this;\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n _this2.$http[!_this2.dataForm.id ? 'post' : 'put']('/act/model', _this2.dataForm).then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n _this2.$message({\n message: _this2.$t('prompt.success'),\n type: 'success',\n duration: 500,\n onClose: function onClose() {\n _this2.visible = false;\n _this2.$emit('refreshDataList');\n }\n });\n }).catch(function () {});\n });\n }, 1000, {\n 'leading': true,\n 'trailing': false\n })\n }\n};",{"version":3,"names":["debounce","data","visible","dataForm","id","name","key","description","computed","dataRule","required","message","$t","trigger","methods","init","_this","$nextTick","$refs","resetFields","dataFormSubmitHandle","_this2","validate","valid","$http","then","_ref","res","code","$message","error","msg","type","duration","onClose","$emit","catch"],"sources":["src/views/modules/activiti/model-add-or-update.vue"],"sourcesContent":["<template>\r\n <el-dialog :visible.sync=\"visible\" :title=\"!dataForm.id ? $t('add') : $t('update')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\r\n <el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" @keyup.enter.native=\"dataFormSubmitHandle()\" label-width=\"120px\">\r\n <el-form-item prop=\"name\" :label=\"$t('model.name')\">\r\n <el-input v-model=\"dataForm.name\" :placeholder=\"$t('model.name')\"></el-input>\r\n </el-form-item>\r\n <el-form-item prop=\"key\" :label=\"$t('model.key')\">\r\n <el-input v-model=\"dataForm.key\" :placeholder=\"$t('model.key')\"></el-input>\r\n </el-form-item>\r\n <el-form-item prop=\"description\" :label=\"$t('model.description')\">\r\n <el-input v-model=\"dataForm.description\" :placeholder=\"$t('model.description')\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n <template slot=\"footer\">\r\n <el-button @click=\"visible = false\">{{ $t('cancel') }}</el-button>\r\n <el-button type=\"primary\" @click=\"dataFormSubmitHandle()\">{{ $t('confirm') }}</el-button>\r\n </template>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\nimport debounce from 'lodash/debounce'\r\nexport default {\r\n data () {\r\n return {\r\n visible: false,\r\n dataForm: {\r\n id: '',\r\n name: '',\r\n key: '',\r\n description: ''\r\n }\r\n }\r\n },\r\n computed: {\r\n dataRule () {\r\n return {\r\n name: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n key: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ]\r\n }\r\n }\r\n },\r\n methods: {\r\n init () {\r\n this.visible = true\r\n this.$nextTick(() => {\r\n this.$refs['dataForm'].resetFields()\r\n })\r\n },\r\n // 表单提交\r\n dataFormSubmitHandle: debounce(function () {\r\n this.$refs['dataForm'].validate((valid) => {\r\n if (!valid) {\r\n return false\r\n }\r\n this.$http[!this.dataForm.id ? 'post' : 'put']('/act/model', this.dataForm).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.visible = false\r\n this.$emit('refreshDataList')\r\n }\r\n })\r\n }).catch(() => {})\r\n })\r\n }, 1000, { 'leading': true, 'trailing': false })\r\n }\r\n}\r\n</script>\r\n"],"mappings":"AAqBA,OAAAA,QAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;MACAC,QAAA;QACAC,EAAA;QACAC,IAAA;QACAC,GAAA;QACAC,WAAA;MACA;IACA;EACA;EACAC,QAAA;IACAC,QAAA,WAAAA,SAAA;MACA;QACAJ,IAAA,GACA;UAAAK,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA,EACA;QACAP,GAAA,GACA;UAAAI,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA;MAEA;IACA;EACA;EACAC,OAAA;IACAC,IAAA,WAAAA,KAAA;MAAA,IAAAC,KAAA;MACA,KAAAd,OAAA;MACA,KAAAe,SAAA;QACAD,KAAA,CAAAE,KAAA,aAAAC,WAAA;MACA;IACA;IACA;IACAC,oBAAA,EAAApB,QAAA;MAAA,IAAAqB,MAAA;MACA,KAAAH,KAAA,aAAAI,QAAA,WAAAC,KAAA;QACA,KAAAA,KAAA;UACA;QACA;QACAF,MAAA,CAAAG,KAAA,EAAAH,MAAA,CAAAlB,QAAA,CAAAC,EAAA,iCAAAiB,MAAA,CAAAlB,QAAA,EAAAsB,IAAA,WAAAC,IAAA;UAAA,IAAAC,GAAA,GAAAD,IAAA,CAAAzB,IAAA;UACA,IAAA0B,GAAA,CAAAC,IAAA;YACA,OAAAP,MAAA,CAAAQ,QAAA,CAAAC,KAAA,CAAAH,GAAA,CAAAI,GAAA;UACA;UACAV,MAAA,CAAAQ,QAAA;YACAlB,OAAA,EAAAU,MAAA,CAAAT,EAAA;YACAoB,IAAA;YACAC,QAAA;YACAC,OAAA,WAAAA,QAAA;cACAb,MAAA,CAAAnB,OAAA;cACAmB,MAAA,CAAAc,KAAA;YACA;UACA;QACA,GAAAC,KAAA;MACA;IACA;MAAA;MAAA;IAAA;EACA;AACA","ignoreList":[]}]}
|