update code
parent
ec14b0557b
commit
55070225cc
|
@ -45,7 +45,7 @@ import DictTag from '@/components/DictTag'
|
||||||
// Vue3表单组件
|
// Vue3表单组件
|
||||||
import VForm3 from '@/lib/vform/designer.umd.js'
|
import VForm3 from '@/lib/vform/designer.umd.js'
|
||||||
import '@/lib/vform/designer.style.css'
|
import '@/lib/vform/designer.style.css'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
|
|
||||||
// 全局方法挂载
|
// 全局方法挂载
|
||||||
|
@ -67,7 +67,7 @@ app.config.globalProperties.$tryToJson=(str,df)=>{
|
||||||
return (df||{});
|
return (df||{});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
app.config.globalProperties.$dt=dayjs;
|
||||||
// 全局组件挂载
|
// 全局组件挂载
|
||||||
app.component('DictTag', DictTag)
|
app.component('DictTag', DictTag)
|
||||||
app.component('Pagination', Pagination)
|
app.component('Pagination', Pagination)
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
|
||||||
<el-form-item label="项目" prop="projectId">
|
<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();}">
|
@change="()=>{handleQuery();projectChange();}">
|
||||||
<el-option v-for="prj in data.projects" :key="prj.id" :label="prj.projectName" :value="prj.id">
|
<el-option v-for="prj in data.projects" :key="prj.id" :label="prj.projectName" :value="prj.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属单位" prop="subDeptId">
|
<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-option v-for="(it, idx) in data.subdepts" :key="it.id" :label="it.subDeptName" :value="it.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -157,6 +157,7 @@ import { listAttendanceUbiData, getAttendanceUbiData, delAttendanceUbiData, addA
|
||||||
import { findMyProjectList } from "@/api/publics";
|
import { findMyProjectList } from "@/api/publics";
|
||||||
import useUserStore from '@/store/modules/user'
|
import useUserStore from '@/store/modules/user'
|
||||||
import { listProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts";
|
import { listProProjectInfoSubdepts } from "@/api/manage/proProjectInfoSubdepts";
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const { pro_craft_type, pro_craft_post } = proxy.useDict( 'pro_craft_type', 'pro_craft_post');
|
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`)
|
}, `attendanceUbiData_${new Date().getTime()}.xlsx`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
queryParams.value.inTime= proxy.$dt(new Date()).format("YYYY-MM-DD");
|
||||||
getList();
|
getList();
|
||||||
getProjectList();
|
getProjectList();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.attendance-ubi-data{
|
.attendance-ubi-data{
|
||||||
|
|
Loading…
Reference in New Issue