| | |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | "editConfig.infomation.codeStandID"() { |
| | | this.formInfo() |
| | | } |
| | | }, |
| | | methods: { |
| | | formInfo() { |
| | |
| | | // 保存 |
| | | saveClick(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | this.validateFormNumber() |
| | | if (valid) { |
| | | console.log(this.editConfig.infomation) |
| | | const params = this.saveParams() |
| | |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |
| | | this.$message.success("添加成功") |
| | | this.$message.success("添加成功!") |
| | | this.$parent.getData() |
| | | // } |
| | | }else{ |
| | | this.$message.error(res.msg?res.msg:"添加失败!") |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | console.log(res) |
| | | this.editConfig.visible = false |
| | | if (res.code === 200) { |
| | | this.$message.success("编辑成功") |
| | | this.$message.success("编辑成功!") |
| | | this.$parent.getData() |
| | | }else{ |
| | | this.$message.error(res.msg?res.msg:"编辑失败!") |
| | | } |
| | | }) |
| | | } |
| | |
| | | detail_address: data.detail_address || "", |
| | | |
| | | codeStandID: data.ID, |
| | | codeRule: this.codeRule |
| | | } |
| | | return params |
| | | }, |