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

@@ -77,11 +77,11 @@
<!-- 操作按钮 -->
<el-row>
<div class="mb15" style="width: 100%; position: relative;">
<el-button
<el-button
v-if="hasAuth('professional_outercompanyemployee_add')"
type="primary"
icon="FolderAdd"
@click="handleAdd"
v-auth="'professional_outercompanyemployee_add'"
>
</el-button>
@@ -127,6 +127,7 @@
<el-table
ref="tableRef"
:data="state.dataList"
row-key="id"
v-loading="state.loading"
border
:cell-style="tableStyle.cellStyle"
@@ -148,7 +149,13 @@
<el-table-column prop="inoutFlag" label="允许进出" width="100" align="center">
<template #default="scope">
<el-tag v-if="scope.row.inoutFlag">{{ getDictLabel(scope.row.inoutFlag) }}</el-tag>
<el-tag
v-if="scope.row.inoutFlag"
:type="scope.row.inoutFlag === '1' ? 'success' : 'info'"
effect="plain"
>
{{ getDictLabel(scope.row.inoutFlag) }}
</el-tag>
<span v-else>-</span>
</template>
</el-table-column>
@@ -170,22 +177,22 @@
<el-table-column label="操作" width="250" align="center" fixed="right">
<template #default="scope">
<el-button
v-auth="'professional_outercompanyemployee_edit'"
<el-button
v-if="hasAuth('professional_outercompanyemployee_edit')"
icon="edit-pen"
link
type="primary"
@click="handleEdit(scope.row)">修改
</el-button>
<el-button
v-auth="'professional_outercompanyemployee_reset_pw'"
v-if="hasAuth('professional_outercompanyemployee_reset_pw')"
icon="RefreshLeft"
link
type="primary"
@click="resetPassword(scope.row)">重置密码
</el-button>
<!-- <el-button
v-auth="'professional_outercompanyemployee_del'"
v-if="hasAuth('professional_outercompanyemployee_del')"
icon="delete"
link
type="primary"
@@ -252,6 +259,7 @@
<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useAuth } from '/@/hooks/auth'
import { useMessage } from '/@/hooks/message'
import { useMessageBox } from '/@/hooks/message'
import { useDict } from '/@/hooks/dict'
@@ -270,6 +278,9 @@ import {
import { getList as getCompanyList } from '/@/api/professional/stayschool/outercompany'
const FormDialog = defineAsyncComponent(() => import('./form.vue'))
// 无权限即无节点
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()
const messageBox = useMessageBox()