From bcb2be33aabca4b7c14e6cf71ce7e5b1ac27e4e4 Mon Sep 17 00:00:00 2001 From: likexuan Date: Tue, 8 Nov 2022 14:32:47 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2369=20fix=20:=20models=E6=96=B0=E5=BB=BABr?= =?UTF-8?q?and=E6=88=90=E5=8A=9F=E5=90=8E=E5=9C=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=8C=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E5=88=B7=E6=96=B0=E6=AD=A4=E6=A8=A1=E5=9D=97=E6=89=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/administration/modelBox.vue | 2 ++ nezha-fronted/src/components/page/config/model.vue | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue index 1ce8e29c1..d8af2ad30 100644 --- a/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue +++ b/nezha-fronted/src/components/common/rightBox/administration/modelBox.vue @@ -73,6 +73,7 @@ import selectWalk from '../../popBox/selectWalk' import editRigthBox from '../../mixin/editRigthBox' import { sysObjectIdInput } from '@/components/common/js/validate' +import bus from '@/libs/bus' export default { name: 'modelBox', @@ -184,6 +185,7 @@ export default { if (typeof this.editModel.brandId === 'string') { // 判断是否是新增的 this.$post(this.brandUrl, { name: this.editModel.brandId }).then(res => { if (res.code === 200) { // 新增成功 + bus.$emit('refreshBrand') this.getBrandList().then(res2 => { // 新增成功后,重新调用getBrandList,刷新brandList const newBrand = this.brandList.find(b => b.name === this.editModel.brandId) // 取出刚新增的brand对象 if (newBrand) { diff --git a/nezha-fronted/src/components/page/config/model.vue b/nezha-fronted/src/components/page/config/model.vue index 2768f99ed..1afebbd22 100644 --- a/nezha-fronted/src/components/page/config/model.vue +++ b/nezha-fronted/src/components/page/config/model.vue @@ -79,6 +79,7 @@