员工权限校验

This commit is contained in:
GaoHao
2024-10-17 11:35:03 +08:00
parent b2a3854f2b
commit c75ff0ee68
8 changed files with 206 additions and 10 deletions

View File

@@ -75,6 +75,7 @@
<script>
import { tbHandoverGet } from '@/api/homes/record.js'
import { hasPermission } from '@/utils/limits.js'
import XLSX from 'xlsx';
import dayjs from "dayjs";
export default {
@@ -147,6 +148,8 @@ export default {
this.getTableData();
},
async getTableData() {
let res = await hasPermission('允许查看所有交班记录');
if ( !res) { return; }
this.tableData.loading = true;
try {
let urlData = null