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

@@ -57,8 +57,8 @@
<!-- 操作按钮 -->
<div class="mb15">
<el-button
v-auth="'recruit_recruitplanmajor_add'"
<el-button
v-if="hasAuth('recruit_recruitplanmajor_add')"
type="primary"
icon="FolderAdd"
@click="addOrUpdateHandle"
@@ -74,6 +74,7 @@
v-loading="state.loading"
border
stripe
row-key="id"
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
@@ -124,7 +125,6 @@
<el-table-column label="操作" width="150" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'recruit_recruitplanmajor_edit'"
type="primary"
link
icon="EditPen"
@@ -133,7 +133,7 @@
修改
</el-button>
<el-button
v-auth="'recruit_recruitplanmajor_del'"
v-if="hasAuth('recruit_recruitplanmajor_del')"
type="danger"
link
icon="Delete"
@@ -160,6 +160,7 @@
<script setup lang="ts" name="recruitplanmajor">
import { ref, reactive, onMounted, nextTick, defineAsyncComponent } from 'vue'
import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage, useMessageBox } from '/@/hooks/message'
import { useDict } from '/@/hooks/dict'
@@ -169,7 +170,7 @@ import { getDeptList } from '/@/api/basic/basicclass'
import { getMajorNameList } from '/@/api/basic/major'
const TableForm = defineAsyncComponent(() => import('./detaiform.vue'))
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()
const messageBox = useMessageBox()