dev-cl
qsh 4 months ago
parent df36d1da35
commit f45123126d
  1. 42
      src/router/modules/remaining.ts
  2. 13
      src/views/Home/Salary/index.vue

@ -106,27 +106,27 @@ const remainingRouter: AppRouteRecordRaw[] = [
} }
] ]
}, },
{ // {
path: '/Basic', // path: '/Basic',
component: Layout, // component: Layout,
name: 'Basic', // name: 'Basic',
meta: {}, // meta: {},
redirect: '/Basic/menu', // redirect: '/Basic/menu',
children: [ // children: [
{ // {
path: 'menu', // path: 'menu',
component: () => import('@/views/Basic/Menu/index.vue'), // component: () => import('@/views/Basic/Menu/index.vue'),
name: 'Menu', // name: 'Menu',
meta: { // meta: {
canTo: true, // canTo: true,
hidden: true, // hidden: true,
noTagsView: false, // noTagsView: false,
icon: 'ep:user', // icon: 'ep:user',
title: '菜单管理' // title: '菜单管理'
} // }
} // }
] // ]
}, // },
{ {
path: '/login', path: '/login',
component: () => import('@/views/Login/Login.vue'), component: () => import('@/views/Login/Login.vue'),

@ -15,9 +15,13 @@
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="handleSearch">查询</el-button> <el-button @click="handleSearch" v-hasPermi="['home:salary:search']">查询</el-button>
<el-button type="primary" plain @click="craeteSalary">生成工资条</el-button> <el-button type="primary" plain @click="craeteSalary" v-hasPermi="['home:salary:create']"
<el-button type="primary" @click="importHistorySalary">导入历史工资条</el-button> >生成工资条</el-button
>
<el-button type="primary" @click="importHistorySalary" v-hasPermi="['home:salary:history']"
>导入历史工资条</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -256,6 +260,7 @@
style="padding: 0" style="padding: 0"
v-if="!row.edit && row.yearmonth" v-if="!row.edit && row.yearmonth"
text text
v-hasPermi="['home:salary:update']"
@click="handleEdit(row)" @click="handleEdit(row)"
> >
修改 修改
@ -265,6 +270,7 @@
v-else-if="row.edit && row.yearmonth" v-else-if="row.edit && row.yearmonth"
text text
style="padding: 0" style="padding: 0"
v-hasPermi="['home:salary:update']"
@click="handleSave(row)" @click="handleSave(row)"
> >
保存 保存
@ -274,6 +280,7 @@
v-if="row.yearmonth" v-if="row.yearmonth"
style="padding: 0" style="padding: 0"
text text
v-hasPermi="['home:salary:sealup']"
@click="handleSave(row)" @click="handleSave(row)"
> >
封存 封存

Loading…
Cancel
Save