Commit 9d584bbb authored by Mac's avatar Mac

用户离职状态的处理

parent 924ca6ae
......@@ -57,7 +57,7 @@
<q-input v-if="objOption.AccountId==0" filled stack-label maxlength="20" :dense="false"
v-model="objOption.Password" ref="Password" class="col-6 q-pr-lg q-pb-lg" label="密码"
:rules="[val => !!val || '密码']" />
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.LeaveStatus"
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.LeaveStatus" @input='getLeave'
ref="Education" :options="LeaveStatusList" label="在职状态" :dense="false" class="col-6 q-pr-lg q-pb-lg"
emit-value map-options />
<q-input v-show="objOption.AccountId>0 && objOption.LeaveStatus==4" filled v-model="objOption.LeaveTime"
......@@ -281,14 +281,20 @@
getUserLeaveOrderCommission({UserId:UserId}).then(res => {
if(res.Code == 1){
this.errdata= ''
}else if (res.Code == 0) {//返回来是0 的时候保存提示语言
this.errdata = res.Message;
}
}).catch(err=>{
if(err.Code == 0){///返回来是0 的时候保存提示语言
this.errdata = err.Message;
}
})
},
getLeave(val){
if(val == 4){
this.GetUserLeave(this.saveObj.EmAccountId)
}
},
initObj() {
if (this.saveObj) {
this.GetUserLeave(this.saveObj.EmAccountId)
this.optionTitle = "修改员工信息"
this.isEditShow = false; //是否显示修改隐藏项
queryEmployeeInfo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment