{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\approvalItem\\approvalItemEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\approvalItem\\approvalItemEdit.vue","mtime":1675214576370},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\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//\n//\nimport approvalItem from \"@/api/approvalItem.js\";\nexport default {\n  name: \"approvalItemEdit\",\n  props: [\"id\"],\n  data: function data() {\n    return {\n      rules: {\n        expression: [{\n          required: true,\n          message: '请输入常用语',\n          trigger: 'blur'\n        }]\n      },\n      editForm: {}\n    };\n  },\n  methods: {\n    back: function back() {\n      this.$router.go(-1); //返回上一层\n    },\n    submitForm: function submitForm(form) {\n      var _this = this;\n\n      this.$refs[form].validate(function (valid) {\n        if (valid) {\n          _this.editForm.type = 4;\n          approvalItem.approvalItemSave(_this.editForm, function (response) {\n            if (response.state) {\n              _this.$message.success(response.message);\n            }\n\n            _this.$router.go(-1);\n          });\n        } else {\n          return false;\n        }\n      });\n    }\n  },\n  created: function created() {\n    var _this2 = this;\n\n    if (this.id) {\n      approvalItem.detail(this.id, function (resp) {\n        _this2.editForm = resp;\n      });\n    } else {\n      this.editForm = {};\n    }\n  }\n};",null]}