update
parent
3be5e9683f
commit
6731f5ef7c
|
@ -13,7 +13,7 @@ export function listAttendanceWorker(query) {
|
|||
// 查询考勤人员基本属性列表
|
||||
export function queryAttendanceWorker(query) {
|
||||
return request({
|
||||
url: '/project/attendanceWorker/query',
|
||||
url: '/system/attendanceUser/query',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
@ -21,7 +21,7 @@ export function queryAttendanceWorker(query) {
|
|||
// 查询考勤人员基本属性列表
|
||||
export function listJgwAttendanceWorker(query) {
|
||||
return request({
|
||||
url: '/project/attendanceWorker/listjgw',
|
||||
url: '/system/attendanceUser/listjgw',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
|
|
@ -96,7 +96,7 @@ const selectProjectAuditinfo = (query) => {
|
|||
|
||||
const findAttendanceCfgList = (query) =>{
|
||||
return request({
|
||||
url: '/publics/findAttendanceCfgList',
|
||||
url: '/system/attendanceCfg/findAttendanceCfgList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
|
|
|
@ -36,6 +36,11 @@ export default{
|
|||
label{
|
||||
margin-right: 10px;
|
||||
cursor: pointer;
|
||||
font-weight: normal;
|
||||
&:hover{
|
||||
font-weight: bold;
|
||||
color:cornflowerblue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"
|
||||
style="position: relative;">
|
||||
<!--
|
||||
<el-form-item label="项目名称" prop="projectId">
|
||||
<el-select :disabled="prjDisabled" v-model="queryParams.projectId" placeholder="请选择项目" clearable
|
||||
@change="doQuerySub()">
|
||||
|
@ -14,7 +15,7 @@
|
|||
<el-option v-for="(item, index) in depts" :key="index" :label="item.deptName" :value="item.deptId">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="分包单位类型" prop="companyTypeId">
|
||||
<el-select v-model="queryParams.companyTypeId" placeholder="请选择分包单位类型" clearable style="width: 100px;">
|
||||
<el-option value="" label="所有"></el-option>
|
||||
|
@ -97,6 +98,7 @@
|
|||
|
||||
<script>
|
||||
import { queryAttendanceWorker, listJgwAttendanceWorker, getAttendanceWorker, delAttendanceWorker, addAttendanceWorker, updateAttendanceWorker, queryAttendanceData } from "@/api/project/attendanceWorker";
|
||||
|
||||
export default {
|
||||
name: "AttendanceWorker",
|
||||
data() {
|
||||
|
@ -124,8 +126,8 @@ export default {
|
|||
companyTypeId:"",
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectId: null,
|
||||
subDeptId: null,
|
||||
projectId: 1,
|
||||
subDeptId: 1,
|
||||
name:null,
|
||||
state: '',
|
||||
},
|
||||
|
@ -141,54 +143,13 @@ export default {
|
|||
};
|
||||
},
|
||||
created() {
|
||||
this.$api.publics.getMyProjectList({}).then((response) => {
|
||||
this.projectOptions = response.rows;
|
||||
});
|
||||
this.$api.publics.findAttendanceCfgList({}).then((response) => {
|
||||
this.cfgList = response.data||[];
|
||||
this.getList();
|
||||
});
|
||||
|
||||
},
|
||||
methods: {
|
||||
initMe(prj) {
|
||||
this.queryParams.projectId = prj.id;
|
||||
this.prjDisabled = true;
|
||||
this.doQuerySub(true);
|
||||
},
|
||||
doQuerySub(init) {
|
||||
this.queryParams.state = "";
|
||||
let tmps = this.prjDept2 && this.prjDept2[this.queryParams.projectId] ? this.prjDept2[this.queryParams.projectId] || [] : [];
|
||||
if (tmps.length > 0) {
|
||||
this.depts = tmps;
|
||||
if (tmps.length == 1) {
|
||||
this.queryParams.subDeptId = tmps[0].deptId;
|
||||
} else {
|
||||
this.queryParams.subDeptId = '';
|
||||
}
|
||||
if (init) {
|
||||
this.getList();
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.$api.publics.queryUnitList({
|
||||
projectId: this.queryParams.projectId,
|
||||
unitTypes: "2".split(","),
|
||||
}).then((d) => {
|
||||
let objs = d.rows || [];
|
||||
if (!this.prjDept2) {
|
||||
this.prjDept2 = {};
|
||||
}
|
||||
this.prjDept2[this.queryParams.projectId] = objs;
|
||||
this.depts = objs;
|
||||
if (objs.length == 1) {
|
||||
this.queryParams.subDeptId = objs[0].deptId;
|
||||
} else {
|
||||
this.queryParams.subDeptId = '';
|
||||
}
|
||||
if (init) {
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
/** 查询考勤人员基本属性列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
|
Loading…
Reference in New Issue