forked from zhurui/management
1 line
8.9 KiB
JSON
1 line
8.9 KiB
JSON
|
{"remainingRequest":"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-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\activiti\\demo\\correction-add-or-update.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":["//\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\n// 引入工作流公共方法\nimport processModule from '@/mixins/process-module'\nexport default {\n // 注入公共方法\n mixins: [processModule],\n 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 () {\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 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 () {\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 closeCurrentDialog () {\n this.visible = false\n this.$emit('refreshDataList')\n }\n }\n}\n",{"version":3,"sources":["correction-add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA;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;A
|