企业管理-员工管理

This commit is contained in:
xiao-fajia 2024-08-14 13:38:15 +08:00
parent 7d432fcdd1
commit 27d702b9bd
4 changed files with 16 additions and 33 deletions

View File

@ -98,6 +98,8 @@ export const DICT_TYPE = {
DICT_CUS_INFO_STATUS : 'cus_info_status',
//推广渠道
PROMOTION_CHANNEL : 'promotion_channel',
//用户类型
SYSTEM_USER_TYPE : 'system_user_type',
// ------- carMain模块 -------
//车辆性质

View File

@ -62,7 +62,7 @@
<i class="el-icon-place"></i>
推广人角色
</template>
<!-- <dict-tag :type="DICT_TYPE.USER_IDENTITY" :value="formData.identity"/>-->
<dict-tag :type="DICT_TYPE.SYSTEM_USER_TYPE" :value="formData.oldUser.userType"/>
</el-descriptions-item>
</el-descriptions>
</el-dialog>
@ -90,7 +90,7 @@ export default {
promotionChannel: null,
uniqueCode: null,
registerTime: null,
identity: null
userType: null
},
}
},
@ -115,7 +115,7 @@ export default {
promotionChannel: null,
uniqueCode: null,
registerTime: null,
identity: null
userType: null
}
this.resetForm('formRef')
},

View File

@ -5,14 +5,14 @@
<el-form-item label="推广人姓名" prop="oldUserName">
<el-input v-model="queryParams.oldUserName" placeholder="请输入推广人姓名" clearable @keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="推广人角色" prop="identity">
<el-select v-model="queryParams.identity" placeholder="请选择推广人角色" clearable size="small">
<!-- <el-option-->
<!-- v-for="dict in this.getDictDatas(DICT_TYPE.USER_IDENTITY)"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- />-->
<el-form-item label="推广人角色" prop="userType">
<el-select v-model="queryParams.userType" placeholder="请选择推广人角色" clearable size="small">
<el-option
v-for="dict in this.getDictDatas(DICT_TYPE.SYSTEM_USER_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="推广人推广码" prop="uniqueCode">
@ -54,9 +54,9 @@
</el-table-column>
<el-table-column label="推广人姓名" align="center" prop="oldUserName" width="180" />
<el-table-column label="推广人电话" align="center" prop="oldUser.mobile" width="180" />
<el-table-column label="推广人角色" align="center" prop="identity" width="180">
<el-table-column label="推广人角色" align="center" prop="oldUser.userType" width="180">
<template v-slot="scope">
<dict-tag :type="DICT_TYPE.USER_IDENTITY" :value="scope.row.identity"/>
<dict-tag :type="DICT_TYPE.SYSTEM_USER_TYPE" :value="scope.row.oldUser.userType"/>
</template>
</el-table-column>
<el-table-column label="推广人推广码" align="center" prop="uniqueCode" width="180" />
@ -107,7 +107,7 @@ export default {
newUserName: null,
registerTimeArray: null,
uniqueCode: null,
identity: null
userType: null
},
//
showSearch: true,

View File

@ -65,13 +65,11 @@
<el-row :gutter="2">
<el-col :span="12">
<el-form-item v-if="formData.id === undefined" label="登录账号" prop="loginAccount">
<el-input v-model="formData.loginAccount" placeholder="请输入登录账号"/>
<el-input v-model="formData.loginAccount" placeholder="请输入登录账号" maxlength="16" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-if="formData.id === undefined" label="登录密码" prop="password">
<el-input v-model="formData.password" placeholder="请输入登录密码" type="password" show-password/>
<el-input v-model="formData.password" placeholder="请输入登录密码" type="password" maxlength="16" show-password />
</el-form-item>
</el-col>
@ -206,23 +204,6 @@ export default {
trigger: 'blur'
}
],
sex: [{required: true, message: "性别不能为空", trigger: 'blur'}],
address: [{required: true, message: "家庭住址不能为空", trigger: 'blur'}],
workYear: [{required: true, message: "工龄不能为空", trigger: 'blur'}],
joinedYear: [{required: true, message: "司龄不能为空", trigger: 'blur'}],
education: [{required: true, message: "学历不能为空", trigger: 'blur'}],
loginAccount: [{ required: true, message: '登录账号不能为空', trigger: 'blur' }, {
min: 4,
max: 16,
message: '登录账号长度在4到16个字符',
trigger: 'blur'
}],
password: [{ required: true, message: '登录密码不能为空', trigger: 'blur' }, {
min: 4,
max: 16,
message: '登录密码长度在4到16个字符',
trigger: 'blur'
}],
workDate: [{ required: true, message: '工作日期不能为空', trigger: 'blur' }],
joinedDate: [{ required: true, message: '入职日期不能为空', trigger: 'blur' }]
},