jiangping
2023-09-21 4ef5c9ad2903bd82d50e4892814b8c7c534a7ec3
属性对比
已修改1个文件
18 ■■■■ 文件已修改
company_admin/src/views/business/goods.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/views/business/goods.vue
@@ -151,7 +151,6 @@
      <selectProduct ref="selectProduct" @success="handlePageChange" @result="search"/>
    </TableLayout>
  </template>
  <script>
  import BaseTable from '@/components/base/BaseTable'
  import TableLayout from '@/layouts/TableLayout'
@@ -200,19 +199,21 @@
      this.getcategory()
    },
    methods: {
      handleSelectionChange(e) {
        let arr = e.map(item => item.id)
        this.ids = arr.join(',')
        console.log(this.ids)
      },
    // handleSelectionChange(e) {
    //   let arr = e.map(item => item.id)
    //   this.ids = arr.join(',')
    //   console.log(this.ids)
    // },
      // 批量上下架
      bulkOperation(type) {
        if (!this.ids) {
      if (this.tableData.selectedRows.length === 0) {
      // if (!this.ids) {
          this.$message.warning({ message: '至少选择一项内容' })
          return
        }
      const idList = this.tableData.selectedRows.map(item => item.id)
        batchUpdateDisableById({
          ids: this.ids,
        ids: idList.join(','),
          status: type
        }).then(res => {
          this.$message.success({ message: res })
@@ -312,4 +313,3 @@
    }
  }
  </script>