<template>
  <span
    class="dot-primary"
    @click="onClick()"
    >{{ row.count_product }}</span
  >
</template>
<script>
// use in Khách hàng -> Giao dịch (<DataView :setting='customer-all-transaction'/>)
export default {
  props: ["row", "api", "pagename"],
  methods: {
    onClick() {
      const obj = {
        component: "common/ProductInfo",
        title: "Sản phẩm",
        width: "60%",
        height: "400px",
        vbind: {
          row: this.row,
          pagename: this.pagename,
        },
      };
      this.$emit("open", { name: "dataevent", data: { modal: obj } });
    },
  },
};
</script>
