|
|
@ -52,28 +52,8 @@ export default { |
|
|
name: "SelectDeptUserDialog", |
|
|
name: "SelectDeptUserDialog", |
|
|
components: {}, |
|
|
components: {}, |
|
|
props: { |
|
|
props: { |
|
|
value: { |
|
|
|
|
|
type: [Number, String , Array], |
|
|
|
|
|
default: '' |
|
|
|
|
|
}, |
|
|
|
|
|
name: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: '' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
value: { |
|
|
|
|
|
immediate: true, |
|
|
|
|
|
handler(v) { |
|
|
|
|
|
this.selected.id = v ?((v+'').indexOf('u_')>-1? v:('u_'+v)):'' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
name: { |
|
|
|
|
|
immediate: true, |
|
|
|
|
|
handler(v) { |
|
|
|
|
|
this.selected.name=v || '' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
filterText(val) { |
|
|
filterText(val) { |
|
|
this.$refs.tree.filter(val); |
|
|
this.$refs.tree.filter(val); |
|
|
} |
|
|
} |
|
|
@ -100,7 +80,9 @@ export default { |
|
|
this.getList() |
|
|
this.getList() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
show(){ |
|
|
|
|
|
|
|
|
show(id,name){ |
|
|
|
|
|
this.selected.id = id ?((id+'').indexOf('u_')>-1? id:('u_'+id)):'' |
|
|
|
|
|
this.selected.name=name || '' |
|
|
this.open = true |
|
|
this.open = true |
|
|
this.filterText = '' |
|
|
this.filterText = '' |
|
|
}, |
|
|
}, |
|
|
@ -137,6 +119,7 @@ export default { |
|
|
id:this.selected && this.selected.id?this.selected.id.replace('u_',''):'', |
|
|
id:this.selected && this.selected.id?this.selected.id.replace('u_',''):'', |
|
|
name:this.selected.name |
|
|
name:this.selected.name |
|
|
} |
|
|
} |
|
|
|
|
|
debugger |
|
|
this.$emit('change', obj) |
|
|
this.$emit('change', obj) |
|
|
this.$emit('input', obj.id) |
|
|
this.$emit('input', obj.id) |
|
|
this.open = false |
|
|
this.open = false |
|
|
|