no message
This commit is contained in:
parent
7aa9782b7a
commit
bfee8e9cdd
11 changed files with 164 additions and 39 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import http from "@/plugins/http";
|
|||
import DialogTotal from "@/modules/11_discipline/components/6_BasicInformation/Director/DialogInvestigateTotal.vue";
|
||||
import type { DirectorRowsResponse } from "@/modules/11_discipline/interface/response/director";
|
||||
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
const $q = useQuasar();
|
||||
const dataStore = useDisciplineDirectorDataStore();
|
||||
const mixin = useCounterMixin();
|
||||
|
|
@ -147,6 +148,7 @@ onMounted(() => {
|
|||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||
<div>
|
||||
<q-btn
|
||||
v-if="checkPermission($route)?.attrIsCreate"
|
||||
@click="$router.push(`/discipline/director/add`)"
|
||||
size="12px"
|
||||
flat
|
||||
|
|
@ -223,7 +225,7 @@ onMounted(() => {
|
|||
</template>
|
||||
<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>
|
||||
|
|
@ -231,7 +233,7 @@ onMounted(() => {
|
|||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td auto-width>
|
||||
<q-td auto-width v-if="checkPermission($route)?.attrIsDelete">
|
||||
<q-btn
|
||||
dense
|
||||
size="12px"
|
||||
|
|
@ -257,7 +259,7 @@ onMounted(() => {
|
|||
props.row.totalInvestigate > 0
|
||||
"
|
||||
class="text-blue"
|
||||
@click="openDetail(props.row, 'investigate')"
|
||||
@click="checkPermission($route)?.attrIsGet ? openDetail(props.row, 'investigate'):''"
|
||||
>
|
||||
{{ props.row.totalInvestigate }}
|
||||
</div>
|
||||
|
|
@ -267,18 +269,17 @@ onMounted(() => {
|
|||
props.row.totalDisciplinary > 0
|
||||
"
|
||||
class="text-blue"
|
||||
@click="openDetail(props.row, 'disciplinary')"
|
||||
@click="checkPermission($route)?.attrIsGet ? openDetail(props.row, 'disciplinary'):''"
|
||||
>
|
||||
{{ props.row.totalDisciplinary }}
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
@click="$router.push(`/discipline/director/${props.row.id}`)"
|
||||
@click="checkPermission($route)?.attrIsUpdate ? $router.push(`/discipline/director/${props.row.id}`):''"
|
||||
>
|
||||
{{ col.value ?? "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
||||
</q-tr>
|
||||
</template>
|
||||
</d-table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue