|
|
|
@ -3,14 +3,14 @@
|
|
|
|
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
|
|
<el-form-item label="项目" prop="projectId">
|
|
|
|
|
<el-select :disabled="data.currentProId != ''" v-model="queryParams.projectId" placeholder="请选择项目" clearable
|
|
|
|
|
<el-select :disabled="data.currentProId != ''" style="width:150px;" v-model="queryParams.projectId" placeholder="请选择项目" clearable
|
|
|
|
|
@change="()=>{handleQuery();projectChange();}">
|
|
|
|
|
<el-option v-for="prj in data.projects" :key="prj.id" :label="prj.projectName" :value="prj.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="所属单位" prop="subDeptId">
|
|
|
|
|
<el-select v-model="queryParams.subDeptId" placeholder="请选择所属单位" clearable @change="()=>{handleQuery();subDeptChange();}">
|
|
|
|
|
<el-select v-model="queryParams.subDeptId" style="width:150px;" placeholder="请选择所属单位" clearable @change="()=>{handleQuery();subDeptChange();}">
|
|
|
|
|
<el-option v-for="(it, idx) in data.subdepts" :key="it.id" :label="it.subDeptName" :value="it.id" />
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -157,6 +157,7 @@ import { listAttendanceUbiData, getAttendanceUbiData, delAttendanceUbiData, addA
|
|
|
|
|
import { findMyProjectList } from "@/api/publics";
|
|
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
|
|
import { listProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts";
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
|
|
|
|
const { pro_craft_type, pro_craft_post } = proxy.useDict( 'pro_craft_type', 'pro_craft_post');
|
|
|
|
@ -345,8 +346,10 @@ function handleExport() {
|
|
|
|
|
}, `attendanceUbiData_${new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
queryParams.value.inTime= proxy.$dt(new Date()).format("YYYY-MM-DD");
|
|
|
|
|
getList();
|
|
|
|
|
getProjectList();
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
.attendance-ubi-data{
|
|
|
|
|