Compare commits
2 Commits
9ade90355b
...
f45123126d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f45123126d | ||
|
|
df36d1da35 |
@@ -106,27 +106,27 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Basic',
|
||||
component: Layout,
|
||||
name: 'Basic',
|
||||
meta: {},
|
||||
redirect: '/Basic/menu',
|
||||
children: [
|
||||
{
|
||||
path: 'menu',
|
||||
component: () => import('@/views/Basic/Menu/index.vue'),
|
||||
name: 'Menu',
|
||||
meta: {
|
||||
canTo: true,
|
||||
hidden: true,
|
||||
noTagsView: false,
|
||||
icon: 'ep:user',
|
||||
title: '菜单管理'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/Basic',
|
||||
// component: Layout,
|
||||
// name: 'Basic',
|
||||
// meta: {},
|
||||
// redirect: '/Basic/menu',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'menu',
|
||||
// component: () => import('@/views/Basic/Menu/index.vue'),
|
||||
// name: 'Menu',
|
||||
// meta: {
|
||||
// canTo: true,
|
||||
// hidden: true,
|
||||
// noTagsView: false,
|
||||
// icon: 'ep:user',
|
||||
// title: '菜单管理'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/login',
|
||||
component: () => import('@/views/Login/Login.vue'),
|
||||
|
||||
@@ -1,18 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-form :model="searchForm" inline>
|
||||
<el-form :model="searchForm" inline @submit.prevent>
|
||||
<el-form-item>
|
||||
<el-input v-model="searchForm.name" placeholder="方案名称" />
|
||||
<el-input v-model="searchForm.name" placeholder="方案名称" @keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="searchForm.status" placeholder="启用状态" clearable filterable>
|
||||
<el-select
|
||||
v-model="searchForm.status"
|
||||
placeholder="启用状态"
|
||||
clearable
|
||||
filterable
|
||||
@change="handleQuery"
|
||||
>
|
||||
<el-option label="启用" :value="0" />
|
||||
<el-option label="停用" :value="1" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="handleQuery">搜索</el-button>
|
||||
<el-button type="primary" plain @click="openForm('create')"> 新增 </el-button>
|
||||
<el-button @click="handleQuery" v-hasPermi="['finance:commission:search']">搜索</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@click="openForm('create')"
|
||||
v-hasPermi="['finance:commission:add']"
|
||||
>
|
||||
新增
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table v-loading="loading" :data="tableList" border stripe>
|
||||
@@ -30,14 +43,29 @@
|
||||
v-model="scope.row.status"
|
||||
:active-value="0"
|
||||
:inactive-value="1"
|
||||
v-hasPermi="['finance:commission:update']"
|
||||
@change="handleStatusChange(scope.row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" link @click="openForm('update', scope.row)"> 修改 </el-button>
|
||||
<el-button type="primary" link @click="handleDelete(scope.row.id)"> 删除 </el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="openForm('update', scope.row)"
|
||||
v-hasPermi="['finance:commission:update']"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="handleDelete(scope.row.id)"
|
||||
v-hasPermi="['finance:commission:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-form :model="searchForm" inline>
|
||||
<el-form :model="searchForm" inline @submit.prevent>
|
||||
<el-form-item>
|
||||
<el-input v-model="searchForm.name" placeholder="请输入员工姓名" />
|
||||
<el-input
|
||||
v-model="searchForm.name"
|
||||
placeholder="请输入员工姓名"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-radio-group v-model="searchForm.status">
|
||||
<el-radio-group v-model="searchForm.status" @change="handleQuery">
|
||||
<el-radio :label="0"> 在职 </el-radio>
|
||||
<el-radio :label="1"> 离职 </el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="handleQuery">搜索</el-button>
|
||||
<el-button @click="handleQuery" v-hasPermi="['finance:salary:search']">搜索</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -23,7 +27,14 @@
|
||||
<el-table-column label="在职状态" prop="status" />
|
||||
<el-table-column label="操作">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" link @click="openForm(scope.row)"> 工资条设置 </el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="openForm(scope.row)"
|
||||
v-hasPermi="['finance:salary:set']"
|
||||
>
|
||||
工资条设置
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
@@ -15,9 +15,13 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="handleSearch">查询</el-button>
|
||||
<el-button type="primary" plain @click="craeteSalary">生成工资条</el-button>
|
||||
<el-button type="primary" @click="importHistorySalary">导入历史工资条</el-button>
|
||||
<el-button @click="handleSearch" v-hasPermi="['home:salary:search']">查询</el-button>
|
||||
<el-button type="primary" plain @click="craeteSalary" v-hasPermi="['home:salary:create']"
|
||||
>生成工资条</el-button
|
||||
>
|
||||
<el-button type="primary" @click="importHistorySalary" v-hasPermi="['home:salary:history']"
|
||||
>导入历史工资条</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -256,6 +260,7 @@
|
||||
style="padding: 0"
|
||||
v-if="!row.edit && row.yearmonth"
|
||||
text
|
||||
v-hasPermi="['home:salary:update']"
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
修改
|
||||
@@ -265,6 +270,7 @@
|
||||
v-else-if="row.edit && row.yearmonth"
|
||||
text
|
||||
style="padding: 0"
|
||||
v-hasPermi="['home:salary:update']"
|
||||
@click="handleSave(row)"
|
||||
>
|
||||
保存
|
||||
@@ -274,6 +280,7 @@
|
||||
v-if="row.yearmonth"
|
||||
style="padding: 0"
|
||||
text
|
||||
v-hasPermi="['home:salary:sealup']"
|
||||
@click="handleSave(row)"
|
||||
>
|
||||
封存
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<template>
|
||||
<el-tabs v-model="tabName">
|
||||
<el-tab-pane label="考勤方案" name="kqfa">
|
||||
<AttendancePlan />
|
||||
<el-tab-pane label="考勤方案" name="kqfa" v-if="checkPermi['per:setting:attendance-plan']">
|
||||
<AttendancePlan v-if="tabName == 'kqfa'" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</template>
|
||||
|
||||
<script setup name="PersSetting">
|
||||
import AttendancePlan from './Comp/AttendancePlan.vue'
|
||||
import { checkPermi } from '@/utils/permission'
|
||||
|
||||
const tabName = ref('kqfa')
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user