forked from zhurui/management
1 line
13 KiB
JSON
1 line
13 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\demo\\correction-process.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\demo\\correction-process.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\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 \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// 引入工作流公共方法\nimport processModule from '@/mixins/process-module';\nexport default {\n // 注入公共方法\n mixins: [processModule],\n data: function data() {\n return {\n visible: false,\n // 表单属性是否可编辑\n fieldDisabled: false,\n dataForm: {\n id: '',\n applyPost: '',\n entryDate: '',\n correctionDate: '',\n workContent: '',\n achievement: '',\n creator: '',\n createDate: ''\n }\n };\n },\n created: function created() {\n // 将业务KEY赋值给表单\n this.dataForm.id = this.$route.params.businessKey;\n this.init(); // 流程回调\n\n var callbacks = {\n startProcessSuccessCallback: this.closeCurrentTab,\n startProcessErrorCallback: this.startProcessErrorCallback,\n taskHandleSuccessCallback: this.closeCurrentTab,\n taskHandleErrorCallback: this.taskHandleErrorCallback,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null // 初始化综合组件\n\n };\n this.initProcessMultiple(callbacks);\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\n this.visible = true;\n this.$nextTick(function () {\n _this.$refs['dataForm'].resetFields();\n\n if (_this.dataForm.id) {\n // 如业务KEY已存在,不允许编辑\n _this.fieldDisabled = true;\n\n _this.getInfo();\n }\n });\n },\n // 获取信息\n getInfo: function getInfo() {\n var _this2 = this;\n\n this.$http.get(\"/activiti/demo/correction/\".concat(this.dataForm.id)).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.dataForm = _objectSpread({}, _this2.dataForm, {}, res.data);\n }).catch(function () {});\n },\n // 启动流程出错回调\n startProcessErrorCallback: function startProcessErrorCallback(data) {\n console.log(data);\n },\n // 任务处理出错回调\n taskHandleErrorCallback: function taskHandleErrorCallback(data) {}\n }\n};",{"version":3,"sources":["correction-process.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA;AACA,OAAA,aAAA,MAAA,yBAAA;AACA,eAAA;AACA;AACA,EAAA,MAAA,EAAA,CAAA,aAAA,CAFA;AAGA,EAAA,IAHA,kBAGA;AACA,WAAA;AACA,MAAA,OAAA,EAAA,KADA;AAEA;AACA,MAAA,aAAA,EAAA,KAHA;AAIA,MAAA,QAAA,EAAA;AACA,QAAA,EAAA,EAAA,EADA;AAEA,QAAA,SAAA,EAAA,EAFA;AAGA,QAAA,SAAA,EAAA,EAHA;AAIA,QAAA,cAAA,EAAA,EAJA;AAKA,QAAA,WAAA,EAAA,EALA;AAMA,QAAA,WAAA,EAAA,EANA;AAOA,QAAA,OAAA,EAAA,EAPA;AAQA,QAAA,UAAA,EAAA;AARA;AAJA,KAAA;AAeA,GAnBA;AAoBA,EAAA,OApBA,qBAoBA;AACA;AACA,SAAA,QAAA,CAAA,EAAA,GAAA,KAAA,MAAA,CAAA,MAAA,CAAA,WAAA;AACA,SAAA,IAAA,GAHA,CAIA;;AACA,QAA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AAA,UAAA,OAAA,EAAA;AAAA,SADA;AAhBA,OAAA;AAoBA;AAtBA,GApCA;AA4DA,EAAA,OAAA,EAAA;AACA,IAAA,IADA,kBACA;AAAA;;AACA,WAAA,OAAA,GAAA,IAAA;AACA,WAAA,SAAA,CAAA,YAAA;AACA,QAAA,KAAA,CAAA,KAAA,CAAA,UAAA,EAAA,WAAA;;AACA,YAAA,KAAA,CAAA,QAAA,CAAA,EAAA,EAAA;AACA;AACA,UAAA,KAAA,CAAA,aAAA,GAAA,IAAA;;AACA,UAAA,KAAA,CAAA,OAAA;AACA;AACA,OAPA;AAQA,KAXA;AAYA;AACA,IAAA,OAbA,qBAaA;AAAA;;AACA,WAAA,KAAA,CAAA,GAAA,qCAAA,KAAA,QAAA,CAAA,EAAA,GAAA,IAAA,CAAA,gBAAA;AAAA,YAAA,GAAA,QAAA,IAAA;;AACA,YAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,iBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;;AACA,QAAA,MAAA,CAAA,QAAA,qBACA,MAAA,CAAA,QADA,MAEA,GAAA,CAAA,IAFA;AAIA,OARA,EAQA,KARA,CAQA,YAAA,CAAA,CARA;AASA,KAvBA;AAwBA;AACA,IAAA,yBAzBA,qCAyBA,IAzBA,EAyBA;AACA,MAAA,OAAA,CAAA,GAAA,CAAA,IAAA;AACA,KA3BA;AA4BA;AACA,IAAA,uBA7BA,mCA6BA,IA7BA,EA6BA,CACA;AA9BA;AA5DA,CAAA","sourcesContent":["<!-- 流程业务表单 -->\n<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <el-form :model=\"dataForm\" :rules=\"dataRule\" ref=\"dataForm\" @keyup.enter.native=\"dataFormSubmitHandle()\" :label-width=\"$i18n.locale === 'en-US' ? '120px' : '80px'\">\n <el-form-item :label=\"$t('correction.post')\" prop=\"applyPost\">\n <el-input v-model=\"dataForm.applyPost\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.post')\"></el-input>\n </el-form-item>\n <el-row :gutter=\"40\">\n <el-col :span=\"12\">\n <el-form-item :label=\"$t('correction.entryDate')\" prop=\"entryDate\">\n <el-date-picker v-model=\"dataForm.entryDate\" :disabled=\"fieldDisabled\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.entryDate')\" style=\"width: 100%\"></el-date-picker>\n </el-form-item>\n </el-col>\n <el-col :span=\"12\">\n <el-form-item :label=\"$t('correction.correctionDate')\" prop=\"correctionDate\">\n <el-date-picker v-model=\"dataForm.correctionDate\" :disabled=\"fieldDisabled\" value-format=\"yyyy-MM-dd\" :placeholder=\"$t('correction.correctionDate')\" style=\"width: 100%\"></el-date-picker>\n </el-form-item>\n </el-col>\n </el-row>\n <el-form-item :label=\"$t('correction.workContent')\" prop=\"workContent\">\n <el-input type=\"textarea\" v-model=\"dataForm.workContent\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.workContent')\"></el-input>\n </el-form-item>\n <el-form-item :label=\"$t('correction.achievement')\" prop=\"achievement\">\n <el-input type=\"textarea\" v-model=\"dataForm.achievement\" :disabled=\"fieldDisabled\" :placeholder=\"$t('correction.achievement')\"></el-input>\n </el-form-item>\n </el-form>\n <!-- 流程综合组件 -->\n <ren-process-multiple v-if=\"processVisible\" updateInstanceIdUrl=\"/activiti/demo/correction/updateInstanceId\" saveFormUrl=\"/activiti/demo/correction\" dataFormName=\"dataForm\" ref=\"renProcessMultiple\" ></ren-process-multiple>\n </el-card>\n</template>\n\n<script>\n// 引入工作流公共方法\nimport processModule from '@/mixins/process-module'\nexport default {\n // 注入公共方法\n mixins: [processModule],\n data () {\n return {\n visible: false,\n // 表单属性是否可编辑\n fieldDisabled: false,\n dataForm: {\n id: '',\n applyPost: '',\n entryDate: '',\n correctionDate: '',\n workContent: '',\n achievement: '',\n creator: '',\n createDate: ''\n }\n }\n },\n created () {\n // 将业务KEY赋值给表单\n this.dataForm.id = this.$route.params.businessKey\n this.init()\n // 流程回调\n var callbacks = {\n startProcessSuccessCallback: this.closeCurrentTab,\n startProcessErrorCallback: this.startProcessErrorCallback,\n taskHandleSuccessCallback: this.closeCurrentTab,\n taskHandleErrorCallback: this.taskHandleErrorCallback,\n formSaveSuccessCallback: null,\n formSaveErrorCallback: null\n }\n // 初始化综合组件\n this.initProcessMultiple(callbacks)\n },\n computed: {\n dataRule () {\n return {\n applyPost: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n entryDate: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n correctionDate: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n workContent: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n achievement: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ],\n createTime: [\n { required: true, message: this.$t('validate.required'), trigger: 'blur' }\n ]\n }\n }\n },\n methods: {\n init () {\n this.visible = true\n this.$nextTick(() => {\n this.$refs['dataForm'].resetFields()\n if (this.dataForm.id) {\n // 如业务KEY已存在,不允许编辑\n this.fieldDisabled = true\n this.getInfo()\n }\n })\n },\n // 获取信息\n getInfo () {\n this.$http.get(`/activiti/demo/correction/${this.dataForm.id}`).then(({ data: res }) => {\n if (res.code !== 0) {\n return this.$message.error(res.msg)\n }\n this.dataForm = {\n ...this.dataForm,\n ...res.data\n }\n }).catch(() => {})\n },\n // 启动流程出错回调\n startProcessErrorCallback (data) {\n console.log(data)\n },\n // 任务处理出错回调\n taskHandleErrorCallback (data) {\n }\n }\n}\n</script>\n"],"sourceRoot":"src/views/modules/activiti/demo"}]} |