{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\NoiseClassifyDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\NoiseClassifyDialog.vue","mtime":1698066824821},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\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//\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 utils from '@/utils.js';\nimport NoiseClassify from '@/api/basicConfiguration/NoiseClassify';\nexport default {\n props: {},\n name: 'NoiseClassifyDialog',\n data: function data() {\n return {\n visible: false,\n loading: false,\n type: '新增',\n rules: {\n name: [{\n required: true,\n message: '请输入分类名称',\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: '请输入分类编码',\n trigger: 'blur'\n }],\n postalCode: [{\n required: true,\n message: '适用区域',\n trigger: 'blur'\n }]\n },\n formData: {},\n btnLoading: false\n };\n },\n methods: {\n open: function open(data) {\n this.formData = {};\n this.visible = true;\n this.type = '新增';\n },\n handleClose: function handleClose() {\n this.visible = false;\n },\n //编辑\n edit: function edit(id) {\n var _this = this;\n\n this.formData = {};\n this.visible = true;\n this.type = '编辑';\n NoiseClassify.detailId(id, function (res) {\n _this.formData = res;\n });\n },\n //保存\n handleSave: function handleSave() {\n var _this2 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this2.btnLoading = true; // this.params.productId = this.params.productId.pop()\n // let tempData = utils.deepClone(this.params)\n // tempData = this.handleExtendSave(tempData)\n\n var method;\n\n if (_this2.type === '新增') {\n method = NoiseClassify.addSave;\n } else {\n method = NoiseClassify.upData;\n }\n\n method(_this2.formData, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: _this2.type + '成功',\n duration: 2000\n });\n\n _this2.handleClose();\n\n _this2.$emit('getData');\n } else {\n _this2.$message.warning(response.message);\n }\n\n _this2.btnLoading = false;\n });\n } else {\n _this2.$notify({\n type: 'warning',\n message: '请完善表单信息!',\n duration: 2000\n });\n }\n });\n }\n }\n};",null]}