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

@@ -23,11 +23,11 @@
<!-- 操作按钮 -->
<el-row>
<div class="mb15" style="width: 100%;">
<el-button
<el-button
v-if="hasAuth('professional_outercompany_add')"
type="primary"
icon="FolderAdd"
@click="handleAdd"
v-auth="'professional_outercompany_add'">
icon="FolderAdd"
@click="handleAdd">
</el-button>
</div>
</el-row>
@@ -38,6 +38,7 @@
:data="state.dataList"
v-loading="state.loading"
border
row-key="id"
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
@@ -58,15 +59,15 @@
<el-table-column label="操作" min-width="150" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'professional_outercompany_edit'"
<el-button
v-if="hasAuth('professional_outercompany_edit')"
icon="edit-pen"
link
type="primary"
@click="handleEdit(scope.row)">修改
</el-button>
<el-button
v-auth="'professional_outercompany_del'"
v-if="hasAuth('professional_outercompany_del')"
icon="delete"
link
type="danger"
@@ -141,12 +142,13 @@
<script setup lang="ts">
import { ref, reactive } from 'vue'
import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage } from '/@/hooks/message'
import { useMessageBox } from '/@/hooks/message'
import { fetchList, addObj, putObj, delObj, getObj } from '/@/api/professional/stayschool/outercompany'
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()
const messageBox = useMessageBox()

View File

@@ -23,11 +23,11 @@
<!-- 操作按钮 -->
<el-row>
<div class="mb15" style="width: 100%;">
<el-button
<el-button
v-if="hasAuth('professional_outercompany_add')"
type="primary"
icon="FolderAdd"
@click="handleAdd"
v-auth="'professional_outercompany_add'">
icon="FolderAdd"
@click="handleAdd">
</el-button>
<!-- <right-toolbar
v-model:showSearch="showSearch"
@@ -44,6 +44,7 @@
:data="state.dataList"
v-loading="state.loading"
border
row-key="id"
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
@@ -64,15 +65,15 @@
<el-table-column label="操作" min-width="150" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'professional_outercompany_edit'"
<el-button
v-if="hasAuth('professional_outercompany_edit')"
icon="edit-pen"
link
type="primary"
@click="handleEdit(scope.row)">修改
</el-button>
<el-button
v-auth="'professional_outercompany_del'"
v-if="hasAuth('professional_outercompany_del')"
icon="delete"
link
type="danger"
@@ -147,12 +148,13 @@
<script setup lang="ts">
import { ref, reactive } from 'vue'
import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage } from '/@/hooks/message'
import { useMessageBox } from '/@/hooks/message'
import { fetchList, addObj, putObj, delObj, getObj } from '/@/api/professional/stayschool/outercompany'
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()
const messageBox = useMessageBox()

View File

@@ -26,6 +26,7 @@
:data="state.dataList"
v-loading="state.loading"
border
row-key="id"
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
@@ -47,15 +48,15 @@
<!-- 操作列已注释此页面为只读 -->
<!-- <el-table-column label="操作" width="150" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'professional_outercompany_edit'"
<el-button
v-if="hasAuth('professional_outercompany_edit')"
icon="edit-pen"
text
type="primary"
@click="handleEdit(scope.row)">修改
</el-button>
<el-button
v-auth="'professional_outercompany_del'"
v-if="hasAuth('professional_outercompany_del')"
icon="delete"
text
type="danger"