This commit is contained in:
guochunsi
2026-01-30 16:29:15 +08:00
parent 53f71066f3
commit c6da6e286f
70 changed files with 688 additions and 519 deletions

View File

@@ -6,9 +6,8 @@
<div class="mb15" style="width: 100%;">
<el-button
type="primary"
icon="FolderAdd"
@click="handleAdd"
v-auth="'professional_professionalyearbounds_add'">
icon="FolderAdd"
@click="handleAdd">
</el-button>
</div>
</el-row>
@@ -45,15 +44,15 @@
<el-table-column label="操作" min-width="150" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'professional_professionalyearbounds_edit'"
<el-button
v-if="hasAuth('professional_professionalyearbounds_edit')"
icon="edit-pen"
link
type="primary"
@click="handleEdit(scope.row)">修改
</el-button>
<el-button
v-auth="'professional_professionalyearbounds_del'"
v-if="hasAuth('professional_professionalyearbounds_del')"
icon="delete"
link
type="danger"
@@ -177,11 +176,13 @@
<script setup lang="ts">
import { ref, reactive } from 'vue'
import { defineAsyncComponent } from 'vue'
import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage, useMessageBox } from '/@/hooks/message'
import { fetchList, addObj, putObj, delObj } from '/@/api/professional/salaries/professionalyearbounds'
const TeacherNameNo = defineAsyncComponent(() => import('/@/components/TeacherNameNo/index.vue'))
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()