|
@@ -319,31 +319,10 @@
|
|
|
this.getDepartment();
|
|
|
},
|
|
|
methods: {
|
|
|
- // getCascaderObj(val,opt) {
|
|
|
- // var thisVue=this
|
|
|
- // return val.map(function (value) {
|
|
|
- // for (var itm of opt) {
|
|
|
- // if (itm.id == value) {
|
|
|
- // // console.log("成功匹配")
|
|
|
- // thisVue.chapterArr.unshift(itm.id)
|
|
|
- // // console.log("第二步找父级。。。")
|
|
|
- // // console.log("parentId:"+itm.parentId)
|
|
|
- // // thisVue.getCascaderObj([itm.parentId],thisVue.$store.state.selectorMod.contentChas)
|
|
|
- // return
|
|
|
- // }else{
|
|
|
- // if(thisVue.isHasChid(itm)){
|
|
|
- // thisVue.getCascaderObj(val,itm.childs)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- // return null;
|
|
|
- // });
|
|
|
- // },
|
|
|
handleChange(val){
|
|
|
let data = []
|
|
|
for(let i in val){
|
|
|
data.push(val[i][val[i].length -1])
|
|
|
- // console.log(val[i][val[i].length -1])
|
|
|
}
|
|
|
this.formData.dept_ids = data
|
|
|
},
|
|
@@ -501,7 +480,6 @@
|
|
|
},
|
|
|
|
|
|
getTreeDatas(data,item) {
|
|
|
- // debugger
|
|
|
for (let i in data) {
|
|
|
if(data[i].id == item){
|
|
|
if(data[i].parentid == 1){
|