| 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\\demo\\correction-add-or-update.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\modules\\activiti\\demo\\correction-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 \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/HTC/program/\\u5584\\u884C\\u5C11\\u5E74/security-enterprise-admin/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n// 引入工作流公共方法\nimport processModule from '@/mixins/process-module';\nexport default {\n // 注入公共方法\n mixins: [processModule],\n data: function data() {\n return {\n // 是否显示流程启动组件\n processVisible: true,\n visible: false,\n dataForm: {\n id: '',\n applyPost: '',\n entryDate: '',\n correctionDate: '',\n workContent: '',\n achievement: '',\n creator: '',\n createDate: ''\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n applyPost: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n entryDate: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n correctionDate: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n workContent: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n achievement: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n createTime: [{\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 _this.$refs.renProcessStart.rootObj = _this;\n // 配置回调函数\n _this.$refs.renProcessStart.callbacks = {\n startProcessSuccessCallback: _this.closeCurrentDialog,\n startProcessErrorCallback: _this.startProcessErrorCallback,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null\n };\n // 配置流程定义KEY\n _this.$refs.renProcessStart.dataForm.processDefinitionKey = 'correctionprocess';\n });\n },\n // 获取信息\n getInfo: function getInfo() {\n var _this2 = this;\n this.$http.get(\"/act/demo/correction/\".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 = _objectSpread(_objectSpread({}, _this2.dataForm), res.data);\n }).catch(function () {});\n },\n closeCurrentDialog: function closeCurrentDialog() {\n this.visible = false;\n this.$emit('refreshDataList');\n }\n }\n};",{"version":3,"names":["processModule","mixins","data","processVisible","visible","dataForm","id","applyPost","entryDate","correctionDate","workContent","achievement","creator","createDate","computed","dataRule","required","message","$t","trigger","createTime","methods","init","_this","$nextTick","$refs","resetFields","getInfo","renProcessStart","rootObj","callbacks","startProcessSuccessCallback","closeCurrentDialog","startProcessErrorCallback","formSaveSuccessCallback","formSaveErrorCallback","processDefinitionKey","_this2","$http","get","concat","then","_ref","res","code","$message","error","msg","_objectSpread","catch","$emit"],"sources":["src/views/modules/activiti/demo/correction-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=\"$i18n.locale === 'en-US' ? '120px' : '80px'\">\r\n <el-form-item :label=\"$t('correction.post')\" prop=\"applyPost\">\r\n <el-input v-model=\"dataForm.applyPost\" :placeholder=\"$t('correction.post')\"></el-input>\r\n </el-form-item>\r\n <el-row :gutter=\"40\">\r\n <el-col :span=\"12\">\r\n <el-form-item :label=\"$t('correction.entryDate')\" prop=\"entryDate\">\r\n <el-date-picker v-model=\"dataForm.entryDate\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.entryDate')\" style=\"width: 100%\"></el-date-picker>\r\n </el-form-item>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <el-form-item :label=\"$t('correction.correctionDate')\" prop=\"correctionDate\">\r\n <el-date-picker v-model=\"dataForm.correctionDate\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.correctionDate')\" style=\"width: 100%\"></el-date-picker>\r\n </el-form-item>\r\n </el-col>\r\n </el-row>\r\n <el-form-item :label=\"$t('correction.workContent')\" prop=\"workContent\">\r\n <el-input type=\"textarea\" v-model=\"dataForm.workContent\" :placeholder=\"$t('correction.workContent')\"></el-input>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('correction.achievement')\" prop=\"achievement\">\r\n <el-input type=\"textarea\" v-model=\"dataForm.achievement\" :placeholder=\"$t('correction.achievement')\"></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 <!-- 流程启动组件 -->\r\n <ren-process-start v-if=\"processVisible\" updateInstanceIdUrl=\"/act/demo/correction/updateInstanceId\" saveFormUrl=\"/act/demo/correction\" dataFormName=\"dataForm\" ref=\"renProcessStart\" ></ren-process-start>\r\n </template>\r\n </el-dialog>\r\n</template>\r\n\r\n<script>\r\n// 引入工作流公共方法\r\nimport processModule from '@/mixins/process-module'\r\nexport default {\r\n // 注入公共方法\r\n mixins: [processModule],\r\n data () {\r\n return {\r\n // 是否显示流程启动组件\r\n processVisible: true,\r\n visible: false,\r\n dataForm: {\r\n id: '',\r\n applyPost: '',\r\n entryDate: '',\r\n correctionDate: '',\r\n workContent: '',\r\n achievement: '',\r\n creator: '',\r\n createDate: ''\r\n }\r\n }\r\n },\r\n computed: {\r\n dataRule () {\r\n return {\r\n applyPost: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n entryDate: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n correctionDate: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n workContent: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n achievement: [\r\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\r\n ],\r\n createTime: [\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 if (this.dataForm.id) {\r\n this.getInfo()\r\n }\r\n // 将业务组件对象赋值给流程(回调时需要用到)\r\n this.$refs.renProcessStart.rootObj = this\r\n // 配置回调函数\r\n this.$refs.renProcessStart.callbacks = {\r\n startProcessSuccessCallback: this.closeCurrentDialog,\r\n startProcessErrorCallback: this.startProcessErrorCallback,\r\n formSaveSuccessCallback: null,\r\n formSaveErrorCallback: null\r\n }\r\n // 配置流程定义KEY\r\n this.$refs.renProcessStart.dataForm.processDefinitionKey = 'correctionprocess'\r\n })\r\n },\r\n // 获取信息\r\n getInfo () {\r\n this.$http.get(`/act/demo/correction/${this.dataForm.id}`).then(({ data: res }) => {\r\n if (res.code !== 0) {\r\n return this.$message.error(res.msg)\r\n }\r\n this.dataForm = {\r\n ...this.dataForm,\r\n ...res.data\r\n }\r\n }).catch(() => {})\r\n },\r\n closeCurrentDialog () {\r\n this.visible = false\r\n this.$emit('refreshDataList')\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;AAkCA;AACA,OAAAA,aAAA;AACA;EACA;EACAC,MAAA,GAAAD,aAAA;EACAE,IAAA,WAAAA,KAAA;IACA;MACA;MACAC,cAAA;MACAC,OAAA;MACAC,QAAA;QACAC,EAAA;QACAC,SAAA;QACAC,SAAA;QACAC,cAAA;QACAC,WAAA;QACAC,WAAA;QACAC,OAAA;QACAC,UAAA;MACA;IACA;EACA;EACAC,QAAA;IACAC,QAAA,WAAAA,SAAA;MACA;QACAR,SAAA,GACA;UAAAS,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA,EACA;QACAX,SAAA,GACA;UAAAQ,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA,EACA;QACAV,cAAA,GACA;UAAAO,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAAC,OAAA;QAAA,EACA;Q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