Files
web/app/components/common/Notebox.vue
2026-05-05 11:06:49 +07:00

25 lines
543 B
Vue

<template>
<span
v-if="row.count_note || $getEditRights()"
class="dot-primary"
@click="doClick()"
>{{ row.count_note || "+" }}</span
>
</template>
<script>
export default {
props: ["row", "api", "pagename"],
methods: {
doClick() {
let obj = {
component: "common/NoteInfo",
title: "Ghi chú",
width: "50%",
vbind: { row: this.row, api: this.api, pagename: this.pagename },
};
this.$emit("open", { name: "dataevent", data: { modal: obj } });
},
},
};
</script>