Commit e85715b9 authored by 仇晓婷's avatar 仇晓婷

优化

parent 8f950442
......@@ -119,25 +119,6 @@ export default {
var url = `${designUrl}/productlevel/getdepartmentstree`;
service.get(`${url}`).then(response => {
this.data2 = response.result;
// var arr = this.data2;
// var id = this.componayId;
// var returnedItem = {};
// var finds = function(arr, id) {
// for (let i = 0; i < arr.length; i++) {
// console.log(arr[i])
// if (arr[i].id == id) {
// console.log(arr[i].id)
// returnedItem = arr[i];
// break;
// } else if (arr[i].children.length > 0) {
// finds(arr[i].children, id); //递归调用
// }
// }
// return returnedItem;
// };
// console.log(returnedItem);
});
},
load(v) {
......
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