Commit bdd7c623 by 陈浩建

网点管理模块、批量导入导出

parent 9c841840
import {postAction,downFilePost} from '@/api/manage'
const prefix = '/manager/ciop/';
//报表
let reportList = (params) => postAction(prefix + "networkPlace/list",params);
let reportDownload = (params) => downFilePost(prefix + "networkPlace/reportDownload",params);
let excelMBOut = (params) => downFilePost(prefix + "networkPlace/excelMBOut",params);
// 编辑
let modifyData = (params) => postAction(prefix + "networkPlace/updateData" , params);
//新增
let insertData = (params) => postAction(prefix + "networkPlace/insertData" , params);
//删除
let deleteId = (params) => postAction(prefix + "networkPlace/deleteId" , params);
export {
excelMBOut,
reportList,
reportDownload,
modifyData,
insertData,
deleteId
}
...@@ -454,7 +454,6 @@ ...@@ -454,7 +454,6 @@
}, },
watch : { watch : {
treeModelValue(data) { treeModelValue(data) {
console.log(data);
} }
}, },
methods:{ methods:{
...@@ -476,7 +475,6 @@ ...@@ -476,7 +475,6 @@
grade: data.grade, grade: data.grade,
ysm: data.ysm, ysm: data.ysm,
}) })
console.log(data.schools);
if (data.schools == undefined) { if (data.schools == undefined) {
this.treeModelValue = []; this.treeModelValue = [];
}else{ }else{
...@@ -511,8 +509,6 @@ ...@@ -511,8 +509,6 @@
this.modifyForm.password = values.password this.modifyForm.password = values.password
const subNames = []; const subNames = [];
const schools = []; const schools = [];
console.log(this.treeModelValue);
console.log(this.subNames);
out : for(let i = 0; i < this.treeModelValue.length; ++i) { out : for(let i = 0; i < this.treeModelValue.length; ++i) {
for(let j = 0; j < this.subNames.length; ++j) { for(let j = 0; j < this.subNames.length; ++j) {
if (this.treeModelValue[i] == this.subNames[j].value) { if (this.treeModelValue[i] == this.subNames[j].value) {
...@@ -522,8 +518,6 @@ ...@@ -522,8 +518,6 @@
} }
schools.push(this.treeModelValue[i]); schools.push(this.treeModelValue[i]);
} }
console.log(this.modifyForm);
console.log(this.xzUserList);
if(this.modifyForm.parentId == undefined){ if(this.modifyForm.parentId == undefined){
this.modifyForm.parentId = '' this.modifyForm.parentId = ''
this.modifyForm.parentIds = '' this.modifyForm.parentIds = ''
...@@ -852,7 +846,6 @@ ...@@ -852,7 +846,6 @@
changeDongjie(event,id){ changeDongjie(event,id){
if(event){ if(event){
unlockUser({userId:id}).then(res =>{ unlockUser({userId:id}).then(res =>{
console.log(res);
if(res.state == 'success'){ if(res.state == 'success'){
notification.success({ message: '系统提示', description: '解冻成功'}) notification.success({ message: '系统提示', description: '解冻成功'})
}else{ }else{
...@@ -861,7 +854,6 @@ ...@@ -861,7 +854,6 @@
}); });
}else{ }else{
lockUser({userId:id}).then(res =>{ lockUser({userId:id}).then(res =>{
console.log(res);
if(res.state == 'success'){ if(res.state == 'success'){
notification.success({ message: '系统提示', description: '冻结成功'}) notification.success({ message: '系统提示', description: '冻结成功'})
}else{ }else{
...@@ -935,7 +927,6 @@ ...@@ -935,7 +927,6 @@
}); });
}) })
this.treeData[i].children = temp; this.treeData[i].children = temp;
console.log(this.treeData);
} }
}) })
} }
......
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