Commit 7fdf7899 authored by zhengke's avatar zhengke

修改

parent 8b09cb89
......@@ -117,7 +117,7 @@
<el-row v-if="transitionShow2">
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.fylxmingcheng')">
<el-input placeholder="" v-model="msg.Name"></el-input>
<el-input placeholder="" v-model="msg.Name" @keyup.enter.native="initTableInfo()"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
......@@ -717,7 +717,6 @@
return url;
},
beforeAvatarUpload(file) {
console.log(file)
const excel = file.type === "application/vnd.ms-excel";
if (!excel) {
this.Error(this.$t('tips.shangchuanExcel'));
......@@ -931,31 +930,38 @@
this.getDepartmentList();
this.getEmployeeList('all');
this.getPostList('all');
this.addMsg = dataList;
this.EmployeeIDList=[];
this.addMsg.ID = dataList.ID;
this.addMsg.Name = dataList.Name;
this.addMsg.Type = dataList.Type;
this.addMsg.Tier = dataList.Tier;
this.addMsg.ParentId = dataList.ParentId;
this.addMsg.IsShareAccount = dataList.IsShareAccount;
this.addMsg.Sort = dataList.Sort;
this.addMsg.Is_Report = dataList.Is_Report;
// this.addMsg = dataList;
if(dataList.DepartList.length>0){
dataList.DepartList.forEach(x=>{
if(x.ID==dataList.ID){
switch(x.Type){
case 1:
switch(x.Type){
case 1:
this.addMsg.BranchId = x.departmentId;
break;
case 2:
break;
case 2:
this.addMsg.PostID = x.departmentId;
break;
case 3:
break;
case 3:
this.addMsg.DepartmentID = x.departmentId;
break;
case 4:
break;
case 4:
this.addMsg.EmployeeID = x.departmentId;
break;
case 5:
this.EmployeeIDList.push(x.departmentId);
break;
case 5:
this.addMsg.BranchId = -1;
this.addMsg.PostID = -1;
this.addMsg.DepartmentID = -1;
this.addMsg.EmployeeID = -1;
this.EmployeeIDList.push(-1);
}
}
})
}
......@@ -1078,6 +1084,8 @@
this.getDepartmentList('all');
this.getPostList('all');
this.getEmployeeList('all');
this.EmployeeIDList=[];
this.EmployeeIDList.push(-1);
}
},
mounted(){
......
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