yangfeng
2024-03-26 be8c6c3fe1a3547c624d867c61ba2c5ea71978c5
src/views/overview/AddOverviewDialog.vue
@@ -1099,6 +1099,7 @@
      let list = this.tableData.map((res) => {
        return {
          ...res,
          amount: 1,
          productName: res.name,
          productId: res.id
        }
@@ -1118,10 +1119,9 @@
    },
    // 删除
    handleDelClick(scope, value) {
      console.log(scope)
      if (value === "操作") {
        this.tableData.splice(scope.$index, 1)
        this.productTableList.tableData.splice(scope.$index, 1)
        this.productTableList.tableData = this.tableData
        this.$message.success("删除成功!")
      } else {
        this.detailTableData.splice(scope.$index, 1)