extList=userExtService.selectSysUserExtList(userExtWhere);
+ if(extList.size()>0){
+ SysUserExt oldExt=extList.get(0);
+ oldExt.setWorkType(user.getWorkType());
+ oldExt.setUserType(user.getUserType());
+ userExtService.updateSysUserExt(oldExt);
+ }
try {
if(Objects.equals(user.getUserType(),"99")){
// 根据单位递归查询项目信息
diff --git a/yanzhu-ui-vue3/src/api/system/user.js b/yanzhu-ui-vue3/src/api/system/user.js
index 4f059a54..66abf907 100644
--- a/yanzhu-ui-vue3/src/api/system/user.js
+++ b/yanzhu-ui-vue3/src/api/system/user.js
@@ -45,6 +45,7 @@ export function updateUser(data) {
userId:data.userId,
userName:data.userName,
userType:data.userType,
+ workType:data.workType,
sex:data.sex,
status:data.status,
postIds:data.postIds,
diff --git a/yanzhu-ui-vue3/src/components/DictTag/index.vue b/yanzhu-ui-vue3/src/components/DictTag/index.vue
index 4806fdb4..a5f96e8e 100644
--- a/yanzhu-ui-vue3/src/components/DictTag/index.vue
+++ b/yanzhu-ui-vue3/src/components/DictTag/index.vue
@@ -9,12 +9,12 @@
:class="item.elTagClass"
>{{ item.label + " " }}
- {{ item.label + " " }}
diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
index 4ea2738c..d006fab5 100644
--- a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
+++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue
@@ -181,15 +181,31 @@
+
+
+ minlength="11" maxlength="11" style="width: 150px;" />
+ style="width: 150px;" />
查询
此电话号码将用作登录
+
+
+
+
+
+
+
+
+
+
+
+
@@ -280,7 +296,9 @@ import useUserStore from '@/store/modules/user'
import dayjs from 'dayjs'
const userStore = useUserStore()
const { proxy } = getCurrentInstance();
-const { sys_use_status, pro_craft_type, sys_is_del, pro_craft_post, certificate_type, educational_type,sys_user_sex } = proxy.useDict('sys_use_status', 'pro_craft_type', 'sys_is_del', 'pro_craft_post', 'certificate_type', 'educational_type','sys_user_sex');
+const { sys_use_status, pro_craft_type, sys_is_del, pro_craft_post, certificate_type, educational_type,sys_user_sex,user_work_type } =
+proxy.useDict('sys_use_status', 'pro_craft_type', 'sys_is_del', 'pro_craft_post', 'certificate_type',
+'educational_type','sys_user_sex','user_work_type');
const proProjectInfoSubdeptsUsersList = ref([]);
const open = ref(false);
@@ -324,10 +342,13 @@ const data = reactive({
illnessStatus: null,
supIllnessStatus: null,
isDel: null,
+ userWorkType:null,
+ workType:null,
},
rules: {
subDeptId: [{ required: true, trigger: ['blur', 'change'], message: "请选择所属单位" }],
userName: [{ required: true, trigger: ['blur', 'change'], message: "请输入姓名" }],
+ workType: [{ required: true, trigger: ['blur', 'change'], message: "请选择用户岗位" }],
userPhone: [
{ required: true, trigger: ['blur', 'change'], message: "请输入手机号码" },
{ min: 11, max: 11, message: '请输入有效手机号码', trigger: 'blur' },
@@ -349,6 +370,9 @@ const data = reactive({
mode: '',
editData: null,
craftPostList:[],
+ prjWorkTypeObj:{},
+ prjWorkCategories:[],//项目人员岗位大类
+ prjWorkTypes:[],//项目人员岗位类型
});
const { queryParams, form, rules } = toRefs(data);
@@ -366,7 +390,9 @@ function handleEnter(row) {
});
}
}
-
+function doWorkTypeChange(){
+ data.prjWorkTypes = data.prjWorkTypeObj[form.value.userWorkType]
+}
//批量入场,批量离场
function handleBatchEnterState(state) {
if (ids.value.length == 0) {
@@ -820,7 +846,23 @@ function handleExport() {
...queryParams.value
}, `proProjectInfoSubdeptsUsers_${new Date().getTime()}.xlsx`)
}
-loadSubDepts();
+function getUserWorkType(){
+ let obj={};
+ user_work_type.value.filter(d=>d.elTagClass=="项目人员").forEach(d=>{
+ let bigType=d.remark;
+ d.value=""+d.value;
+ if(!obj[bigType]){
+ obj[bigType]=[];
+ data.prjWorkCategories.push(bigType);
+ }
+ obj[bigType].push(d);
+ });
+ data.prjWorkTypeObj=obj;
+}
+
+loadSubDepts(()=>{
+ getUserWorkType();
+});
getList();