From ce3b817e42e081bc698caad95e26f0d2df6299ea Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Sat, 12 Apr 2025 09:42:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=93=81=E6=8A=A5=E6=8D=9F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 60b0a14..9009f39 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -87,7 +87,7 @@ - + @@ -168,6 +168,7 @@ import editModalConfig from "./indexconfig/edit"; import searchConfig from "./indexconfig/search"; import MyDialog from "@/components/mycomponents/myDialog.vue"; import Statistics from "./indexconfig/statistics.vue"; +import { min } from 'lodash'; const { searchRef, @@ -316,7 +317,11 @@ async function handleSwitchhaocai(row: IObject) { // 编辑 async function handleEditClick(row: IObject) { + try { router.push({ name: "addgoods", query: { goods_id: row.id } }); + } catch (error) { + ElMessage.error('没有编辑权限') + } } // 其他工具栏 @@ -347,6 +352,7 @@ async function confirmbaosun() { let res = await UserAPI.reportDamage(datas) ElMessage.success("成功"); myDialogRefbaosun.value.close(); + contentRef.value?.fetchPageData(); } async function confirmhaocai() { let obj = { @@ -376,7 +382,8 @@ function typeFilter(item: any) { async function handleOperatClick(data: IOperatData) { datas.productId = data.row.id myDialogRefbaosun.value.open(); - + datas.number = 1 + datas.remark = "" }