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 = "" }