Commit 7fdf7899 authored by zhengke's avatar zhengke

修改

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