From bb9666623f442c8dc71a68924842d831a4b88199 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Mon, 11 Nov 2024 18:47:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=89=E6=96=B9=E5=95=86?= =?UTF-8?q?=E5=9C=BA=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../brand/ThreePartyMallManagement.vue | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/basicdata/brand/ThreePartyMallManagement.vue b/src/views/basicdata/brand/ThreePartyMallManagement.vue index 6236dbc9..2f6577c9 100644 --- a/src/views/basicdata/brand/ThreePartyMallManagement.vue +++ b/src/views/basicdata/brand/ThreePartyMallManagement.vue @@ -108,7 +108,6 @@ @click="handleSubmit" >提 交 - 取 消 @@ -320,6 +319,20 @@ const remoteMethod = value => { }); }); }; +const GeBrandListt = async () => { + let res = await getBrandList(); + const { + code, + data: { records }, + } = res.data; + if (code !== 200) return; + brandList.value = records.map(val => { + return { + value: val.id, + label: val.brandName, + }; + }); +}; // 字典公共函数 function updateDictionary(targetArray, dictionaryType) { getDictionaryBiz(dictionaryType).then(res => { @@ -369,12 +382,15 @@ const onLoadPage = async () => { details.loadingObj.list = true; await Dictionaryrequest(); onLoad(); + GeBrandListt(); }; // 页面初始化 onLoadPage(); // 编辑 const edit = async row => { + details.loadingObj.list = true; let res = await getDetail(row.id); + details.loadingObj.list = false; malldialog.value = true; form.value = res.data.data; console.log(res); @@ -390,7 +406,7 @@ const handleSubmit = async () => { } }; // 删除 -const ViewDelete = () => { +const ViewDelete = (row) => { ElMessageBox.confirm('是否确认删除数据?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消',