|
@@ -56,14 +56,9 @@ const DingDepartUser = {
|
|
)
|
|
)
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
- console.log(this.defaultVal,value);
|
|
|
|
- const last = value[value.length-1]
|
|
|
|
- const has = this.defaultVal.find(item => item.value == last.value)
|
|
|
|
- if(!has || this.defaultVal.length > value.length){
|
|
|
|
- this.defaultVal = value;
|
|
|
|
- this.$emit('change', value, this.id);
|
|
|
|
- this.$emit('input', value);
|
|
|
|
- }
|
|
|
|
|
|
+ this.defaultVal = value;
|
|
|
|
+ this.$emit('change', value, this.id);
|
|
|
|
+ this.$emit('input', value);
|
|
},
|
|
},
|
|
// 格式化数据
|
|
// 格式化数据
|
|
formatData(data){
|
|
formatData(data){
|
|
@@ -94,7 +89,7 @@ const DingDepartUser = {
|
|
}else{
|
|
}else{
|
|
ret.push({
|
|
ret.push({
|
|
title: item.name,
|
|
title: item.name,
|
|
- id: item.deptOrder,
|
|
|
|
|
|
+ id: item.userid,
|
|
value: item.userid,
|
|
value: item.userid,
|
|
pId: item.parentId,
|
|
pId: item.parentId,
|
|
avatar: item.avatar,
|
|
avatar: item.avatar,
|