diff --git a/src/api/payroll.js b/src/api/payroll.js new file mode 100644 index 0000000..c7c93da --- /dev/null +++ b/src/api/payroll.js @@ -0,0 +1,18 @@ +import request from './request' + +// 获取最低工资配置 +export function getMinimumWageConfig() { + return request({ + url: '/config', + method: 'get' + }) +} + +// 更新最低工资配置 +export function updateMinimumWageConfig(data) { + return request({ + url: '/config', + method: 'put', + data + }) +} \ No newline at end of file diff --git a/src/router/originalRoutingTable.js b/src/router/originalRoutingTable.js index ea9bff0..0f1b44b 100644 --- a/src/router/originalRoutingTable.js +++ b/src/router/originalRoutingTable.js @@ -141,6 +141,18 @@ const routerList = [ icon: "Notebook", roles: [3] // 只有财务角色可以访问 } + }, + { + path: '/config', + name: 'MinimumWageConfig', + component: () => import('../views/payroll/config/index.vue'), + meta: { + title: '当地最低工资查询', + name: "当地最低工资查询", + requiresAuth: true, + icon: "Notebook", + roles: [3] // 只有财务角色可以访问 + } } ] } diff --git a/src/views/payroll/config/index.vue b/src/views/payroll/config/index.vue new file mode 100644 index 0000000..3920307 --- /dev/null +++ b/src/views/payroll/config/index.vue @@ -0,0 +1,208 @@ + + + + + + 当地最低工资配置 + 仅财务人员可操作 + + + + + + + 元/月 + + + + + 保存修改 + + + + + + + + + + \ No newline at end of file