|
@@ -79,7 +79,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="密码" prop="word">
|
|
|
|
|
|
|
+ <el-form-item v-if="dialogPassword" label="密码" prop="word">
|
|
|
<el-input v-model="formData.password" :class="isShow==true?'disc':'none'" ></el-input>
|
|
<el-input v-model="formData.password" :class="isShow==true?'disc':'none'" ></el-input>
|
|
|
<i class="el-icon-view icon" @click="isShowFun()"></i>
|
|
<i class="el-icon-view icon" @click="isShowFun()"></i>
|
|
|
<!-- <el-input style="width:200px" v-model="formData.password" autocomplete="new-password"
|
|
<!-- <el-input style="width:200px" v-model="formData.password" autocomplete="new-password"
|
|
@@ -90,7 +90,7 @@
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="状态" prop="status">
|
|
<el-form-item label="状态" prop="status">
|
|
|
- <el-select style="width:200px" v-model="formData.status" placeholder="请选择">
|
|
|
|
|
|
|
+ <el-select style="width:200px" @change="statusChange" v-model="formData.status" placeholder="请选择">
|
|
|
<el-option v-for="val in user_statusoptions" :label="val.label" :value="val.value"
|
|
<el-option v-for="val in user_statusoptions" :label="val.label" :value="val.value"
|
|
|
:key="val.id"></el-option>
|
|
:key="val.id"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -116,6 +116,12 @@
|
|
|
<el-input v-model="formData.referrerId" disabled></el-input>
|
|
<el-input v-model="formData.referrerId" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="离职时间" prop="logoutTime">
|
|
|
|
|
+ <el-date-picker style="width:200px" value-format="yyyy-MM-dd" v-model="formData.logoutTime" type="date" placeholder="选择日期">
|
|
|
|
|
+ </el-date-picker>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div style="text-align: right;">
|
|
<div style="text-align: right;">
|
|
@@ -481,7 +487,7 @@ export default {
|
|
|
identity:
|
|
identity:
|
|
|
[{ required: true, message: "请填写身份证号" },
|
|
[{ required: true, message: "请填写身份证号" },
|
|
|
{ validator: validateSfz }],
|
|
{ validator: validateSfz }],
|
|
|
- referrerId:[{ required: true, message: "请选择推荐人", trigger: "change" }]
|
|
|
|
|
|
|
+ referrerId:[{ required: true, message: "请选择推荐人", trigger: "change" }],
|
|
|
},
|
|
},
|
|
|
filterObject: {},
|
|
filterObject: {},
|
|
|
peopleid: "",
|
|
peopleid: "",
|
|
@@ -518,6 +524,7 @@ export default {
|
|
|
user_statusoptions: JSON.parse(localStorage.getItem('user_statusoptions')),
|
|
user_statusoptions: JSON.parse(localStorage.getItem('user_statusoptions')),
|
|
|
roles: JSON.parse(localStorage.getItem('find_all')),
|
|
roles: JSON.parse(localStorage.getItem('find_all')),
|
|
|
option: [], //机构列表
|
|
option: [], //机构列表
|
|
|
|
|
+ dialogPassword:true, //密码是否显示
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -545,6 +552,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //状态改变时
|
|
|
|
|
+ statusChange(e){
|
|
|
|
|
+ console.log(this.user_statusoptions)
|
|
|
|
|
+ console.log(e)
|
|
|
|
|
+ if(e==0){
|
|
|
|
|
+ this.$set( this.formDataRules,'logoutTime',[
|
|
|
|
|
+ { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
|
|
|
|
|
+ ])
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.formDataRules.logoutTime = undefined
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// excel导入
|
|
// excel导入
|
|
|
carfrontChange(file) {
|
|
carfrontChange(file) {
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
const params = new FormData(); // 声明formData数据类型
|
|
@@ -620,6 +639,7 @@ export default {
|
|
|
//联级选择器触发事件
|
|
//联级选择器触发事件
|
|
|
handleChange(val) {
|
|
handleChange(val) {
|
|
|
if (val && val.length !== 0) {
|
|
if (val && val.length !== 0) {
|
|
|
|
|
+ this.formData.referrerId = ''
|
|
|
this.formData.deptId = val.at(-1);
|
|
this.formData.deptId = val.at(-1);
|
|
|
this.$api.user.selectfindByreferrerId({ deptId: this.formData.deptId }).then((res) => {
|
|
this.$api.user.selectfindByreferrerId({ deptId: this.formData.deptId }).then((res) => {
|
|
|
this.recommenderOptions = res.data
|
|
this.recommenderOptions = res.data
|
|
@@ -661,6 +681,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
//编辑
|
|
//编辑
|
|
|
async handleTableEdit(params) {
|
|
async handleTableEdit(params) {
|
|
|
|
|
+ this.dialogPassword = false
|
|
|
this.dataForm = {
|
|
this.dataForm = {
|
|
|
SFZ_01: "",
|
|
SFZ_01: "",
|
|
|
SFZ_02: "",
|
|
SFZ_02: "",
|
|
@@ -673,7 +694,7 @@ export default {
|
|
|
this.activeName = '1'
|
|
this.activeName = '1'
|
|
|
let res = await this.$api.user.getUserDatail(params.userId)
|
|
let res = await this.$api.user.getUserDatail(params.userId)
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- this.$api.user.selectfindByreferrerId({ deptId: res.data.deptId }).then((res) => {
|
|
|
|
|
|
|
+ this.$api.user.selectfindByreferrerId({ deptId: res.data.sysUser.deptId }).then((res) => {
|
|
|
this.recommenderOptions = res.data
|
|
this.recommenderOptions = res.data
|
|
|
});
|
|
});
|
|
|
if(res.data.esmUserImageVo.length > 0) {
|
|
if(res.data.esmUserImageVo.length > 0) {
|
|
@@ -688,6 +709,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
res.data.sysUser.status += ''
|
|
res.data.sysUser.status += ''
|
|
|
this.formData = res.data.sysUser
|
|
this.formData = res.data.sysUser
|
|
|
|
|
+ if(this.formData.status==0){
|
|
|
|
|
+ this.$set( this.formDataRules,'logoutTime',[
|
|
|
|
|
+ { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
|
|
|
|
|
+ ])
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.formDataRules.logoutTime = undefined
|
|
|
|
|
+ }
|
|
|
this.formDataDetail = res.data.sysUserInfo?res.data.sysUserInfo:{}
|
|
this.formDataDetail = res.data.sysUserInfo?res.data.sysUserInfo:{}
|
|
|
this.formData.password = ''
|
|
this.formData.password = ''
|
|
|
this.dialogTitle = "编辑代理人";
|
|
this.dialogTitle = "编辑代理人";
|
|
@@ -726,6 +754,7 @@ export default {
|
|
|
this.$message.info("请选择所属公司或部门");
|
|
this.$message.info("请选择所属公司或部门");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.dialogPassword = true
|
|
|
this.formData = {
|
|
this.formData = {
|
|
|
roleId: '20',
|
|
roleId: '20',
|
|
|
status: '',
|
|
status: '',
|