Commit 1a2de475 authored by hanfeng's avatar hanfeng

修改后台用户列表,编辑

parent 15b155f0
...@@ -274,6 +274,7 @@ ...@@ -274,6 +274,7 @@
getAll() getAll()
.then(response => { .then(response => {
this.allCompaniesArr = response.data; this.allCompaniesArr = response.data;
this.allBranchCompany= response.data;
}) })
getAllCompany(codeAndBranchCompany => { getAllCompany(codeAndBranchCompany => {
this.allCompanies = codeAndBranchCompany; this.allCompanies = codeAndBranchCompany;
...@@ -299,9 +300,10 @@ ...@@ -299,9 +300,10 @@
'elements' 'elements'
]), ]),
getAllZoneList() { getAllZoneList() {
console.log('getAllZoneList') // console.log('getAllZoneList')
this.allZoneArr = getAllZone(); let allZone = getAllZone();
return getAllZone(); this.allZoneArr = allZone ;
return allZone;
}, },
}, },
methods: { methods: {
...@@ -325,6 +327,7 @@ ...@@ -325,6 +327,7 @@
* 所属分公司 * 所属分公司
* */ * */
handleSelectSubordinate(item) { handleSelectSubordinate(item) {
this.form.companyId = item.id; this.form.companyId = item.id;
this.form.companyName = item.name; this.form.companyName = item.name;
}, },
...@@ -419,7 +422,7 @@ ...@@ -419,7 +422,7 @@
}); });
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.dialogStatus = 'update'; this.dialogStatus = 'update';
console.log(this.form); // console.log(this.form);
// console.log(JSON.stringify(this.form)) // console.log(JSON.stringify(this.form))
}); });
}); });
......
...@@ -405,6 +405,7 @@ ...@@ -405,6 +405,7 @@
'companyStatusAndCode' 'companyStatusAndCode'
]), ]),
getAllZoneList(){ getAllZoneList(){
this.allZoneArr = getAllZone(); this.allZoneArr = getAllZone();
return getAllZone(); return getAllZone();
}, },
......
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