no message

This commit is contained in:
STW_TTTY\stwtt 2024-08-05 16:34:03 +07:00
parent 7aa9782b7a
commit bfee8e9cdd
11 changed files with 164 additions and 39 deletions

View file

@ -8,6 +8,7 @@ import config from "@/app.config";
import http from "@/plugins/http";
import type { typeItem } from "@/modules/11_discipline/interface/response/channel";
import { checkPermission } from "@/utils/permissions";
const dataStore = useDisciplineChannelDataStore();
const mixin = useCounterMixin();
const { dialogRemove, showLoader, messageError, hideLoader, success } = mixin;
@ -108,6 +109,7 @@ onMounted(() => {
<div class="row col-12 q-col-gutter-sm q-mb-sm">
<div>
<q-btn
v-if="checkPermission($route)?.attrIsCreate"
@click="clickAdd()"
size="12px"
flat
@ -170,7 +172,7 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th auto-width />
<q-th auto-width v-if="checkPermission($route)?.attrIsDelete"/>
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
@ -178,7 +180,7 @@ onMounted(() => {
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td>
<q-td v-if="checkPermission($route)?.attrIsDelete">
<q-btn
dense
size="12px"
@ -195,7 +197,7 @@ onMounted(() => {
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="editPage(props.row)"
@click="checkPermission($route)?.attrIsUpdate ? editPage(props.row):''"
>
<div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }}