diff --git a/src/api/personnelMatters/holidays.js b/src/api/personnelMatters/holidays.js index b70f902..9d3b2ae 100644 --- a/src/api/personnelMatters/holidays.js +++ b/src/api/personnelMatters/holidays.js @@ -1,44 +1,28 @@ import request from '@/utils/request' -// 查询假期管理列表 -export function listHoliday(query) { + +export function getPage(year){ return request({ - url: '/personnelMatters/holiday/list', + url: '/personnelMatters/holiday/pageInfo/'+year, method: 'get', - params: query }) } + + // 查询假期管理详细 -export function getHoliday(id) { - return request({ - url: '/personnelMatters/holiday/' + id, - method: 'get' - }) -} - -// 新增假期管理 -export function addHoliday(data) { - return request({ - url: '/personnelMatters/holiday', - method: 'post', - data: data - }) -} +// export function getHoliday(id) { +// return request({ +// url: '/personnelMatters/holiday/' + id, +// method: 'get' +// }) +// } // 修改假期管理 export function updateHoliday(data) { return request({ - url: '/personnelMatters/holiday', - method: 'put', + url: '/personnelMatters/holiday/edit', + method: 'post', data: data }) } - -// 删除假期管理 -export function delHoliday(id) { - return request({ - url: '/personnelMatters/holiday/' + id, - method: 'delete' - }) -} diff --git a/src/api/personnelMatters/leave.js b/src/api/personnelMatters/leave.js index 3b321a5..9146c65 100644 --- a/src/api/personnelMatters/leave.js +++ b/src/api/personnelMatters/leave.js @@ -51,3 +51,18 @@ export function listLeaveDetails(query) { params: query }) } + +export function getNewDicts(dictType) { + return request({ + url: '/system/dict/data/type/new/' + dictType, + method: 'get' + }) +} + + +export function autoTypeList(){ + return request({ + url: '/personnelMatters/leave/autoTypeList', + method: 'get', + }) +} diff --git a/src/api/personnelMatters/leaveDetail.js b/src/api/personnelMatters/leaveDetail.js index dcd63bd..fea630e 100644 --- a/src/api/personnelMatters/leaveDetail.js +++ b/src/api/personnelMatters/leaveDetail.js @@ -42,3 +42,12 @@ export function delDetail(id) { method: 'delete' }) } + +//计算请假时长 +export function calculationLeaveHour(param){ + return request({ + url: '/personnelMatters/leaveDetail/calculationLeaveHour', + method: 'post', + data: param + }) +} diff --git a/src/components/DictNewTag/index.vue b/src/components/DictNewTag/index.vue new file mode 100644 index 0000000..3865215 --- /dev/null +++ b/src/components/DictNewTag/index.vue @@ -0,0 +1,100 @@ + + + + diff --git a/src/main.js b/src/main.js index d2fe0bf..76efaa9 100644 --- a/src/main.js +++ b/src/main.js @@ -32,6 +32,7 @@ import ImageUpload from "@/components/ImageUpload" import ImagePreview from "@/components/ImagePreview" // 字典标签组件 import DictTag from '@/components/DictTag' +import DictNewTag from '@/components/DictNewTag' // 头部标签组件 import VueMeta from 'vue-meta' // 字典数据组件 @@ -50,6 +51,7 @@ Vue.prototype.downloadExcel = downloadExcel // 全局组件挂载 Vue.component('DictTag', DictTag) +Vue.component('DictNewTag', DictNewTag) Vue.component('Pagination', Pagination) Vue.component('RightToolbar', RightToolbar) Vue.component('Editor', Editor) diff --git a/src/views/personnelMatters/holidays/index.vue b/src/views/personnelMatters/holidays/index.vue index 8793933..e1d4797 100644 --- a/src/views/personnelMatters/holidays/index.vue +++ b/src/views/personnelMatters/holidays/index.vue @@ -1,97 +1,72 @@