diff --git a/src/views/basic/workplace/addBusTypeDialog.vue b/src/views/basic/workplace/addBusTypeDialog.vue index fda9c7d5..1c7a54cc 100644 --- a/src/views/basic/workplace/addBusTypeDialog.vue +++ b/src/views/basic/workplace/addBusTypeDialog.vue @@ -405,7 +405,7 @@ export default { updateType(this.formData).then(res => { if (res.code == 20000) { this.closeDialog() - this.$message.success('更新成成') + this.$message.success('更新成功') } else { this.$message.error('更新失败') } @@ -464,9 +464,12 @@ export default { created() { if (this.upData != null) { this.formData = this.upData - if (this.formData.invCode != null){ + if (this.formData.invCode != 0){ this.formData.invCode = this.upData.invCode + '' } + if (this.formData.invCode == 0) { + this.formData.invCode = '' + } if (this.formData.isMatching == 0) { this.getBusType() } else {