考勤明细历史推送页面
This commit is contained in:
parent
69b3f95d4d
commit
646defd797
|
|
@ -93,72 +93,72 @@ export function exportOutCountList(query) {
|
|||
}
|
||||
|
||||
/*数据同步1*/
|
||||
export function ayscData(query) {
|
||||
export function getAttTempData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/getAttTempData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步2*/
|
||||
export function ayscData2(query) {
|
||||
export function getAttDataPull(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/getAttDataPull',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步3*/
|
||||
export function ayscData3(query) {
|
||||
export function getAbsenteeismData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/getAbsenteeismData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步4*/
|
||||
export function ayscData4(query) {
|
||||
export function getLegalHolidayData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/getLegalHolidayData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步5*/
|
||||
export function ayscData5(query) {
|
||||
export function getLeaveData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/getLeaveData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步6*/
|
||||
export function ayscData6(query) {
|
||||
export function insertDayReportData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/insertDayReportData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步7*/
|
||||
export function ayscData7(query) {
|
||||
export function insertMonthReportTempData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/insertMonthReportTempData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/*数据同步8*/
|
||||
export function ayscData8(query) {
|
||||
export function updateMonthReportData(query) {
|
||||
return request({
|
||||
url: '/system/attDetails/getAttCountList',
|
||||
url: '/system/attHisPull/updateMonthReportData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
|
|
|||
|
|
@ -244,16 +244,16 @@
|
|||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row style="margin-top: 10px;">
|
||||
<el-button type="primary" plain @click="operMethod(1)">数据同步</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(2)">数据同步2</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(3)">数据同步3</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(4)">数据同步4</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(1)">1.模版数据(必须)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(2)">2.数据拉取(必须)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(3)">3.旷工更新(非必)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(4)">4.法假更新(非必)</el-button>
|
||||
</el-row>
|
||||
<el-row style="margin-top: 10px;">
|
||||
<el-button type="primary" plain @click="operMethod(5)">数据同步5</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(6)">数据同步6</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(7)">数据同步7</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(8)">数据同步8</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(5)">5.请假日更新(非必)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(6)">6.日报表更新(必须)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(7)">7.月报表模版(非必)</el-button>
|
||||
<el-button type="primary" plain @click="operMethod(8)">8.月报表更新(必须)</el-button>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
|
|
@ -274,14 +274,14 @@ import {
|
|||
getOutCountList,
|
||||
getAttCountList,
|
||||
exportOutCountList,
|
||||
ayscData,
|
||||
ayscData2,
|
||||
ayscData3,
|
||||
ayscData4,
|
||||
ayscData5,
|
||||
ayscData6,
|
||||
ayscData7,
|
||||
ayscData8,
|
||||
getAttTempData,
|
||||
getAttDataPull,
|
||||
getAbsenteeismData,
|
||||
getLegalHolidayData,
|
||||
getLeaveData,
|
||||
insertDayReportData,
|
||||
insertMonthReportTempData,
|
||||
updateMonthReportData,
|
||||
} from "@/api/report/attReport";
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
|
@ -466,37 +466,37 @@ export default {
|
|||
background: 'rgba(0,0,0,0.2)'
|
||||
})
|
||||
if(type === 1){
|
||||
ayscData(query).then(res=>{
|
||||
getAttTempData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 2){
|
||||
ayscData2(query).then(res=>{
|
||||
getAttDataPull(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 3){
|
||||
ayscData3(query).then(res=>{
|
||||
getAbsenteeismData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 4){
|
||||
ayscData4(query).then(res=>{
|
||||
getLegalHolidayData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 5){
|
||||
ayscData5(query).then(res=>{
|
||||
getLeaveData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 6){
|
||||
ayscData6(query).then(res=>{
|
||||
insertDayReportData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 7){
|
||||
ayscData7(query).then(res=>{
|
||||
insertMonthReportTempData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}else if(type === 8){
|
||||
ayscData8(query).then(res=>{
|
||||
updateMonthReportData(query).then(res=>{
|
||||
loading.close();
|
||||
}).catch(err=>{});
|
||||
}).catch(err=>{loading.close();});
|
||||
}
|
||||
},
|
||||
openData2() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue