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;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","file":"correction-add-or-update.vue","sourceRoot":"src/views/modules/activiti/demo","sourcesContent":["<template>\n <el-dialog :visible.sync=\"visible\" :title=\"!dataForm.id ? $t('add') : $t('update')\" :close-on-click-modal=\"false\" :close-on-press-escape=\"false\">\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\" :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\" 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\" 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\" :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\" :placeholder=\"$t('correction.achievement')\"></el-input>\n </el-form-item>\n </el-form>\n <template slot=\"footer\">\n <el-button @click=\"visible = false\">{{ $t('cancel') }}</el-button>\n <!-- 流程启动组件 -->\n <ren-process-start v-if=\"processVisible\" updateInstanceIdUrl=\"/activiti/demo/correction/updateInstanceId\" saveFormUrl=\"/activiti/demo/correction\" dataFormName=\"dataForm\" ref=\"renProcessStart\" ></ren-process-start>\n </template>\n </el-dialog>\n</template>\n\n<script>\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</script>\n"]}]} |