From 364cb4ed84c3eb7530e55ed0b7a5ea11487f6b50 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Fri, 12 Aug 2022 15:46:05 +0800 Subject: [PATCH] https://guangdagit.com/beike/beikeshop/issues/48 --- resources/beike/admin/views/pages/regions/index.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/beike/admin/views/pages/regions/index.blade.php b/resources/beike/admin/views/pages/regions/index.blade.php index 380328b9..68f9c942 100644 --- a/resources/beike/admin/views/pages/regions/index.blade.php +++ b/resources/beike/admin/views/pages/regions/index.blade.php @@ -175,7 +175,6 @@ const self = this; const type = this.dialog.type == 'add' ? 'post' : 'put'; const url = this.dialog.type == 'add' ? 'regions' : 'regions/' + this.dialog.form.id; - this.$refs[form].validate((valid) => { if (!valid) { this.$message.error('请检查表单是否填写正确'); @@ -184,7 +183,7 @@ $http[type](url, this.dialog.form).then((res) => { this.$message.success(res.message); - if (type == 'add') { + if (this.dialog.type == 'add') { this.regions.push(res.data) } else { this.regions[this.dialog.index] = res.data @@ -203,7 +202,7 @@ deleteCustomer(id, index) { const self = this; - this.$confirm('确定要删除税类码?', '提示', { + this.$confirm('确定要删除区域组吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'