permission => บรรจุ แต่งตั้ง ย้าย โอน,สรรหา
This commit is contained in:
parent
c8fef97125
commit
d3b2733ad5
24 changed files with 206 additions and 99 deletions
|
|
@ -97,14 +97,17 @@
|
|||
>
|
||||
<template #columns="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td auto-width>
|
||||
<q-td auto-width v-if="checkPermission($route)?.attrIsUpdate">
|
||||
<q-checkbox v-model="props.selected" />
|
||||
</q-td>
|
||||
<q-td
|
||||
v-for="col in props.cols"
|
||||
:key="col.name"
|
||||
:props="props"
|
||||
@click="viewDetail(props.row.id, props.row.status)"
|
||||
@click="
|
||||
checkPermission($route)?.attrIsUpdate &&
|
||||
viewDetail(props.row.id, props.row.status)
|
||||
"
|
||||
>
|
||||
<div v-if="col.name == 'no'" class="table_ellipsis">
|
||||
{{ (page - 1) * pageSize + props.rowIndex + 1 }}
|
||||
|
|
@ -217,6 +220,7 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import type { QTableProps } from "quasar";
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
import { onMounted, ref, watch } from "vue";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue